I am trying to make a tensor from a list of tensors, which is throwing a ValueError: only one element tensors can be converted to Python scalars.
my setup is like so:
I have calculated three tensors n0, n1, n2
n0 = tensor([-0.4360, -1.1935, -0.8568])
n1 = tensor([ 0.8926, -0.0698,  0.5011])
n2 = tensor([-1.3286, -1.1237, -1.3579])

b = torch.tensor([[n2-n1],
                            [n0-n2],
                            [n1-n0]])

produces the error
I am having trouble understanding:

Why this way of making a tensor would be undesirable
How to do this in a more pytorch friendly way

Thanks for any help!