https://github.com/google/jax
Raw File
Tip revision: ab43976b12b354cdccad469c0646afbb2b2c339e authored by jax authors on 15 June 2024, 08:29:04 UTC
Rewrite mosaic concat to support unaligned dims, use unaligned impl for all cases. Expand tests to cover multi operand, batch dim concat, etc.
Tip revision: ab43976
concurrency.rst
Concurrency
===========

JAX has limited support for Python concurrency.

Clients may call JAX APIs (e.g., :func:`~jax.jit` or :func:`~jax.grad`)
concurrently from separate Python threads.

It is not permitted to manipulate JAX trace values concurrently from multiple
threads. In other words, while it is permissible to call functions that use JAX
tracing (e.g., :func:`~jax.jit`) from multiple threads, you must not use
threading to manipulate JAX values inside the implementation of the function
`f` that is passed to :func:`~jax.jit`. The most likely outcome if you do this
is a mysterious error from JAX.
back to top