Pytorch Transpose 1d Tensor