[x] Describe your goal, and if possible provide a code snippet with a motivating example.
Currently, the random key in a RandomState is not well compatible with the pjit method, because its sharding strategy is not defined. Also, random key is not compatible with parallelization APIs like vmap and pmap.
One promising strategy is to specially treat RandomState: only pass the needed key into the function without new key returns.
Please:
Currently, the random key in a
RandomState
is not well compatible with thepjit
method, because its sharding strategy is not defined. Also, random key is not compatible with parallelization APIs likevmap
andpmap
.One promising strategy is to specially treat
RandomState
: only pass the needed key into the function without new key returns.