تدفق التوتر:: العمليات:: تعيين إضافة
#include <state_ops.h>
قم بتحديث "المرجع" بإضافة "قيمة" إليه.
ملخص
تقوم هذه العملية بإخراج "ref" بعد الانتهاء من التحديث. وهذا يجعل من السهل ربط العمليات التي تحتاج إلى استخدام قيمة إعادة التعيين.
الحجج:
- النطاق: كائن النطاق
- المرجع: يجب أن يكون من عقدة
Variable
. - value: القيمة التي سيتم إضافتها إلى المتغير.
السمات الاختيارية (انظر Attrs
):
- use_locking: إذا كان True، فسيتم حماية الإضافة بقفل؛ وإلا فإن السلوك غير محدد، ولكنه قد يحمل قدرًا أقل من الخلاف.
العوائد:
-
Output
: = نفس "المرجع". يتم إرجاعها لتسهيل العمليات التي ترغب في استخدام القيمة الجديدة بعد تحديث المتغير.
البنائين والمدمرين | |
---|---|
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
input_ref
::tensorflow::Output 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 )
العقدة
::tensorflow::Node * node() const
المشغل::tensorflow::الإدخال
operator::tensorflow::Input() const
المشغل::tensorflow::الإخراج
operator::tensorflow::Output() const
وظائف ثابتة العامة
UseLocking
Attrs UseLocking( bool x )