tensorflow:: ops:: AssignAdd

#include <state_ops.h>

قم بتحديث 'ref' بإضافة 'value' إليه.

ملخص

تُخرج هذه العملية القيمة "ref" بعد اكتمال التحديث. وهذا يُسهّل ربط العمليات التي تحتاج إلى استخدام قيمة إعادة التعيين.

الحجج:

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

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

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

المرتجعات:

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

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

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

السمات العامة

operation
output_ref

الوظائف العامة

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

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

UseLocking (bool x)

الهياكل

tensorflow:: ops:: AssignAdd:: Attrs

مُعدِّلات السمات الاختيارية لـ AssignAdd .

السمات العامة

عملية

Operation operation

output_ref

::tensorflow::Output output_ref

الوظائف العامة

AssignAdd

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

AssignAdd

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

العقدة

::tensorflow::Node * node() const 

operator::tensorflow::Input

 operator::tensorflow::Input() const 

operator::tensorflow::Output

 operator::tensorflow::Output() const 

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

قفل الاستخدام

Attrs UseLocking(
  bool x
)