tensorflow:: ops:: AvgPool

#include <nn_ops.h>

يقوم بعملية تجميع المتوسطات على المدخلات.

ملخص

كل إدخال في output هو متوسط value نافذة الحجم ksize المقابلة.

الحجج:

  • النطاق: كائن النطاق
  • القيمة: رباعية الأبعاد مع شكل [batch, height, width, channels] .
  • ksize: حجم النافذة المنزلقة لكل بُعد من أبعاد value .
  • الخطوات: خطوة النافذة المنزلقة لكل بُعد من أبعاد value .
  • الحشو: نوع خوارزمية الحشو المراد استخدامها.

السمات الاختيارية (انظر Attrs ):

  • data_format: حدد تنسيق بيانات الإدخال والإخراج. مع التنسيق الافتراضي "NHWC"، تُخزَّن البيانات بالترتيب التالي: [batch, in_height, in_width, in_channels]. بدلاً من ذلك، يمكن أن يكون التنسيق "NCHW"، ويكون ترتيب تخزين البيانات كالتالي: [batch, in_channels, in_height, in_width].

المرتجعات:

  • Output : موتر الناتج المجمع المتوسط.

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

AvgPool (const :: tensorflow::Scope & scope, :: tensorflow::Input value, const gtl::ArraySlice< int > & ksize, const gtl::ArraySlice< int > & strides, StringPiece padding)
AvgPool (const :: tensorflow::Scope & scope, :: tensorflow::Input value, const gtl::ArraySlice< int > & ksize, const gtl::ArraySlice< int > & strides, StringPiece padding, const AvgPool::Attrs & attrs)

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

operation
output

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

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

الدوال الثابتة العامة

DataFormat (StringPiece x)

الهياكل

tensorflow:: ops:: AvgPool:: Attrs

أدوات تعيين السمات الاختيارية لـ AvgPool .

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

عملية

Operation operation

المخرجات

::tensorflow::Output output

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

متوسط ​​المجموعة

 AvgPool(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input value,
  const gtl::ArraySlice< int > & ksize,
  const gtl::ArraySlice< int > & strides,
  StringPiece padding
)

متوسط ​​المجموعة

 AvgPool(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input value,
  const gtl::ArraySlice< int > & ksize,
  const gtl::ArraySlice< int > & strides,
  StringPiece padding,
  const AvgPool::Attrs & attrs
)

العقدة

::tensorflow::Node * node() const 

operator::tensorflow::Input

 operator::tensorflow::Input() const 

operator::tensorflow::Output

 operator::tensorflow::Output() const 

الدوال الثابتة العامة

تنسيق البيانات

Attrs DataFormat(
  StringPiece x
)