vjp
handles complex Jacobians well, but not jvp
?
#19099
Replies: 1 comment
-
Thanks for the question! Since the primal outputs of your computation are always real (because of the Maybe the issue is that you're trying to compute the Jacobian matrix in two ways, and get the same answer? But the full Jacobian of a What do you think? |
Beta Was this translation helpful? Give feedback.
-
Can anyone spot the bug in this jax code I've written? For some reason when I try to get the Jacobian using jvp, it eats my imaginary values, though I'm able to get vjp to work
get_jacobian_fwd(fxn, z0) gives: Array([0., 0.], dtype=float32)
get_jacobian_rev(fxn, z0) gives: (Array([0.-2.j, 0.-2.j], dtype=complex64),)
Beta Was this translation helpful? Give feedback.
All reactions