Python wrappers
Public Python APIs implemented by this engine symbol.Inclusive cumulative maximum along a single axis, .
Output is non-decreasing along axis. Backward credits the
upstream gradient to the position that first achieved the
running maximum up to (i.e. the unique at which the
running max changed value); positions that merely tie with the
running max receive no gradient.
Math
Parameters
aTensorImplPtrInput tensor of any non-scalar shape; only F32 / F64 are supported by the backward pass.
axisintAxis along which to accumulate (negative wraps).
Returns
TensorImplPtrOutput tensor of the same shape and dtype as a.
Notes
Backward is computed by a right-to-left segmented accumulation on CPU (or evaluated on CPU after a GPU round-trip). Saves only the forward output; the input is not needed.