Derivative Interval Passes #
These passes propagate interval bounds for first and second derivatives through the same flat graph
used by IBP. They are kept separate from the value IBP pass because derivative propagation has its
own chain-rule state, and it reuses the same FlatBox representation.
Derivative IBP pass for 1D input: computes for each node an interval on dy/dx. Requires value IBP boxes for activations.
Instances For
Directional first-derivative pass: like runDeriv1D but seeds the derivative at the
input node with a user-provided direction vector (as a FlatBox with lo=hi). This allows
extracting partial derivatives for multi-dimensional inputs by choosing e_x, e_y, etc.
Instances For
Second-derivative IBP pass for 1D input: computes per node an interval on d²y/dx². Requires value IBP boxes and first-derivative boxes. Covers input, linear/matmul, tanh, add/sub.