-
I think I must be totally missing something obvious when constructing custom jacobian vector products. A minimal example follows: Assume we want to write a custom derivative for a quadratic form:
and using some data:
computing the function is fine:
but attempting to compute the gradient
yields the following error:
How can this be reconciled? The original function is from Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I will go ahead and answer this myself. It is because it is called a jacobian vector product. 🤦♂️ So the correct function is given by:
|
Beta Was this translation helpful? Give feedback.
I will go ahead and answer this myself. It is because it is called a jacobian vector product. 🤦♂️
So the correct function is given by: