tensorflow:: אופס:: AssignSub

#include <state_ops.h>

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

סיכום

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

טיעונים:

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

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

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

החזרות:

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

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

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

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

operation
output_ref

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

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

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

UseLocking (bool x)

מבנים

tensorflow:: ops:: AssignSub:: Attrs

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

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

מבצע

Operation operation

פלט_ref

::tensorflow::Output output_ref

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

AssignSub

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

AssignSub

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

צוֹמֶת

::tensorflow::Node * node() const 

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

 operator::tensorflow::Input() const 

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

 operator::tensorflow::Output() const 

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

השתמש בנעילה

Attrs UseLocking(
  bool x
)