تدفق التوتر:: العمليات:: متوسط

#include <nn_ops.h>

ينفذ تجميع متوسط ​​على المدخلات.

ملخص

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

الحجج:

  • النطاق: كائن النطاق
  • القيمة: 4-D بالشكل [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 

المشغل::tensorflow::الإدخال

 operator::tensorflow::Input() const 

المشغل::tensorflow::الإخراج

 operator::tensorflow::Output() const 

وظائف ثابتة العامة

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

Attrs DataFormat(
  StringPiece x
)