I want to know why report the error in the the latest pytorch.
Why this error caused by update x.grad, I think this caused by x = x + update.  Because loss.backward() calculate the grad of x. So I think change x cause the error.
Why I change to return w * (-grad), the code also can execution.