Python wrappers
Public Python APIs implemented by this engine symbol.Autograd node for elementwise minimum with NumPy broadcasting.
Saves both inputs a and b (kSavesInputs = true inherited from
BinaryKernel) so the backward pass can reconstruct the indicator
masks for the comparison. Gradient flows only through whichever operand
"won" the elementwise comparison; ties are broken in favour of a
(gradient assigned entirely to a when ).
Math
Shape
Inputs a, b follow NumPy broadcasting rules; the output takes the
broadcast shape. Both gradient branches are sum-reduced back to their
original input shapes by sum_to_shape in the apply trampoline.
See Also
MaximumBackward : Elementwise maximum (mirror operation).
Attributes
schema_v1OpSchema"minimum", version 1, AmpPolicy::Promote, deterministic.Notes
Internally the masks are computed with the operand order reversed
relative to MaximumBackward: ge_mask(b, a) and lt_mask(b, a)
instead of ge_mask(a, b) / lt_mask(a, b). This yields the same tie
resolution (all gradient to a) while flipping the comparison direction.
The two masks partition the index set, so their sum is exactly at every
position.