Try to use the suggested torch.tensor instead (lowercase t).
I would generally not recommend to use torch.Tensor, as this might give you uninitialized code, e.g. by calling torch.Tensor(10).
torch.tensor is the factory method to pass values as a list etc.