`__getitem__()` does not support returning tensors with different sizes

You could use a custom collate_fn as described here which would work for variable shapes.