You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am interested in Jacobians and Hessians from implicitly differentiated root finding problems. This is something that regularly comes up in scientific computing. With jax, this is already possible out of the box using function transforms (e.g., jacrev). Is this something you plan to support in torchopt, too?
Solution
I already tried, but apparently, there are some pieces of code that prevent this:
missing setup_context for vmap rule in ImplicitMetaGradient (very easy to adapt)
Required prerequisites
Motivation
I am interested in Jacobians and Hessians from implicitly differentiated root finding problems. This is something that regularly comes up in scientific computing. With jax, this is already possible out of the box using function transforms (e.g., jacrev). Is this something you plan to support in torchopt, too?
Solution
I already tried, but apparently, there are some pieces of code that prevent this:
setup_context
for vmap rule inImplicitMetaGradient
(very easy to adapt).item()
in_vdot_real_kernel
make_rmatvec
innormal_cg
_cg_solve
_cg_solve
Alternatives
The jaxopt version
Additional context
No response
The text was updated successfully, but these errors were encountered: