זרימת טנסור :: אופ :: ResourceApplyFtrl
#include <training_ops.h>
עדכן את '* var' בהתאם לתכנית Ftrl-proximal.
סיכום
accum_new = accum + grad * grad linear + = grad - (accum_new ^ (- lr_power) - accum ^ (- lr_power)) / lr * var quadratic = 1.0 / (accum_new ^ (lr_power) * lr) + 2 * l2 var = (סימן (לינארי) * l1 - לינארי) / ריבועי אם | ליניארי | > l1 אחר 0.0 accum = accum_new
טענות:
- היקף: אובייקט Scope
- var: צריך להיות מתוך משתנה ().
- accum: צריך להיות מתוך משתנה ().
- לינארי: צריך להיות מתוך משתנה ().
- דרגה: השיפוע.
- lr: גורם קנה מידה. חייב להיות סקלרי.
- l1: ויסות L1. חייב להיות סקלרי.
- l2: ויסות L2. חייב להיות סקלרי.
- lr_power: גורם שינוי גודל. חייב להיות סקלרי.
תכונות אופציונליות (ראה Attrs
):
- use_locking: אם
True
, עדכון של טנסורים var ו- accum יוגן על ידי מנעול; אחרת ההתנהגות אינה מוגדרת, אך עשויה להפגין פחות מחלוקת.
החזרות:
-
Operation
שנוצר
קונסטרוקטורים ומשחתנים | |
---|---|
ResourceApplyFtrl (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input accum, :: tensorflow::Input linear, :: tensorflow::Input grad, :: tensorflow::Input lr, :: tensorflow::Input l1, :: tensorflow::Input l2, :: tensorflow::Input lr_power) | |
ResourceApplyFtrl (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input accum, :: tensorflow::Input linear, :: tensorflow::Input grad, :: tensorflow::Input lr, :: tensorflow::Input l1, :: tensorflow::Input l2, :: tensorflow::Input lr_power, const ResourceApplyFtrl::Attrs & attrs) |
תכונות ציבוריות | |
---|---|
operation |
פונקציות ציבוריות | |
---|---|
operator::tensorflow::Operation () const |
פונקציות סטטיות ציבוריות | |
---|---|
UseLocking (bool x) |
סטרוקטורים | |
---|---|
tensorflow :: ops :: ResourceApplyFtrl :: Attrs | קובעי תכונות אופציונליים עבור ResourceApplyFtrl . |
תכונות ציבוריות
מבצע
Operation operation
פונקציות ציבוריות
ResourceApplyFtrl
ResourceApplyFtrl( const ::tensorflow::Scope & scope, ::tensorflow::Input var, ::tensorflow::Input accum, ::tensorflow::Input linear, ::tensorflow::Input grad, ::tensorflow::Input lr, ::tensorflow::Input l1, ::tensorflow::Input l2, ::tensorflow::Input lr_power )
ResourceApplyFtrl
ResourceApplyFtrl( const ::tensorflow::Scope & scope, ::tensorflow::Input var, ::tensorflow::Input accum, ::tensorflow::Input linear, ::tensorflow::Input grad, ::tensorflow::Input lr, ::tensorflow::Input l1, ::tensorflow::Input l2, ::tensorflow::Input lr_power, const ResourceApplyFtrl::Attrs & attrs )
מפעיל :: זרימת tensor :: פעולה
operator::tensorflow::Operation() const
פונקציות סטטיות ציבוריות
UseLocking
Attrs UseLocking( bool x )
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2020-04-20 (שעון UTC).
[]
[]