tf.keras.ops.cumprod

Return the cumulative product of elements along a given axis.

Main aliases

tf.keras.ops.numpy.cumprod

x Input tensor.
axis Axis along which the cumulative product is computed. By default the input is flattened.
dtype dtype of returned tensor. Defaults to x.dtype.

Output tensor.