I am working with Pytorch. But when I use tensor I got an error while I don't get any error when I use Tensor.
What is the difference between Tensor and tensor?
This is my example:
tns = torch.tensor([91,21,34,56]) tns.mean() I got this error:
RuntimeError: Can only calculate the mean of floating types. Got Long instead.
Thanks in advance.