tensorflow:: ops:: Variable

#include <state_ops.h>

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

ملخص

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

الحجج:

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

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

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

المرتجعات:

  • Output : مرجع إلى المتغير tensor.

البناة والمدمرون

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 

operator::tensorflow::Input

 operator::tensorflow::Input() const 

operator::tensorflow::Output

 operator::tensorflow::Output() const 

الدوال الثابتة العامة

حاوية

Attrs Container(
  StringPiece x
)

الاسم المشترك

Attrs SharedName(
  StringPiece x
)