จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
เทนเซอร์โฟลว์:: ปฏิบัติการ:: DepthwiseConv2dNative:: คุณสมบัติ
#include <nn_ops.h>
ตัวตั้งค่าแอตทริบิวต์เพิ่มเติมสำหรับ DepthwiseConv2dNative
สรุป
งานสาธารณะ |
---|
DataFormat (StringPiece x) | ระบุรูปแบบข้อมูลของข้อมูลอินพุตและเอาต์พุต |
Dilations (const gtl::ArraySlice< int > & x) | เทนเซอร์ 1-D ความยาว 4 |
ExplicitPaddings (const gtl::ArraySlice< int > & x) | ค่าเริ่มต้นเป็น [] |
คุณลักษณะสาธารณะ
StringPiece tensorflow::ops::DepthwiseConv2dNative::Attrs::data_format_ = "NHWC"
การขยาย_
gtl::ArraySlice< int > tensorflow::ops::DepthwiseConv2dNative::Attrs::dilations_ = Default_dilations()
ชัดเจน_paddings_
gtl::ArraySlice< int > tensorflow::ops::DepthwiseConv2dNative::Attrs::explicit_paddings_ = {}
งานสาธารณะ
TF_MUST_USE_RESULT Attrs tensorflow::ops::DepthwiseConv2dNative::Attrs::DataFormat(
StringPiece x
)
ระบุรูปแบบข้อมูลของข้อมูลอินพุตและเอาต์พุต
ด้วยรูปแบบเริ่มต้น "NHWC" ข้อมูลจะถูกจัดเก็บตามลำดับ: [แบทช์ ความสูง ความกว้าง ช่อง] หรืออีกทางหนึ่ง รูปแบบอาจเป็น "NCHW" ซึ่งเป็นลำดับการจัดเก็บข้อมูลเป็น: [แบทช์ ช่อง ความสูง ความกว้าง]
ค่าเริ่มต้นเป็น "NHWC"
การขยาย
TF_MUST_USE_RESULT Attrs tensorflow::ops::DepthwiseConv2dNative::Attrs::Dilations(
const gtl::ArraySlice< int > & x
)
เทนเซอร์ 1-D ความยาว 4
ปัจจัยการขยายสำหรับแต่ละมิติของ input
หากตั้งค่าเป็น k > 1 จะมีเซลล์ที่ข้าม k-1 ระหว่างองค์ประกอบตัวกรองแต่ละรายการในมิตินั้น ลำดับมิติถูกกำหนดโดยค่าของ data_format
โปรดดูรายละเอียดด้านบน การขยายขนาดแบทช์และความลึกต้องเป็น 1
ค่าเริ่มต้นคือ [1, 1, 1, 1]
Paddings ที่ชัดเจน
TF_MUST_USE_RESULT Attrs tensorflow::ops::DepthwiseConv2dNative::Attrs::ExplicitPaddings(
const gtl::ArraySlice< int > & x
)
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-27 UTC
[null,null,["อัปเดตล่าสุด 2025-07-27 UTC"],[],[],null,["# tensorflow::ops::DepthwiseConv2dNative::Attrs Struct Reference\n\ntensorflow::ops::DepthwiseConv2dNative::Attrs\n=============================================\n\n`#include \u003cnn_ops.h\u003e`\n\nOptional attribute setters for [DepthwiseConv2dNative](/versions/r2.3/api_docs/cc/class/tensorflow/ops/depthwise-conv2d-native#classtensorflow_1_1ops_1_1_depthwise_conv2d_native).\n\nSummary\n-------\n\n| ### Public attributes ||\n|-----------------------------------------------------------------------------------------------------------------------------------------|--------------------------|\n| [data_format_](#structtensorflow_1_1ops_1_1_depthwise_conv2d_native_1_1_attrs_1a0d029aaf29f51127d2da6466b8103ead)` = \"NHWC\"` | `StringPiece` |\n| [dilations_](#structtensorflow_1_1ops_1_1_depthwise_conv2d_native_1_1_attrs_1a4e35a2333d2bb5228f4251202d78c0e1)` = Default_dilations()` | `gtl::ArraySlice\u003c int \u003e` |\n| [explicit_paddings_](#structtensorflow_1_1ops_1_1_depthwise_conv2d_native_1_1_attrs_1a755122176f87796e4d88cc5eb4b0267a)` = {}` | `gtl::ArraySlice\u003c int \u003e` |\n\n| ### Public functions ||\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [DataFormat](#structtensorflow_1_1ops_1_1_depthwise_conv2d_native_1_1_attrs_1a447e7c3e583e72979fb2ec601f68db73)`(StringPiece x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.3/api_docs/cc/struct/tensorflow/ops/depthwise-conv2d-native/attrs#structtensorflow_1_1ops_1_1_depthwise_conv2d_native_1_1_attrs) Specify the data format of the input and output data. |\n| [Dilations](#structtensorflow_1_1ops_1_1_depthwise_conv2d_native_1_1_attrs_1aa73e4b11fe5a09060f449fcc49c63ba8)`(const gtl::ArraySlice\u003c int \u003e & x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.3/api_docs/cc/struct/tensorflow/ops/depthwise-conv2d-native/attrs#structtensorflow_1_1ops_1_1_depthwise_conv2d_native_1_1_attrs) 1-D tensor of length 4. |\n| [ExplicitPaddings](#structtensorflow_1_1ops_1_1_depthwise_conv2d_native_1_1_attrs_1a74bc8bd5a5f6750f0aee226d1ba431ad)`(const gtl::ArraySlice\u003c int \u003e & x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.3/api_docs/cc/struct/tensorflow/ops/depthwise-conv2d-native/attrs#structtensorflow_1_1ops_1_1_depthwise_conv2d_native_1_1_attrs) Defaults to \\[\\]. |\n\nPublic attributes\n-----------------\n\n### data_format_\n\n```scdoc\nStringPiece tensorflow::ops::DepthwiseConv2dNative::Attrs::data_format_ = \"NHWC\"\n``` \n\n### dilations_\n\n```scdoc\ngtl::ArraySlice\u003c int \u003e tensorflow::ops::DepthwiseConv2dNative::Attrs::dilations_ = Default_dilations()\n``` \n\n### explicit_paddings_\n\n```scdoc\ngtl::ArraySlice\u003c int \u003e tensorflow::ops::DepthwiseConv2dNative::Attrs::explicit_paddings_ = {}\n``` \n\nPublic functions\n----------------\n\n### DataFormat\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::DepthwiseConv2dNative::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, height, width, channels\\]. Alternatively, the format could be \"NCHW\", the data storage order of: \\[batch, channels, height, width\\].\n\nDefaults to \"NHWC\" \n\n### Dilations\n\n```gdscript\nTF_MUST_USE_RESULT Attrs tensorflow::ops::DepthwiseConv2dNative::Attrs::Dilations(\n const gtl::ArraySlice\u003c int \u003e & x\n)\n``` \n1-D tensor of length 4.\n\nThe dilation factor for each dimension of `input`. If set to k \\\u003e 1, there will be k-1 skipped cells between each filter element on that dimension. The dimension order is determined by the value of `data_format`, see above for details. Dilations in the batch and depth dimensions must be 1.\n\nDefaults to \\[1, 1, 1, 1\\] \n\n### ExplicitPaddings\n\n```gdscript\nTF_MUST_USE_RESULT Attrs tensorflow::ops::DepthwiseConv2dNative::Attrs::ExplicitPaddings(\n const gtl::ArraySlice\u003c int \u003e & x\n)\n``` \nDefaults to \\[\\]."]]