Using jax.pure_callback for Side-Effect Free Calls
Was this section helpful?
jax.pure_callback, JAX core contributors, 2024 (Google) - Provides the official API specification, usage examples, and contract details for jax.pure_callback.
jax.experimental.host_callback, JAX core contributors, 2024 (Google) - Documents the host_callback API, which offers a contrasting approach for executing Python code with side effects during JAX computations.
JAX: Accelerated Array Programming, James Bradbury, Roy Frostig, Peter Hawkins, Matthew J. Johnson, Chris Leary, Skye Wanderman-Milne, and Adam Paszke, 2018 (Google Research) - Introduces the JAX framework, detailing its functional programming model, automatic differentiation, and XLA compilation, which form the basis for pure_callback's design.
Structure and Interpretation of Computer Programs, 2nd Edition, Harold Abelson and Gerald Jay Sussman with Julie Sussman, 1984 (MIT Press) - Provides a foundational introduction to functional programming paradigms, including comprehensive explanations of functional purity, determinism, and side effects, essential for understanding the contract of jax.pure_callback.