Create a single tensor from list of tensors

Yes, that’s right.
In #3,
X = torch.FloatTensor(data)
This is where I’m getting the error. I have also tried X = torch.Tensor(data) , but ended up with the same error.