Hi, Alban,
Thanks for your reply; there is no warning when I do  torch.tensor([x1, x2])  ; but  torch.stack([x1, x2])  works. But do you have some idea if I have a batch of data, say, [[1, 2], [3, 4] ], how can I do this? Thanks.