Missed TensorFlow World? Check out the recap. Learn more

tf.keras.backend.cumprod

TensorFlow 1 version View source on GitHub

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

Aliases:

tf.keras.backend.cumprod(
    x,
    axis=0
)

Arguments:

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

Returns:

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