jax.jit
jit
jit
jit
grad
jax.grad
grad
of grad
)jax.value_and_grad
)vmap
jax.vmap
in_axes
, out_axes
)vmap
vmap
with jit
and grad
vmap
pmap
jax.pmap
in_axes
, out_axes
)lax.psum
, lax.pmean
, etc.)pmap
with other Transformationspmap
ped Functionsin_axes
, out_axes
)Was this section helpful?
jax.vmap
, providing comprehensive details on its parameters and behavior, including the in_axes
and out_axes
arguments for fine-grained control over vectorization.vmap
, JAX core contributors, 2024 - An accessible official tutorial that explains the principles of automatic vectorization in JAX, featuring practical examples that illustrate the effective use of in_axes
and out_axes
for various batching scenarios.vmap
and the precise roles of in_axes
and out_axes
in managing data flow.