liveBook · Manning

XLA

XLA is a compiler that optimizes and compiles linear-algebra and array computations for supported target hardware.

How 3 Manning books explain it

Deep Learning with JAX

A compiler and runtime for linear algebra and array programs that optimizes computations such as those produced by JAX.

How it is used
Accelerates JAX numerical functions by compiling composed linear-algebra computations for CPUs, GPUs, TPUs, and other accelerators.
How deep it goes
Explains JIT compilation, frontends, backends, operation fusion, and lowering to StableHLO and HLO.
Examples
Uses jnp.sum(x + y * z), jax.jit(), lowering, StableHLO, HLO, and fused GPU-kernel execution.
What you can do after
Apply it via JAX's jit() and pmap(), then inspect lowered representations before compiling numerical functions.

Read how Deep Learning with JAX explains XLA →

Deep Learning with R, Third Edition

XLA is a compiler for accelerating linear algebra and machine-learning computations across supported hardware.

How it is used
Accelerates TensorFlow functions after their behavior has been debugged in the R runtime.
How deep it goes
Explains the compilation switch and startup cost, but stops short of compiler internals.
Examples
Uses a ReLU dense function containing matrix multiplication and bias addition.
What you can do after
Apply it via TensorFlow’s tf_function() by setting jit_compile = TRUE after debugging.

Read how Deep Learning with R, Third Edition explains XLA →

Deep Learning with Python, Third Edition

Accelerated Linear Algebra, TensorFlow's optional compiler used to further optimize and speed up function execution.

How it is used
Optimizes TensorFlow function execution when faster repeated calls justify additional compilation time.
How deep it goes
Explains activation, first-call overhead, and later speedups, but does not descend into compiler internals.
Examples
Demonstrates XLA by compiling a TensorFlow dense function containing matrix multiplication and ReLU.
What you can do after
Apply it via TensorFlow's jit_compile=True option after debugging the function in Python.

Read how Deep Learning with Python, Third Edition explains XLA →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.