tensorflow:: אופס:: הקצה הוסף

#include <state_ops.h>

עדכן את 'ref' על ידי הוספת 'ערך' אליו.

סיכום

פעולה זו מוציאה "ref" לאחר ביצוע העדכון. זה מקל על שרשרת פעולות שצריכות להשתמש בערך האיפוס.

טיעונים:

  • scope: אובייקט Scope
  • ref: צריך להיות מצומת Variable .
  • value: הערך שיש להוסיף למשתנה.

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

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

החזרות:

  • Output : = זהה ל-"ref". מוחזר כנוחות עבור פעולות שרוצות להשתמש בערך החדש לאחר עדכון המשתנה.

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

AssignAdd (const :: tensorflow::Scope & scope, :: tensorflow::Input ref, :: tensorflow::Input value)
AssignAdd (const :: tensorflow::Scope & scope, :: tensorflow::Input ref, :: tensorflow::Input value, const AssignAdd::Attrs & attrs)

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

operation
output_ref

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

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

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

UseLocking (bool x)

מבנים

tensorflow:: ops:: AssignAdd:: Attrs

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

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

מבצע

Operation operation

פלט_ref

::tensorflow::Output output_ref

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

הקצה הוסף

 AssignAdd(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input ref,
  ::tensorflow::Input value
)

הקצה הוסף

 AssignAdd(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input ref,
  ::tensorflow::Input value,
  const AssignAdd::Attrs & attrs
)

צוֹמֶת

::tensorflow::Node * node() const 

מפעיל::tensorflow::קלט

 operator::tensorflow::Input() const 

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

 operator::tensorflow::Output() const 

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

השתמש בנעילה

Attrs UseLocking(
  bool x
)