تدفق التوتر:: العمليات:: ماكس بول:: Attrs
#include <nn_ops.h>
محددات السمات الاختيارية لـ MaxPool .
ملخص
الصفات العامة | |
---|---|
data_format_ = "NHWC" | StringPiece |
الوظائف العامة | |
---|---|
DataFormat (StringPiece x) | TF_MUST_USE_RESULT Attrs تحديد تنسيق البيانات لبيانات الإدخال والإخراج. |
الصفات العامة
تنسيق_البيانات_
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"
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)"],[],[],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\""]]