How to turn a list of tensor to tensor?

a = torch.stack(a) worked for me

19 Likes