follows cumulative_sum in matching axis, dtype, and include_initial semantics.
as with cumulative_sum, this specification differs from NumPy in that flattening is not the default behavior. Similar to PyTorch, an axis argument is required if the input array has more than one dimension.
This PR
cumulative_prod
to the specification for computing the cumulative product.cumulative_sum
in matchingaxis
,dtype
, andinclude_initial
semantics.cumulative_sum
, this specification differs from NumPy in that flattening is not the default behavior. Similar to PyTorch, anaxis
argument is required if the input array has more than one dimension.