tf.raw_ops.Transpose
Переставляет измерения x в соответствии с перестановкой.
tf.raw_ops.Transpose(
x, perm, name=None
)
Выходной y имеет тот же ранг, что и x. Формы x и y удовлетворяют условию: y.shape[i] == x.shape[perm[i]] for i in [0, 1, ..., rank(x) - 1]
| Аргументы | |
|---|---|
x | Tensor. |
perm | Tensor. Должен иметь один из следующих типов: int32, int64. |
name | Имя операции (необязательно). |
| Возвращаемое значение | |
|---|---|
Tensor. Имеет тот же тип, что и x. |
© 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/raw_ops/Transpose