akankshakshurai/cuda-error-resolution-analysis huggingface dataset:
Propagate manual change in gradient to all gradients that should be affected by chain rule?

username: whoab
cooked: <p>Let’s say we have:<br>
dL/dw1 = dL/dy * dy/dw1</p>
<p>dL/dv1 = dL/dy * dy/dw1 * dw1/dv1</p>
<p>w1 and v1 are both parameters that will be returned in module.named_parameters().</p>
<p>Let’s say we have a deep network with many nested parameters.</p>
<p>If I manually modify dL/dy (say, set dL/dy = dL/dy * 10000) how do I propagate this manual change to all applicable parameter gradients that will be affected under chain rule?</p>