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

#include <data_flow_ops.h>

تراكم مشروط لتجميع التدرجات المتفرقة.

ملخص

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

الحجج:

  • النطاق: كائن النطاق
  • dtype: نوع القيمة التي يتم تجميعها.
  • الشكل: شكل القيم.

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

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

عائدات:

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

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

SparseConditionalAccumulator (const :: tensorflow::Scope & scope, DataType dtype, PartialTensorShape shape)
SparseConditionalAccumulator (const :: tensorflow::Scope & scope, DataType dtype, PartialTensorShape shape, const SparseConditionalAccumulator::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:: SparseConditionalAccumulator:: Attrs

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

الصفات العامة

مقبض

::tensorflow::Output handle

عملية

Operation operation

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

المجمع الشرطي المتفرق

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

المجمع الشرطي المتفرق

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

العقدة

::tensorflow::Node * node() const 

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

 operator::tensorflow::Input() const 

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

 operator::tensorflow::Output() const 

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

حاوية

Attrs Container(
  StringPiece x
)

نوع التخفيض

Attrs ReductionType(
  StringPiece x
)

الاسم المشترك

Attrs SharedName(
  StringPiece x
)