tensorflow:: אופס:: ResourceApplyPowerSign
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
#include <training_ops.h>
עדכן את '*var' בהתאם לעדכון AddSign.
תַקצִיר
m_t <- beta1 * m_{t-1} + (1 - beta1) * g update <- exp(logbase * sign_decay * sign(g) * sign(m_t)) * g variable <- variable - lr_t * update
טיעונים:
- scope: אובייקט Scope
- var: צריך להיות מ-Variable().
- m: צריך להיות ממשתנה().
- lr: גורם קנה מידה. חייב להיות סקלר.
- logbase: חייב להיות סקלרי.
- sign_decay: חייב להיות סקלרי.
- בטא: חייב להיות סקלרי.
- grad: השיפוע.
מאפיינים אופציונליים (ראה Attrs
):
- use_locking: אם
True
, עדכון הטנסורים var ו-m מוגן על ידי מנעול; אחרת ההתנהגות אינה מוגדרת, אך עלולה להפגין פחות מחלוקת.
החזרות:
-
Operation
שנוצר
בנאים והורסים | |
---|---|
ResourceApplyPowerSign (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) | |
ResourceApplyPowerSign (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 ResourceApplyPowerSign::Attrs & attrs) |
תפקידים ציבוריים | |
---|---|
operator::tensorflow::Operation () const |
פונקציות סטטיות ציבוריות | |
---|---|
UseLocking (bool x) |
מבנים | |
---|---|
tensorflow:: ops:: ResourceApplyPowerSign:: Attrs | קובעי תכונות אופציונליים עבור ResourceApplyPowerSign . |
תכונות ציבוריות
מִבצָע
Operation operation
תפקידים ציבוריים
ResourceApplyPowerSign
ResourceApplyPowerSign(
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
)
ResourceApplyPowerSign
ResourceApplyPowerSign(
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 ResourceApplyPowerSign::Attrs & attrs
)
אופרטור::tensorflow::פעולה
operator::tensorflow::Operation() const
פונקציות סטטיות ציבוריות
השתמש בנעילה
Attrs UseLocking(
bool x
)