Hi,
A tensor must have a given size in each dimension. So you cannot have elements with different size on a single dimension.
Also to convert a numpy array to a torch Tensor, you should use the torch.from_numpy function to avoid any issue.