tf.keras.backend.cumsum

View source on GitHub

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

Aliases:

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.