Stay organized with collections
Save and categorize content based on your preferences.
tensorflow::ops::AvgPool::Attrs
#include <nn_ops.h>
Optional attribute setters for AvgPool.
Summary
Public functions
|
DataFormat(StringPiece x)
|
Specify the data format of the input and output data.
|
Public attributes
StringPiece tensorflow::ops::AvgPool::Attrs::data_format_ = "NHWC"
Public functions
TF_MUST_USE_RESULT Attrs tensorflow::ops::AvgPool::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"
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.
Last updated 2020-04-20 UTC.
[null,null,["Last updated 2020-04-20 UTC."],[],[],null,["# tensorflow::ops::AvgPool::Attrs Struct Reference\n\ntensorflow::ops::AvgPool::Attrs\n===============================\n\n`#include \u003cnn_ops.h\u003e`\n\nOptional attribute setters for [AvgPool](/versions/r1.15/api_docs/cc/class/tensorflow/ops/avg-pool#classtensorflow_1_1ops_1_1_avg_pool).\n\nSummary\n-------\n\n| ### Public attributes ||\n|---------------------------------------------------------------------------------------------------------------|---------------|\n| [data_format_](#structtensorflow_1_1ops_1_1_avg_pool_1_1_attrs_1a0e4b620e50e4e614300077c6256a2cdf)` = \"NHWC\"` | `StringPiece` |\n\n| ### Public functions ||\n|-------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [DataFormat](#structtensorflow_1_1ops_1_1_avg_pool_1_1_attrs_1ae7e7184ac9ff06890002a69cc1591659)`(StringPiece x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/avg-pool/attrs#structtensorflow_1_1ops_1_1_avg_pool_1_1_attrs) Specify the data format of the input and output data. |\n\nPublic attributes\n-----------------\n\n### data_format_\n\n```scdoc\nStringPiece tensorflow::ops::AvgPool::Attrs::data_format_ = \"NHWC\"\n``` \n\nPublic functions\n----------------\n\n### DataFormat\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::AvgPool::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\""]]