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
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.
Uh oh!
There was an error while loading. Please reload this page.
-
When defining a
custom_vjp
for a function, the forward and backward functions are generally both run.Take this simple example:
I'm trying to understand under what conditions the
f_fwd
andf_bwd
functions are called.EDIT: after playing with this a bit more, I realized that I can get
f_fwd
to be called (withoutf_bwd
) if I write something likeHow does
jax
determine whether to omit the call torun_bwd
in this case? vs in the case where Ireturn y
?Beta Was this translation helpful? Give feedback.
All reactions