jax.extend.random.unsafe_rbg_prng_impl#
- jax.extend.random.unsafe_rbg_prng_impl = PRNGImpl(key_shape=(4,), seed=<function _rbg_seed>, split=<function _unsafe_rbg_split>, random_bits=<function _rbg_random_bits>, fold_in=<function _unsafe_rbg_fold_in>, name='unsafe_rbg', tag='urbg')#
Specifies PRNG key shape and operations.
A PRNG implementation is determined by a key type
Kand a collection of functions that operate on such keys. The key typeKis an array type with element type uint32 and shape specified bykey_shape. The type signature of each operations is:seed :: int[] -> K fold_in :: K -> int[] -> K split[shape] :: K -> K[*shape] random_bits[shape, bit_width] :: K -> uint<bit_width>[*shape]
A PRNG implementation is adapted to an array-like object of keys
Kby thePRNGKeyArrayclass, which should be created via therandom_seedfunction.