نشكرك على متابعة Google I / O. عرض جميع الجلسات عند الطلب مشاهدة عند الطلب

تينسورفلو :: العمليات :: المركب الشرطي

#include <data_flow_ops.h>

تراكم شرطي لتجميع التدرجات.

ملخص

يقبل المركب التدرجات التي تم تمييزها بعلامة local_step أكبر من أو تساوي أحدث خطوة عالمية معروفة للمجمع. يمكن استخلاص المتوسط ​​من المركم بشرط أن يتم تجميع التدرجات الكافية. يؤدي استخراج المتوسط ​​تلقائيًا إلى إعادة تعيين التجميع إلى 0 ، وزيادة الخطوة العالمية المسجلة بواسطة المجمع.

الحجج:

  • النطاق: كائن النطاق
  • dtype: نوع القيمة المتراكمة.
  • الشكل: يمكن أن يكون شكل القيم [] ، وفي هذه الحالة يكون الشكل غير معروف.

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

  • الحاوية: إذا لم تكن فارغة ، يتم وضع هذا المركب في الحاوية المحددة. خلاف ذلك ، يتم استخدام حاوية افتراضية.
  • Shared_name: إذا لم يكن فارغًا ، فستتم مشاركة هذا المجمع تحت الاسم المحدد عبر جلسات متعددة.

عائدات:

  • Output : مقبض المجمع.

البنائين والمدمرين

ConditionalAccumulator (const :: tensorflow::Scope & scope, DataType dtype, PartialTensorShape shape)
ConditionalAccumulator (const :: tensorflow::Scope & scope, DataType dtype, PartialTensorShape shape, const ConditionalAccumulator::Attrs & attrs)

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

handle
operation

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

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

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

Container (StringPiece x)
ReductionType (StringPiece x)
SharedName (StringPiece x)

الهياكل

tensorflow :: ops :: ConditionalAccumulator :: Attrs

محددات السمات الاختيارية لـ ConditionalAccumulator .

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

مقبض

::tensorflow::Output handle

عملية

Operation operation

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

المركب الشرطي

 ConditionalAccumulator(
  const ::tensorflow::Scope & scope,
  DataType dtype,
  PartialTensorShape shape
)

المركب الشرطي

 ConditionalAccumulator(
  const ::tensorflow::Scope & scope,
  DataType dtype,
  PartialTensorShape shape,
  const ConditionalAccumulator::Attrs & attrs
)

العقدة

::tensorflow::Node * node() const 

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

 operator::tensorflow::Input() const 

المشغل :: Tensorflow :: Output

 operator::tensorflow::Output() const 

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

وعاء

Attrs Container(
  StringPiece x
)

نوع التخفيض

Attrs ReductionType(
  StringPiece x
)

SharedName

Attrs SharedName(
  StringPiece x
)