Replies: 1 comment 7 replies
-
Hi - the issue is that |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to write a code which calls an external library to solve a linear system.
However, I want to both JIT compile and perform higher order auto-diff on it.
I was thinking of using
pure_callback
functionality to call the external library andthen attach a
custom_jvp
rule to achieve what I wanted.A minimal reproducible example looks as follows:
I see that the issue is with
res_dot = solve(A, b_dot*1.0)
(which is an arbitrary rule) but I want tosolve the same system but with the RHS being the accumulated tangents in
b
.Is there any way to make this work?
Beta Was this translation helpful? Give feedback.
All reactions