import torch x = torch.randn(3, 4) print(x.shape) x=x.permute(1,0) print(x.shape) ''' 输出:torch.Size([3, 4]) torch.Size([4, 3])
確定! 回上一頁