Python wrappers
Public Python APIs implemented by this engine symbol.Autograd node for the multi-axis reduction maximum .
The gradient routes only to positions where equals the
reduced maximum. The equality mask is built without a dedicated
equality kernel by composing two ge masks
(). Ties (multiple equal maxima)
receive equal gradient — matching the reference framework's
behaviour. The forward output is saved so the mask can be formed
without rerunning the reduction.
Math
Attributes
schema_v1OpSchemaRegistered as
"max" with AmpPolicy::KeepInput — integer dtypes pass through unchanged.kSavesOutputbooltrue.Notes
Empty reductions propagate NaN / raise (backend-dependent); callers should guard against zero-sized reduction axes.