Python wrappers
Public Python APIs implemented by this engine symbol.Autograd node for elementwise maximum 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. The larger operand takes the gradient, a tie
splits it in half, and a NaN on either side gives it to both operands.
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
MinimumBackward : Elementwise minimum (mirror operation).
Attributes
schema_ v1OpSchema"maximum", version 1, AmpPolicy::Promote, deterministic.Notes
The rule is the reference's. Sending a tie wholly to a instead
doubled the gradient of hypot and the complex abs at
, where both maximum and minimum of the same pair tie. A
caller that wants a clamp's rule (a tie to a) uses clip or
where, not maximum.