Hi all ,
I actually installed the lastest version of PyTorch on a new computer (0.1.10) and noticed that the grad seems to be a bit faulty :
x=torch.Tensor(5,5).normal_() x=Variable(x,requires_grad=True) print(x.grad.data) AttributeError: 'NoneType' object has no attribute 'data'
print(x.grad)
None

dir(x.grad)
['__class__', '__delattr__', '__doc__', '__format__', '__getattribute__', '__hash__', '__init__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__']

Whereas is it working fine on my personal computer , on PyTorch ‘0.1.9+aaf41c6’. Is this an issue or there is something that i Don’t know about?
Thanks a lot !