Missed TensorFlow World? Check out the recap. Learn more

tf.keras.backend.reverse

TensorFlow 1 version View source on GitHub

Reverse a tensor along the specified axes.

Aliases:

tf.keras.backend.reverse(
    x,
    axes
)

Arguments:

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

Returns:

A tensor.