tensorflow:: ops:: DepthwiseConv2dNative
#include <nn_ops.h> يحسب عملية الالتفاف العميق ثنائي الأبعاد بالنظر إلى input رباعية الأبعاد وموترات filter .
ملخص
بافتراض وجود موتر إدخال ذي شكل [batch, in_height, in_width, in_channels] وموتر مرشح/نواة ذي شكل [filter_height, filter_width, in_channels, channel_multiplier] ، يحتوي على in_channels من مرشحات الالتفاف بعمق 1، فإنّ depthwise_conv2d يطبّق مرشحًا مختلفًا على كل قناة إدخال (متوسعًا من قناة واحدة إلى channel_multiplier قناة لكل منها)، ثم يدمج النتائج معًا. وبالتالي، يحتوي الناتج على in_channels * channel_multiplier قناة.
for k in 0..in_channels-1
for q in 0..channel_multiplier-1
output[b, i, j, k * channel_multiplier + q] =
sum_{di, dj} input[b, strides[1] * i + di, strides[2] * j + dj, k] *
filter[di, dj, k, q] يجب أن تكون قيمة strides[0] = strides[3] = 1 في الحالة الأكثر شيوعًا لتساوي الخطوات الأفقية وخطوات الرؤوس، strides = [1, stride, stride, 1] .
الحجج:
- النطاق: كائن النطاق
- الخطوات: 1-D بطول 4. خطوة النافذة المنزلقة لكل بُعد من أبعاد
input. - الحشو: نوع خوارزمية الحشو المراد استخدامها.
السمات الاختيارية (انظر Attrs ):
- data_format: حدد تنسيق بيانات الإدخال والإخراج. مع التنسيق الافتراضي "NHWC"، تُخزَّن البيانات بالترتيب التالي: [الدفعة، الارتفاع، العرض، القنوات]. بدلاً من ذلك، يمكن أن يكون التنسيق "NCHW"، ويكون ترتيب تخزين البيانات كالتالي: [الدفعة، القنوات، الارتفاع، العرض].
- التمددات: موتر أحادي البعد بطول 4. عامل التمدد لكل بُعد من أبعاد
input. إذا تم ضبطه على k > 1، فسيتم تخطي k-1 خلية بين كل عنصر من عناصر التصفية في ذلك البُعد. يتم تحديد ترتيب الأبعاد بواسطة قيمةdata_format، انظر أعلاه لمزيد من التفاصيل. يجب أن تكون التمددات في بُعدي الدفعة والعمق 1.
المرتجعات:
-
Output: موتر الناتج.
البناة والمدمرون | |
|---|---|
DepthwiseConv2dNative (const :: tensorflow::Scope & scope, :: tensorflow::Input input, :: tensorflow::Input filter, const gtl::ArraySlice< int > & strides, StringPiece padding) | |
DepthwiseConv2dNative (const :: tensorflow::Scope & scope, :: tensorflow::Input input, :: tensorflow::Input filter, const gtl::ArraySlice< int > & strides, StringPiece padding, const DepthwiseConv2dNative::Attrs & attrs) |
السمات العامة | |
|---|---|
operation | |
output | |
الوظائف العامة | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
الدوال الثابتة العامة | |
|---|---|
DataFormat (StringPiece x) | |
Dilations (const gtl::ArraySlice< int > & x) | |
الهياكل | |
|---|---|
| tensorflow:: ops:: DepthwiseConv2dNative:: Attrs | أدوات تعيين السمات الاختيارية لـ DepthwiseConv2dNative . |
السمات العامة
عملية
Operation operation
المخرجات
::tensorflow::Output output
الوظائف العامة
DepthwiseConv2dNative
DepthwiseConv2dNative( const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input filter, const gtl::ArraySlice< int > & strides, StringPiece padding )
DepthwiseConv2dNative
DepthwiseConv2dNative( const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input filter, const gtl::ArraySlice< int > & strides, StringPiece padding, const DepthwiseConv2dNative::Attrs & attrs )
العقدة
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
الدوال الثابتة العامة
تنسيق البيانات
Attrs DataFormat( StringPiece x )
توسعات
Attrs Dilations( const gtl::ArraySlice< int > & x )
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2026-11-05 (حسب التوقيت العالمي المتفَّق عليه)