tf.keras.backend.reverse

TensorFlow 2 version View source on GitHub

Reverse a tensor along the specified axes.

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

A tensor.