Vector-Jacobian Product #1434
-
In the Vector-Jacobain product section of The Jax for the Impatient tutorial, the authors explain how to efficiently compute the gradient of a function composed of two functions. They note that the outer function, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
@BertrandRdp who was originally writing this tutorial. |
Beta Was this translation helpful? Give feedback.
-
Hi! I don't remember exactly what I was thinking, but at the time I was reflecting on why you would be interested in computing those quantities (from a mathematical perspective). However rereading now seems that as I was thinking about the space where the gradient lives (dual space), and I somehow mixed the original function and its gradient. Hence I'll fix this, thanks for catching this :) |
Beta Was this translation helpful? Give feedback.
Hi! I don't remember exactly what I was thinking, but at the time I was reflecting on why you would be interested in computing those quantities (from a mathematical perspective). However rereading now seems that as I was thinking about the space where the gradient lives (dual space), and I somehow mixed the original function and its gradient.
Hence
\phi
is a scalar valued function (not a linear form), its differential is a linear form (hence the dual space). In the case where\phi
is a linear form, the only thing that changes is that the gradient is a constant vector, which is just a special case.I'll fix this, thanks for catching this :)