dsgiitr / d2l-pytorch

This project reproduces the book Dive Into Deep Learning (https://d2l.ai/), adapting the code from MXNet into PyTorch.
Apache License 2.0
4.24k stars 1.24k forks source link

Automatic Differentiation #91

Closed haoma7 closed 5 years ago

haoma7 commented 5 years ago

In Section "Head gradients and the chain rule" z.backward(head_gradient) should be modified to y.backward(head_gradient)