L1aoXingyu/code-of-learn-deep-learning-with-pytorch

problem in autograd

rexjoe opened this issue · 1 comments

Anser of the exercise is wrong, the second column of j is wrong due to wrong variable name reference in the code: "m.grad.data.zero_() # 归零之前求得的梯度", change "m" to "x" to fix it.

thank you! I have fixed this problem.