tensorflow:: ops:: מצבר מותנה

#include <data_flow_ops.h>

צובר מותנה לאיסוף גרדיאנטים.

תַקצִיר

הפונקציה accumulator מקבלת גרדיאנטים המסומנים ב-local_step גדולה או שווה ל-global_step האחרון הידוע לפונקציה accumulator. ניתן לחלץ את הממוצע מהפונקציה accumulator, בתנאי שנצברו מספיק גרדיאנטים. חילוץ הממוצע מאפס אוטומטית את הסכום המצטבר ל-0, ומגדיל את ה-global_step שנרשם על ידי הפונקציה accumulator.

טיעונים:

  • היקף: אובייקט היקף
  • dtype: סוג הערך המצטבר.
  • צורה: צורת הערכים יכולה להיות [], ובמקרה כזה הצורה אינה ידועה.

מאפיינים אופציונליים (ראה Attrs ):

  • מיכל: אם אינו ריק, מצבר זה ממוקם במיכל הנתון. אחרת, נעשה שימוש במיכל ברירת מחדל.
  • שם_משתתף: אם אינו ריק, אקומולטור זה ישותף תחת השם הנתון על פני מספר סשנים.

החזרות:

  • 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::פלט

 operator::tensorflow::Output() const 

פונקציות סטטיות ציבוריות

מְכוֹלָה

Attrs Container(
  StringPiece x
)

סוג הפחתה

Attrs ReductionType(
  StringPiece x
)

שם משותף

Attrs SharedName(
  StringPiece x
)