参考自https://pytorch.org/docs/stable/tensor_attributes.html
tensor的t()属性实现转置
>>> import torch
>>> x = torch.Tensor([[1, 2, 3, 4, 5], [6, 7, 8, 9, 10]])
>>> x
1 2 3 4 5
6 7 8 9 10
[torch.FloatTensor of size 2x5]
>>> x.t()
1 6
2 7
3 8
4 9
5 10
[torch.FloatTensor of size 5x2]