How to swap lines from a 2D tensor?

前端 未结 0 1255
自闭症患者
自闭症患者 2020-12-29 22:12

Given the following 2D tensor whit shape [N,E]:

#N=3, E=3
r1 = torch.tensor([
    [1, 2, 3],
    [4, 5, 6],
    [7, 8,          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题