tensorflow:: אופס:: מִשְׁתַנֶה

#include <state_ops.h>

מחזיק במצב בצורה של טנזור שנמשך לאורך שלבים.

סיכום

מוציא רפר למצב הטנזור כך שניתן לקרוא אותו או לשנותו. TODO(zhifengc/mrry): הוספת מצביע למסמך מפורט יותר על שיתוף מצבים בזרימת tensor.

טיעונים:

  • scope: אובייקט Scope
  • צורה: צורת הטנזור המשתנה.
  • dtype: סוג האלמנטים בטנזור המשתנה.

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

  • מיכל: אם אינו ריק, משתנה זה ממוקם במיכל הנתון. אחרת, נעשה שימוש במיכל ברירת מחדל.
  • shared_name: אם אינו ריק, משתנה זה נקרא בדלי הנתון עם shared_name זה. אחרת, שם הצומת משמש במקום זאת.

החזרות:

  • Output : התייחסות לטנזור המשתנה.

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

Variable (const :: tensorflow::Scope & scope, PartialTensorShape shape, DataType dtype)
Variable (const :: tensorflow::Scope & scope, PartialTensorShape shape, DataType dtype, const Variable::Attrs & attrs)

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

operation
ref

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

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

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

Container (StringPiece x)
SharedName (StringPiece x)

מבנים

tensorflow:: ops:: משתנה:: Attrs

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

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

מבצע

Operation operation

ref

::tensorflow::Output ref

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

מִשְׁתַנֶה

 Variable(
  const ::tensorflow::Scope & scope,
  PartialTensorShape shape,
  DataType dtype
)

מִשְׁתַנֶה

 Variable(
  const ::tensorflow::Scope & scope,
  PartialTensorShape shape,
  DataType dtype,
  const Variable::Attrs & attrs
)

צוֹמֶת

::tensorflow::Node * node() const 

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

 operator::tensorflow::Input() const 

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

 operator::tensorflow::Output() const 

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

מְכוֹלָה

Attrs Container(
  StringPiece x
)

שם משותף

Attrs SharedName(
  StringPiece x
)