tf.keras.backend.reverse

Reverse a tensor along the specified axes.

Aliases:

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

Defined in python/keras/backend.py.

Arguments:

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

Returns:

A tensor.