Update state using pure_callback(...)
#17138
Replies: 1 comment 1 reply
-
The "pure" in If you're looking for callbacks that expect such side-effects, you might try That said, even with
This is happening within a JIT-compiled function that does not return Some resources for further reading:
One last comment: overall, this looks like it may be an attempt to side-step the functional design of JAX PRNGs, and my advice would be: rather than trying to get around it, embrace it 😁. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a seed generator defined in a py file named as
utils.py
. The seed generator is defined like this:I want to import this seed generator in another py file and update the seed from it. For example,:
Is there any easy way to do this?
Beta Was this translation helpful? Give feedback.
All reactions