Getting started
Resources, guides, and references
shard_map
jax.checkpoint
jax.remat
checkify
set_xla_metadata
Ref
jax.numpy
jax.scipy
jax.lax
jax.random
jax.sharding
jax.debug
jax.dlpack
jax.distributed
jax.dtypes
jax.ffi
jax.flatten_util
jax.image
jax.nn
jax.nn.initializers
jax.ops
jax.profiler
jax.ref
jax.stages
jax.test_util
jax.tree
jax.tree_util
jax.typing
jax.export
jax.extend
jax.extend.core
jax.extend.linear_util
jax.extend.mlir
jax.extend.random
jax.example_libraries
jax.example_libraries.optimizers
jax.example_libraries.stax
jax.experimental
jax.experimental.checkify
jax.experimental.compilation_cache
jax.experimental.custom_dce
jax.experimental.custom_partitioning
jax.experimental.jet
jax.experimental.key_reuse
jax.experimental.mesh_utils
jax.experimental.multihost_utils
jax.experimental.pallas
jax.experimental.pallas.mosaic_gpu
jax.experimental.pallas.triton
jax.experimental.pallas.tpu
jax.experimental.serialize_executable
jax.experimental.sparse
new_ref()
Create a mutable array reference with initial valueinit_val.
init_val
For more discussion, see theRef guide.
init_val (Any) – Ajax.Array representing the initial stateof the buffer.
jax.Array
memory_space (Any) – An optional memory space attribute for the Ref.
Ajax.ref.Ref containing a reference to a mutable buffer.
jax.ref.Ref