Stay organized with collections
Save and categorize content based on your preferences.
tensorflow::ops::MaxPool::Attrs
#include <nn_ops.h>
Optional attribute setters for MaxPool.
Summary
Public functions
|
DataFormat(StringPiece x)
|
Specify the data format of the input and output data.
|
ExplicitPaddings(const gtl::ArraySlice< int > & x)
|
Defaults to [].
|
Public attributes
StringPiece tensorflow::ops::MaxPool::Attrs::data_format_ = "NHWC"
explicit_paddings_
gtl::ArraySlice< int > tensorflow::ops::MaxPool::Attrs::explicit_paddings_ = {}
Public functions
TF_MUST_USE_RESULT Attrs tensorflow::ops::MaxPool::Attrs::DataFormat(
StringPiece x
)
Specify the data format of the input and output data.
With the default format "NHWC", the data is stored in the order of: [batch, in_height, in_width, in_channels]. Alternatively, the format could be "NCHW", the data storage order of: [batch, in_channels, in_height, in_width].
Defaults to "NHWC"
ExplicitPaddings
TF_MUST_USE_RESULT Attrs tensorflow::ops::MaxPool::Attrs::ExplicitPaddings(
const gtl::ArraySlice< int > & x
)
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2021-11-15 UTC.
[null,null,["Last updated 2021-11-15 UTC."],[],[],null,["# tensorflow::ops::MaxPool::Attrs Struct Reference\n\ntensorflow::ops::MaxPool::Attrs\n===============================\n\n`#include \u003cnn_ops.h\u003e`\n\nOptional attribute setters for [MaxPool](/api_docs/cc/class/tensorflow/ops/max-pool#classtensorflow_1_1ops_1_1_max_pool).\n\nSummary\n-------\n\n| ### Public attributes ||\n|-----------------------------------------------------------------------------------------------------------------|--------------------------|\n| [data_format_](#structtensorflow_1_1ops_1_1_max_pool_1_1_attrs_1a0ef1889743d4b66c14d04f4228678a44)` = \"NHWC\"` | `StringPiece` |\n| [explicit_paddings_](#structtensorflow_1_1ops_1_1_max_pool_1_1_attrs_1a9216908c357f78b7b7468113899ab7b6)` = {}` | `gtl::ArraySlice\u003c int \u003e` |\n\n| ### Public functions ||\n|--------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [DataFormat](#structtensorflow_1_1ops_1_1_max_pool_1_1_attrs_1ae58819a319133046495923de7bc76753)`(StringPiece x)` | `TF_MUST_USE_RESULT `[Attrs](/api_docs/cc/struct/tensorflow/ops/max-pool/attrs#structtensorflow_1_1ops_1_1_max_pool_1_1_attrs) Specify the data format of the input and output data. |\n| [ExplicitPaddings](#structtensorflow_1_1ops_1_1_max_pool_1_1_attrs_1a285e9dd0e549a3f01b411057e7dcb45a)`(const gtl::ArraySlice\u003c int \u003e & x)` | `TF_MUST_USE_RESULT `[Attrs](/api_docs/cc/struct/tensorflow/ops/max-pool/attrs#structtensorflow_1_1ops_1_1_max_pool_1_1_attrs) Defaults to \\[\\]. |\n\nPublic attributes\n-----------------\n\n### data_format_\n\n```scdoc\nStringPiece tensorflow::ops::MaxPool::Attrs::data_format_ = \"NHWC\"\n``` \n\n### explicit_paddings_\n\n```scdoc\ngtl::ArraySlice\u003c int \u003e tensorflow::ops::MaxPool::Attrs::explicit_paddings_ = {}\n``` \n\nPublic functions\n----------------\n\n### DataFormat\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::MaxPool::Attrs::DataFormat(\n StringPiece x\n)\n``` \nSpecify the data format of the input and output data.\n\nWith the default format \"NHWC\", the data is stored in the order of: \\[batch, in_height, in_width, in_channels\\]. Alternatively, the format could be \"NCHW\", the data storage order of: \\[batch, in_channels, in_height, in_width\\].\n\nDefaults to \"NHWC\" \n\n### ExplicitPaddings\n\n```gdscript\nTF_MUST_USE_RESULT Attrs tensorflow::ops::MaxPool::Attrs::ExplicitPaddings(\n const gtl::ArraySlice\u003c int \u003e & x\n)\n``` \nDefaults to \\[\\]."]]