Python wrappers
Public Python APIs implemented by this engine symbol.Inclusive cumulative product along a single axis, .
The output has the same shape and dtype as the input. Backward
reuses the reverse-cumsum primitive against the saved cumprod
output and divides by the saved input,
, before the first zero of along axis.
Math
Parameters
aTensorImplPtrInput tensor of any non-scalar shape and real dtype.
axisintAxis along which to accumulate (negative wraps).
Returns
TensorImplPtrOutput tensor of the same shape and dtype as a.
Notes
At the first zero the gradient is , and after it , as the reference has them. Forward saves both and on the backward node.