tensorflow::ops::MaxPool
#include <nn_ops.h>
Выполняет макс-пулинг входных данных.
Краткое описание
Аргументы:
- scope: объект Scope
- input: 4-мерный входной тензор для пулинга.
- ksize: Размер окна для каждого измерения входного тензора.
- strides: Шаг сдвигающегося окна для каждого измерения входного тензора.
- padding: Тип алгоритма дополнения.
Необязательные атрибуты (см. Attrs):
- data_format: Задает формат данных входных и выходных данных. При использовании формата по умолчанию "NHWC" данные хранятся в следующем порядке: [batch, in_height, in_width, in_channels]. Также можно использовать формат "NCHW", при котором данные хранятся в следующем порядке: [batch, in_channels, in_height, in_width].
Возвращает:
-
Output: Тензор с результатом макс-пулинга.
| Конструкторы и деструкторы | |
|---|---|
MaxPool(const ::tensorflow::Scope & scope, ::tensorflow::Input input, const gtl::ArraySlice< int > & ksize, const gtl::ArraySlice< int > & strides, StringPiece padding) | |
MaxPool(const ::tensorflow::Scope & scope, ::tensorflow::Input input, const gtl::ArraySlice< int > & ksize, const gtl::ArraySlice< int > & strides, StringPiece padding, const MaxPool::Attrs & attrs) |
| Открытые атрибуты | |
|---|---|
operation | |
output | |
| Открытые функции | |
|---|---|
node() const | ::tensorflow::Node * |
operator::tensorflow::Input() const | |
operator::tensorflow::Output() const | |
| Открытые статические функции | |
|---|---|
DataFormat(StringPiece x) | |
ExplicitPaddings(const gtl::ArraySlice< int > & x) | |
| Структуры | |
|---|---|
| tensorflow::ops::MaxPool::Attrs | Методы задания необязательных атрибутов для MaxPool. |
Открытые атрибуты
operation
Operation operation
output
::tensorflow::Output output
Открытые функции
MaxPool
MaxPool( const ::tensorflow::Scope & scope, ::tensorflow::Input input, const gtl::ArraySlice< int > & ksize, const gtl::ArraySlice< int > & strides, StringPiece padding )
MaxPool
MaxPool( const ::tensorflow::Scope & scope, ::tensorflow::Input input, const gtl::ArraySlice< int > & ksize, const gtl::ArraySlice< int > & strides, StringPiece padding, const MaxPool::Attrs & attrs )
node
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
Открытые статические функции
DataFormat
Attrs DataFormat( StringPiece x )
ExplicitPaddings
Attrs ExplicitPaddings( const gtl::ArraySlice< int > & 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/max-pool