Expand description
Helpers for differentiation rules, shared by the primitives and the
drivers in ruxla-transforms.
The rules follow JAX’s (jax._src.lax), so that ruxla’s derivatives
compute the same as JAX’s.
Functions§
- add_
tangents - The sum of two tangents of the same type, skipping symbolic zeros.
- bind1
- Applies a primitive with one output.
- convert
- Converts to another type (a no-op for the same type).
- differentiable
- Whether an abstract value has nonzero tangents (floats only).
- full
- A scalar
valuebroadcast toaval. - instantiate
- The tangent as an atom, with zeros of
avalfor a symbolic zero. - mul_
tangent a * b, wherebmay be a symbolic zero.- neg_
tangent -t, skipping symbolic zeros.- scalar
- A scalar literal of a type.
- sub_
tangents a - bfor tangents, skipping symbolic zeros.- zeros
- Zeros of an abstract value.