TF 2.0 is out! Get hands-on practice at TF World, Oct 28-31. Use code TF20 for 20% off select passes. Register now

tf.keras.backend.cumsum

TensorFlow 1 version View source on GitHub

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

Aliases:

  • tf.compat.v1.keras.backend.cumsum
  • tf.compat.v2.keras.backend.cumsum
tf.keras.backend.cumsum(
    x,
    axis=0
)

Arguments:

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

Returns:

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