You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in call(self, x, index)
45 # print('one_hot after backward:', one_hot)
46
---> 47 x.grad.data.zero_() # Reset the gradient to zero
48
49 # print('x=', x)
AttributeError: 'NoneType' object has no attribute 'data'
The text was updated successfully, but these errors were encountered:
in call(self, x, index)
45 # print('one_hot after backward:', one_hot)
46
---> 47 x.grad.data.zero_() # Reset the gradient to zero
48
49 # print('x=', x)
AttributeError: 'NoneType' object has no attribute 'data'
The text was updated successfully, but these errors were encountered: