זרימת טנסור :: אופ :: ApplyPowerSign

#include <training_ops.h>

עדכן '* var' בהתאם לעדכון AddSign.

סיכום

m_t <- beta1 * m_ {t-1} + (1 - beta1) * g עדכון <- exp (logbase * sign_decay * סימן (g) * סימן (m_t)) * g משתנה <- משתנה - lr_t * עדכון

טענות:

  • היקף: אובייקט Scope
  • var: צריך להיות מתוך משתנה ().
  • מ ': צריך להיות משתנה ().
  • lr: גורם קנה מידה. חייב להיות סקלרי.
  • logbase: חייב להיות סקלרי.
  • sign_decay: חייב להיות סקלרי.
  • בטא: חייב להיות סקלרי.
  • דרגה: השיפוע.

תכונות אופציונליות (ראה Attrs ):

  • use_locking: אם True , עדכון של טנסורי ה- var ו- m מוגן באמצעות נעילה; אחרת ההתנהגות אינה מוגדרת, אך עשויה להפגין פחות מחלוקת.

החזרות:

קונסטרוקטורים ומשחתנים

ApplyPowerSign (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input m, :: tensorflow::Input lr, :: tensorflow::Input logbase, :: tensorflow::Input sign_decay, :: tensorflow::Input beta, :: tensorflow::Input grad)
ApplyPowerSign (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input m, :: tensorflow::Input lr, :: tensorflow::Input logbase, :: tensorflow::Input sign_decay, :: tensorflow::Input beta, :: tensorflow::Input grad, const ApplyPowerSign::Attrs & attrs)

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

operation
out

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

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

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

UseLocking (bool x)

סטרוקטורים

tensorflow :: ops :: ApplyPowerSign :: Attrs

קובעי תכונות אופציונליים עבור ApplyPowerSign .

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

מבצע

Operation operation

הַחוּצָה

::tensorflow::Output out

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

ApplyPowerSign

 ApplyPowerSign(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input var,
  ::tensorflow::Input m,
  ::tensorflow::Input lr,
  ::tensorflow::Input logbase,
  ::tensorflow::Input sign_decay,
  ::tensorflow::Input beta,
  ::tensorflow::Input grad
)

ApplyPowerSign

 ApplyPowerSign(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input var,
  ::tensorflow::Input m,
  ::tensorflow::Input lr,
  ::tensorflow::Input logbase,
  ::tensorflow::Input sign_decay,
  ::tensorflow::Input beta,
  ::tensorflow::Input grad,
  const ApplyPowerSign::Attrs & attrs
)

צוֹמֶת

::tensorflow::Node * node() const 

אופרטור :: זרימת טנסור :: קלט

 operator::tensorflow::Input() const 

אופרטור :: זרימת טנסור :: פלט

 operator::tensorflow::Output() const 

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

UseLocking

Attrs UseLocking(
  bool x
)