Hello everyone, I’m stuck at lesson 4 with a error on the following line:
weights[0] *= 1.0001
I get the following error:
RuntimeError: a view of a leaf Variable that requires grad is being used in an in-place operation.
From the pytorch forum:
PyTorch doesn’t allow in-place operations on leaf variables that have requires_grad=True (such as parameters of your model) because the developers could not decide how such an operation should behave.