Spec-Zone.ru › TensorFlow

tf.keras.ops.flip

Reverse the order of elements in the tensor along the given axis.

View aliases

Main aliases

tf.keras.ops.numpy.flip

tf.keras.ops.flip(
    x, axis=None
)

The shape of the tensor is preserved, but the elements are reordered.

Args
x Input tensor.
axis Axis or axes along which to flip the tensor. The default, axis=None, will flip over all of the axes of the input tensor.
Returns
Output tensor with entries of axis reversed.

© 2022 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/tf/keras/ops/flip

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API