How to turn a list of tensor to tensor?

a = torch.stack(a) worked for me

20 Likes