Getting Started
Reference Documentation
Advanced JAX Tutorials
Notes
custom_vjp
nondiff_argnums
Developer documentation
API documentation
jit
vmap
pmap
jax.random.
permutation
Permute elements of an array along its first axis or return a permuted range.
If x is a multi-dimensional array, it is only shuffled along its first index.
key: a PRNG key used as the random key. x: the array or integer range to be shuffled.
ndarray
A shuffled version of x or array range
key (Union[Any, PRNGKeyArray]) –
Union
Any
PRNGKeyArray
x (Any) –