tensorflow::ops::DataFormatVecPermute
#include <nn_ops.h>
Переставляет входной тензор из src_format в dst_format.
Краткое описание
При заданных строках формата источника и назначения длиной n=4 или 5 входной тензор должен быть вектором размера n или n-2 либо двумерным тензором формы (n, 2) или (n-2, 2).
Если первое измерение входного тензора равно n-2, предполагается, что непространственные измерения опущены (т. е. N, C).
Например, при src_format для NHWC, dst_format для NCHW и входных данных:
[1, 2, 3, 4]
[1, 4, 2, 3]
src_format
NDHWC
dst_format
NCDHW
[[1, 6], [2, 7], [3, 8], [4, 9], [5, 10]]
[[1, 6], [5, 10], [2, 7], [3, 8], [4, 9]]
src_format
NHWC
dst_format
NCHW
[1, 2]
[1, 2]
Аргументы:
Необязательные атрибуты (см. Attrs):
- src_format: формат исходных данных.
- dst_format: формат данных назначения.
Возвращает:
| Конструкторы и деструкторы | |
|---|---|
DataFormatVecPermute(const ::tensorflow::Scope & scope, ::tensorflow::Input x) | |
DataFormatVecPermute(const ::tensorflow::Scope & scope, ::tensorflow::Input x, const DataFormatVecPermute::Attrs & attrs) |
| Открытые атрибуты | |
|---|---|
operation | |
y | |
| Открытые функции | |
|---|---|
node() const | ::tensorflow::Node * |
operator::tensorflow::Input() const | |
operator::tensorflow::Output() const | |
| Открытые статические функции | |
|---|---|
DstFormat(StringPiece x) | |
SrcFormat(StringPiece x) | |
| Структуры | |
|---|---|
| tensorflow::ops::DataFormatVecPermute::Attrs | Методы настройки необязательных атрибутов для DataFormatVecPermute. |
Открытые атрибуты
operation
Operation operation
y
::tensorflow::Output y
Открытые функции
DataFormatVecPermute
DataFormatVecPermute( const ::tensorflow::Scope & scope, ::tensorflow::Input x )
DataFormatVecPermute
DataFormatVecPermute( const ::tensorflow::Scope & scope, ::tensorflow::Input x, const DataFormatVecPermute::Attrs & attrs )
node
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
Открытые статические функции
DstFormat
Attrs DstFormat( StringPiece x )
SrcFormat
Attrs SrcFormat( StringPiece 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/cc/class/tensorflow/ops/data-format-vec-permute