コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
テンソルフロー::作戦::マックスプール::属性
#include <nn_ops.h>
MaxPoolのオプションの属性セッター。
まとめ
パブリック属性
StringPiece tensorflow::ops::MaxPool::Attrs::data_format_ = "NHWC"
公共機能
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」
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-25 UTC。
[null,null,["最終更新日 2025-07-25 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](/versions/r1.15/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\n| ### Public functions ||\n|-------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [DataFormat](#structtensorflow_1_1ops_1_1_max_pool_1_1_attrs_1ae58819a319133046495923de7bc76753)`(StringPiece x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r1.15/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\nPublic attributes\n-----------------\n\n### data_format_\n\n```scdoc\nStringPiece tensorflow::ops::MaxPool::Attrs::data_format_ = \"NHWC\"\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\""]]