Open
Description
Code sample in this section: https://github.com/Devinterview-io/pytorch-interview-questions?tab=readme-ov-file#code-example-autograd-in-action
x.grad
is the partial derivative of w
with respect to x
, which is
Thus
Likewise you can work out the value of y.grad
using the chain rule as well, and it's 72.
Metadata
Metadata
Assignees
Labels
No labels