list_x = []
x = torch.Size([4,3,32,32])
y = torch.Size([6,3,32,32])
list_x.append(x)
list_x.append(y)
list_x = torch.tensor(list_x)

x and y have different shape of dimension 0.
In this case how to convert list to torch.tensor?