Need to see what JAX will transform before sending computation to XLA? Call jax.make_jaxpr() on a function and invoke the returned transformation with representative arguments. It exposes Jaxpr, a typed intermediate representation containing inputs, constants, primitive equations, outputs, shapes, and dtypes. section 5.2.1
Inspecting a reduction
For f1(x, y, z) = jnp.sum(x + y * z), jax.make_jaxpr(f1)(x, y, z) reveals broadcasting, multiplication, addition, and reduce_sum operations. The printed variables expose array shapes such as f32[3,3] and the scalar result f32[].
