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