זרימת טנסור :: אופ :: 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 מוגן באמצעות נעילה; אחרת ההתנהגות אינה מוגדרת, אך עשויה להפגין פחות מחלוקת.
החזרות:
-
Output
: זהה ל- "var".
קונסטרוקטורים ומשחתנים | |
---|---|
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 )
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2020-04-20 (שעון UTC).
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"חסרים לי מידע או פרטים"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"התוכן מורכב מדי או עם יותר מדי שלבים"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"התוכן לא עדכני"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"בעיה בתרגום"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"בעיה בדוגמאות/בקוד"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"סיבה אחרת"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"התוכן קל להבנה"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"התוכן עזר לי לפתור בעיה"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"סיבה אחרת"
}]