ML Community Day is November 9! Join us for updates from TensorFlow, JAX, and more Learn more

tf.keras.backend.cumprod

TensorFlow 2 version View source on GitHub

Cumulative product of the values in a tensor, alongside the specified axis.

x A tensor or variable.
axis An integer, the axis to compute the product.

A tensor of the cumulative product of values of x along axis.