tf.keras.backend.reverse

TensorFlow 1 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.