tensorflow:: ops:: SparseConditionalAccumulator

#include <data_flow_ops.h>

مُجمِّع شرطي لتجميع التدرجات المتفرقة.

ملخص

يقبل المُجمِّع التدرجات التي تحمل علامة local_step أكبر من أو تساوي أحدث قيمة global_step معروفة لديه. ويمكن استخراج المتوسط ​​من المُجمِّع، شريطة تراكم عدد كافٍ من التدرجات. ويؤدي استخراج المتوسط ​​تلقائيًا إلى إعادة ضبط المجموع إلى الصفر، وزيادة قيمة 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 

operator::tensorflow::Input

 operator::tensorflow::Input() const 

operator::tensorflow::Output

 operator::tensorflow::Output() const 

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

حاوية

Attrs Container(
  StringPiece x
)

نوع الاختزال

Attrs ReductionType(
  StringPiece x
)

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

Attrs SharedName(
  StringPiece x
)