tensorflow:: ops:: Dilation2D

#include <nn_ops.h>

يحسب تمدد التدرج الرمادي input رباعية الأبعاد وموترات filter ثلاثية الأبعاد.

ملخص

يكون شكل موتر input [batch, in_height, in_width, depth] ، بينما يكون شكل موتر filter [filter_height, filter_width, depth] ، أي أن كل قناة إدخال تُعالج بشكل مستقل عن القنوات الأخرى باستخدام دالة هيكلة خاصة بها. أما شكل موتر output فهو [batch, out_height, out_width, depth] . وتعتمد الأبعاد المكانية لموتر الإخراج على خوارزمية padding . ندعم حاليًا data_format الافتراضي "NHWC" فقط.

بالتفصيل، فإن التمدد المورفولوجي ثنائي الأبعاد ذو التدرج الرمادي هو ارتباط المجموع الأقصى (للتوافق مع conv2d ، نستخدم مرشحات غير معكوسة):

output[b, y, x, c] =
   max_{dy, dx} input[b,
                      strides[1] * y + rates[1] * dy,
                      strides[2] * x + rates[2] * dx,
                      c] +
                filter[dy, dx, c]

التجميع الأقصى هو حالة خاصة عندما يكون حجم المرشح مساوياً لحجم نواة التجميع ويحتوي على جميع الأصفار.

ملاحظة حول الازدواجية: إن تمدد input بواسطة filter يساوي نفي تآكل -input بواسطة filter المنعكس.

الحجج:

  • النطاق: كائن النطاق
  • المدخلات: رباعي الأبعاد مع الشكل [batch, in_height, in_width, depth] .
  • فلتر: ثلاثي الأبعاد مع شكل [filter_height, filter_width, depth] .
  • الخطوات: خطوة النافذة المنزلقة لكل بُعد من أبعاد موتر الإدخال. يجب أن تكون: [1, stride_height, stride_width, 1] .
  • المعدلات: خطوة الإدخال للتمدد المورفولوجي التمددي. يجب أن تكون: [1, rate_height, rate_width, 1] .
  • الحشو: نوع خوارزمية الحشو المراد استخدامها.

المرتجعات:

  • Output : رباعي الأبعاد بالشكل [batch, out_height, out_width, depth] .

البناة والمدمرون

Dilation2D (const :: tensorflow::Scope & scope, :: tensorflow::Input input, :: tensorflow::Input filter, const gtl::ArraySlice< int > & strides, const gtl::ArraySlice< int > & rates, StringPiece padding)

السمات العامة

operation
output

الوظائف العامة

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

السمات العامة

عملية

Operation operation

المخرجات

::tensorflow::Output output

الوظائف العامة

تمدد ثنائي الأبعاد

 Dilation2D(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input,
  ::tensorflow::Input filter,
  const gtl::ArraySlice< int > & strides,
  const gtl::ArraySlice< int > & rates,
  StringPiece padding
)

العقدة

::tensorflow::Node * node() const 

operator::tensorflow::Input

 operator::tensorflow::Input() const 

operator::tensorflow::Output

 operator::tensorflow::Output() const