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
When I am trying the tutorial " Learning PyTorch with Examples" in pytorch ,
with torch.no_grad():
w1 -= learning_rate * w1.grad
w2 -= learning_rate * w2.grad
the following error occured:" module 'torch' has no attribute 'no_grad'". What's the reason?
My environment is : anaconda, Jupiter notebook5.0, pyrhon3.5, pytorch0.3