import torch
x = torch.tensor([1, 2, 3, 4], dtype=torch.float)
x.shape
Out[14]: torch.Size([4])
y = x.T
y.shape
Out[16]: torch.Size([<
import torch
x = torch.tensor([1, 2, 3, 4], dtype=torch.float)
x.shape
Out[14]: torch.Size([4])
y = x.T
y.shape
Out[16]: torch.Size([<