זרימת טנסור :: אופ :: 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 יוגן על ידי מנעול; אחרת ההתנהגות אינה מוגדרת, אך עשויה להפגין פחות מחלוקת.

החזרות:

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

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
)