تدفق التوتر:: العمليات:: عامل

#include <state_ops.h>

يحمل الحالة في شكل موتر يستمر عبر الخطوات.

ملخص

يُخرج مرجعًا إلى حالة الموتر بحيث يمكن قراءته أو تعديله. TODO(zhifengc/mrry): يضيف مؤشرًا إلى مستند أكثر تفصيلاً حول حالات المشاركة في Tensorflow.

الحجج:

  • النطاق: كائن النطاق
  • الشكل: شكل الموتر المتغير.
  • dtype: نوع العناصر في الموتر المتغير.

السمات الاختيارية (انظر Attrs ):

  • الحاوية: إذا لم تكن فارغة، يتم وضع هذا المتغير في الحاوية المحددة. وبخلاف ذلك، يتم استخدام حاوية افتراضية.
  • اسم_المشترك: إذا لم يكن فارغًا، فسيتم تسمية هذا المتغير في المجموعة المحددة بهذا الاسم_المشترك. وإلا، فسيتم استخدام اسم العقدة بدلاً من ذلك.

عائدات:

  • 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:: Variable:: Attrs

محددات السمات الاختيارية للمتغير .

الصفات العامة

عملية

Operation operation

المرجع

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