Update a random number generator in a jitted function without tracing it #12465
Unanswered
gianlucadetommaso
asked this question in
General
Replies: 1 comment 3 replies
-
The problem is that you've marked |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to update a random number generator in a jit function without tracing it. Here is an example code:
This gives
DeviceArray([0, 0], dtype=uint32)
.If I comment out the decorator, I obtain
DeviceArray([4146024105, 967050713], dtype=uint32)
, which is the desired result.Any idea how I can obtain
DeviceArray([4146024105, 967050713], dtype=uint32)
(i.e. updated rng) also if the function is jitted?Beta Was this translation helpful? Give feedback.
All reactions