Skip to content
Discussion options

You must be logged in to vote

Saving a value is a side-effect, so you cannot do it directly in a jit-compiled function. But you should be able to use jax.experimental.io_callback for this; see a discussion at External Callbacks in JAX.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@andremfreitas
Comment options

Answer selected by andremfreitas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants