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 | A Tensor. |
perm | A Tensor. Должен быть одним из следующих типов: int32, int64. |
name | Имя операции (необязательно). |
| Возвращаемые значения | |
|---|---|
A Tensor. Имеет тот же тип, что и x. |
© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.4/api_docs/python/tf/raw_ops/Transpose