tensorflow::ops::MaxPool::Attrs
#include <nn_ops.h>
Дополнительные атрибуты для MaxPool.
Краткое описание
| Общедоступные атрибуты | |
|---|---|
data_format_ = "NHWC" | StringPiece |
explicit_paddings_ = {} | gtl::ArraySlice< int > |
| Общедоступные функции | |
|---|---|
DataFormat(StringPiece x) | TF_MUST_USE_RESULT Attrs Указывает формат данных входных и выходных данных. |
ExplicitPaddings(const gtl::ArraySlice< int > & x) | TF_MUST_USE_RESULT Attrs По умолчанию []. |
Общедоступные атрибуты
data_format_
StringPiece tensorflow::ops::MaxPool::Attrs::data_format_ = "NHWC"
explicit_paddings_
gtl::ArraySlice< int > tensorflow::ops::MaxPool::Attrs::explicit_paddings_ = {} Общедоступные функции
DataFormat
TF_MUST_USE_RESULT Attrs tensorflow::ops::MaxPool::Attrs::DataFormat( StringPiece x )
Указывает формат данных входных и выходных данных.
При использовании формата по умолчанию "NHWC" данные хранятся в порядке: [batch, in_height, in_width, in_channels]. В качестве альтернативы можно использовать формат "NCHW", порядок хранения данных: [batch, in_channels, in_height, in_width].
По умолчанию "NHWC".
ExplicitPaddings
TF_MUST_USE_RESULT Attrs tensorflow::ops::MaxPool::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/versions/r2.9/api_docs/cc/struct/tensorflow/ops/max-pool/attrs