I got the below error while using pytorch. How to rectify this error? Is something wrong with the installation?
print(torch.version)
Traceback (most recent call last):
File “”, line 1, in 
print(torch.version)
AttributeError: module ‘torch’ has no attribute ‘version’
a=torch.tensor([10,10,10])
a
Out[8]: tensor([10, 10, 10])
a.mean()
Traceback (most recent call last):
File “”, line 1, in 
a.mean()
RuntimeError: Can only calculate the mean of floating types. Got Long instead.