tensorflow:: ops:: הקצאה

#include <state_ops.h>

עדכן את 'ref' על ידי הקצאת 'value' אליו.

תַקצִיר

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

טיעונים:

  • היקף: אובייקט היקף
  • הפניה: צריך להיות מצומת Variable . ייתכן שלא אותחל.
  • ערך: הערך שיוקצה למשתנה.

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

  • validate_shape: אם הערך הוא true, הפעולה תאמת שצורת 'value' תואמת לצורת הטנזור שאליו מוקצה. אם הערך הוא false, 'ref' יקבל את צורת 'value'.
  • use_locking: אם True, ההקצאה תהיה מוגנת על ידי נעילה; אחרת ההתנהגות אינה מוגדרת, אך עשויה להפגין פחות תחרות.

החזרות:

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

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

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

מאפיינים ציבוריים

operation
output_ref

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

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

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

UseLocking (bool x)
ValidateShape (bool x)

מבנים

tensorflow:: ops:: Assign:: Attrs

קובעי מאפיינים אופציונליים עבור Assign .

מאפיינים ציבוריים

מִבצָע

Operation operation

הפלט_הפניה

::tensorflow::Output output_ref

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

לְהַקְצוֹת

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

לְהַקְצוֹת

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

צוֹמֶת

::tensorflow::Node * node() const 

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

 operator::tensorflow::Input() const 

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

 operator::tensorflow::Output() const 

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

שימוש בנעילה

Attrs UseLocking(
  bool x
)

אימות צורה

Attrs ValidateShape(
  bool x
)