tensorflow:: אופס:: AccumulatorTakeGradient

#include <data_flow_ops.h>

מחלץ את השיפוע הממוצע ב- ConditionalAccumulator הנתון.

סיכום

בלוקי הפעולה עד שנצברו שיפועים מספיקים (כלומר, יותר מ- num_required). אם המצבר כבר צבר יותר מדרגות num_required, הוא מחזיר את הממוצע של ההדרגות המצטברות. כמו כן, מגדיל באופן אוטומטי את הצעד הגלובלי המתועד בצובר ב-1, ומאפס את המצטבר ל-0.

טיעונים:

  • scope: אובייקט Scope
  • ידית: הידית למצבר.
  • num_required: מספר ההדרגות הנדרשות לפני שנחזיר צבירה.
  • dtype: סוג הנתונים של מעברי צבע מצטברים. צריך להתאים לסוג המצבר.

החזרות:

  • Output : ממוצע ההדרגות המצטברות.

בנאים והורסים

AccumulatorTakeGradient (const :: tensorflow::Scope & scope, :: tensorflow::Input handle, :: tensorflow::Input num_required, DataType dtype)

תכונות ציבוריות

average
operation

תפקידים ציבוריים

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

תכונות ציבוריות

מְמוּצָע

::tensorflow::Output average

מבצע

Operation operation

תפקידים ציבוריים

AccumulatorTakeGradient

 AccumulatorTakeGradient(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input handle,
  ::tensorflow::Input num_required,
  DataType dtype
)

צוֹמֶת

::tensorflow::Node * node() const 

מפעיל::tensorflow::קלט

 operator::tensorflow::Input() const 

אופרטור::tensorflow::פלט

 operator::tensorflow::Output() const