tensorflow:: אופס:: ResourceSparseApplyAdagrad

#include <training_ops.h>

עדכן את הערכים הרלוונטיים ב-'*var' ו-'*accum' בהתאם לתכנית adgrad.

סיכום

כלומר עבור שורות שיש לנו גראד עבורן, אנו מעדכנים את var ו-acum באופן הבא: accum += grad * grad var -= lr * grad * (1 / sqrt(accum))

טיעונים:

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

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

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

החזרות:

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

ResourceSparseApplyAdagrad (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input accum, :: tensorflow::Input lr, :: tensorflow::Input grad, :: tensorflow::Input indices)
ResourceSparseApplyAdagrad (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input accum, :: tensorflow::Input lr, :: tensorflow::Input grad, :: tensorflow::Input indices, const ResourceSparseApplyAdagrad::Attrs & attrs)

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

operation

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

operator::tensorflow::Operation () const

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

UpdateSlots (bool x)
UseLocking (bool x)

מבנים

tensorflow:: ops:: ResourceSparseApplyAdagrad:: Attrs

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

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

מבצע

Operation operation

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

ResourceSparseApplyAdagrad

 ResourceSparseApplyAdagrad(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input var,
  ::tensorflow::Input accum,
  ::tensorflow::Input lr,
  ::tensorflow::Input grad,
  ::tensorflow::Input indices
)

ResourceSparseApplyAdagrad

 ResourceSparseApplyAdagrad(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input var,
  ::tensorflow::Input accum,
  ::tensorflow::Input lr,
  ::tensorflow::Input grad,
  ::tensorflow::Input indices,
  const ResourceSparseApplyAdagrad::Attrs & attrs
)

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

 operator::tensorflow::Operation() const 

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

UpdateSlots

Attrs UpdateSlots(
  bool x
)

השתמש בנעילה

Attrs UseLocking(
  bool x
)