Missed TensorFlow World? Check out the recap. Learn more

tf.keras.backend.reverse

View source on GitHub

Reverse a tensor along the specified axes.

Aliases:

  • tf.compat.v1.keras.backend.reverse
  • tf.compat.v2.keras.backend.reverse
tf.keras.backend.reverse(
    x,
    axes
)

Arguments:

  • x: Tensor to reverse.
  • axes: Integer or iterable of integers. Axes to reverse.

Returns:

A tensor.