tensorflow:: ops:: ResourceSparseApplyAdagrad

#include <training_ops.h>

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

תַקצִיר

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

טיעונים:

  • היקף: אובייקט היקף
  • var: צריך להיות מתוך Variable().
  • accum: צריך להיות מ-Variable().
  • lr: קצב למידה. חייב להיות סקלרי.
  • גראד: הגרדיאנט.
  • אינדקסים: וקטור של אינדקסים לתוך המימד הראשון של var ו- accum.

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

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

החזרות:

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

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(
  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
)

אופרטור::tensorflow::Operation

 operator::tensorflow::Operation() const 

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

עדכון חריצים

Attrs UpdateSlots(
  bool x
)

שימוש בנעילה

Attrs UseLocking(
  bool x
)