تينسورفلو :: العمليات :: تعيين

#include <state_ops.h>

قم بتحديث "ref" بطرح "value" منه.

ملخص

تنتج هذه العملية "ref" بعد إتمام التحديث. هذا يجعل من السهل سلسلة العمليات التي تحتاج إلى استخدام قيمة إعادة التعيين.

الحجج:

  • النطاق: كائن النطاق
  • المرجع: يجب أن يكون من عقدة Variable .
  • value: القيمة المطلوب طرحها من المتغير.

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

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

عائدات:

  • Output : = نفس "المرجع". يُعاد كتيسير للعمليات التي تريد استخدام القيمة الجديدة بعد تحديث المتغير.

البنائين والمدمرين

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

output_ref

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

العقدة

::tensorflow::Node * node() const 

المشغل :: tensorflow :: الإدخال

 operator::tensorflow::Input() const 

المشغل :: Tensorflow :: Output

 operator::tensorflow::Output() const 

وظائف ثابتة عامة

UseLocking

Attrs UseLocking(
  bool x
)