BatchNorm IR Evaluation #
The IR represents inference-time BatchNorm by a channel axis and a channel count. This file states
the payload contract for that representation without fixing the tensor rank or choosing a layout.
After shape inference identifies the channel axis, evaluation decomposes the input into leading
axes, the channel axis, and trailing axes, then applies Spec.batchNormInference independently to
each leading slice.
Evaluation of inference-time BatchNorm at an arbitrary channel axis.
The conditional on the right is the checked cast from the dynamically shaped IR value to the
typed tensor expected by Spec.batchNormInference. For every shape accepted by
inferBatchNormEvalOutShape, this equality records the complete payload-backed computation.
A missing BatchNorm payload is rejected before normalization is evaluated.