jax.experimental.pallas.fuser.evaluate#
- jax.experimental.pallas.fuser.evaluate(f, *, allow_transpose=True)[source]#
Re-binds f’s traced jaxpr equation-by-equation under fuser constraints.
Used inside fused kernels to evaluate f primitive-by-primitive so that fuser evaluation rules apply while rejecting unsupported higher-order primitives (scan, while_loop, cond) and optionally transpose.
- Parameters:
f – The function to trace and evaluate.
allow_transpose (bool) – Whether lax.transpose_p primitives are allowed in f.
- Returns:
A wrapped function taking *args and **kwargs that traces f and evaluates its jaxpr equation by equation, raising NotImplementedError for scan, while_loop, and cond primitives and, if allow_transpose is False, ValueError for transposes.