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'm trying to modify the jet tracer so that it will respect the custom jvp rule (up to a certain order). Right now, I just need up to second order so just brute force jvp twice should work for my use case. However, after I tried to implement that in the jet.JetTrace.process_custom_jvp_call I get an error from post_process_custom_jvp_call of JVPTrace when I'm trying to do 2nd order jet for functions that have custom_jvp defined (like slogdet). (Order 1 jet works fine, which is expected as I'm following jvp trace basically)
My implementation is attached below. I borrowed some code from process_primitive and JVPTrace. I don't think I fully understood the full_lower or the linear utils wrapped function. I also failed to figured out clearly the details of the mechanism of custom_jvp. So I guess I must did something wrong for the tracer so I'm wondering if there could be a fix for the error. Thanks a lot!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm trying to modify the jet tracer so that it will respect the custom jvp rule (up to a certain order). Right now, I just need up to second order so just brute force
jvp
twice should work for my use case. However, after I tried to implement that in thejet.JetTrace.process_custom_jvp_call
I get an error frompost_process_custom_jvp_call
ofJVPTrace
when I'm trying to do 2nd order jet for functions that havecustom_jvp
defined (likeslogdet
). (Order 1 jet works fine, which is expected as I'm following jvp trace basically)My implementation is attached below. I borrowed some code from
process_primitive
andJVPTrace
. I don't think I fully understood thefull_lower
or the linear utils wrapped function. I also failed to figured out clearly the details of the mechanism ofcustom_jvp
. So I guess I must did something wrong for the tracer so I'm wondering if there could be a fix for the error. Thanks a lot!And the error is the following (only the last few frames):
Beta Was this translation helpful? Give feedback.
All reactions