triton.language.cumprod(input, axis=0, reverse=False)

Returns the cumprod of all elements in the input tensor along the provided axis

  • input – the input values

  • axis – the dimension along which the scan should be done

This function can also be called as a member function on tensor, as x.cumprod(...) instead of cumprod(x, ...).