jax.random package — JAX documentation
https://jax.readthedocs.io/en/latest/jax.random.htmlPRNG Keys¶. Unlike the stateful pseudorandom number generators (PRNGs) that users of NumPy and SciPy may be accustomed to, JAX random functions all require an explicit PRNG state to be passed as a first argument. The random state is described by two unsigned 32-bit integers that we call a key, usually generated by the jax.random.PRNGKey() function: >>> from jax import …
jax.numpy package — JAX documentation
https://jax.readthedocs.io/en/latest/jax.numpy.htmlJAX DeviceArray¶. The JAX DeviceArray is the core array object in JAX: you can think of it as the equivalent of a numpy.ndarray backed by a memory buffer on a single device. Like numpy.ndarray, most users will not need to instantiate DeviceArray objects manually, but rather will create them via jax.numpy functions like array(), arange(), linspace(), and others listed above.