RuntimeError: invalid argument 0: Sizes of tensors must match except in dimension 0. Got 3 and 2 in dimension 1

I see. You can use a custom collate function to get around this. Similar to: