Missed TensorFlow World? Check out the recap. Learn more

tf.keras.backend.reverse

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

Defined in tensorflow/python/keras/backend.py.

Reverse a tensor along the specified axes.

Arguments:

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

Returns:

A tensor.