Replies: 1 comment 1 reply
-
It sounds like what you're asking for already exists in |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In order to polish some informative messages and because jax.debug.callback is traced, I resorted to jax.experimental.io_callback to print a conditional message:
which is then called in a staged out function with:
It would be cleaner to just have to write it without the trick of returning a useless scalar with a function
jax.debug.impure_callback(callback, solution)
Beta Was this translation helpful? Give feedback.
All reactions