Skip to main content
grasp.study
About
Explore
Pricing
Log in
Try it for free
Back to course
👋
Welcome to a Grasp lesson
Create a free account
to keep studying and create your own study path.
JAX for PyTorch Users
·
Module 2
Core Function Transformations: jit, grad, vmap
1
JIT Compilation for Speedups
Apply jax.jit to compile a function and measure speedups versus eager execution.
2
JAX Tracing: Understanding Tracers, Trace-time, and Run-time
Explain JAX's trace-time vs run-time distinction and what a Tracer object represents.
3
Tracing and Debugging JAX Functions
Predict and diagnose function retracing using static_argnums and jax.make_jaxpr.
4
Computing Gradients with `jax.grad`
Compute gradients of scalar-valued functions using jax.grad, including with has_aux and argnums.
5
Batch Processing with `jax.vmap`
Vectorize a per-example function across a batch using jax.vmap with in_axes/out_axes.
6
Composing JAX Transformations
Compose jit, grad, and vmap correctly and reason about their order of application.
7
Conditional Logic with `jax.lax.cond` and `jax.lax.switch`
Use jax.lax.cond and jax.lax.switch to express conditional logic inside jit-compiled functions.
8
Efficient Loops with `jax.lax.scan`
Use jax.lax.scan to implement efficient, parallelizable loops and recurrent patterns.
Previous module
JAX Foundations and the Functional Mindset
Next module
Pytrees: Structure, Manipulation, and Custom Nodes