tensorflow:: אופס:: ResourceApplyAddSign

#include <training_ops.h>

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

סיכום

m_t <- beta1 * m_{t-1} + (1 - beta1) * g update <- (alpha + sign_decay * sign(g) *sign(m)) * g variable <- variable - lr_t * update

טיעונים:

  • scope: אובייקט Scope
  • var: צריך להיות מ-Variable().
  • m: צריך להיות ממשתנה().
  • lr: גורם קנה מידה. חייב להיות סקלר.
  • אלפא: חייב להיות סקלרי.
  • sign_decay: חייב להיות סקלרי.
  • בטא: חייב להיות סקלרי.
  • grad: השיפוע.

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

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

החזרות:

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

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

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

operation

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

operator::tensorflow::Operation () const

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

UseLocking (bool x)

מבנים

tensorflow:: ops:: ResourceApplyAddSign:: Attrs

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

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

מבצע

Operation operation

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

ResourceApplyAddSign

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

ResourceApplyAddSign

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

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

 operator::tensorflow::Operation() const 

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

השתמש בנעילה

Attrs UseLocking(
  bool x
)