tensorflow:: ops:: Assign

#include <state_ops.h>

قم بتحديث 'ref' عن طريق تعيين 'value' له.

ملخص

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

الحجج:

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

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

  • validate_shape: إذا كانت القيمة صحيحة، فستتحقق العملية من تطابق شكل 'value' مع شكل الموتر الذي يتم تعيينه له. أما إذا كانت القيمة خاطئة، فسيأخذ 'ref' شكل 'value'.
  • استخدام القفل: إذا كانت القيمة صحيحة، فسيتم حماية التعيين بواسطة قفل؛ وإلا فإن السلوك غير محدد، ولكنه قد يُظهر تنازعًا أقل.

المرتجعات:

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

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

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

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

operation
output_ref

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

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

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

UseLocking (bool x)
ValidateShape (bool x)

الهياكل

tensorflow:: ops:: Assign:: Attrs

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

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

عملية

Operation operation

output_ref

::tensorflow::Output output_ref

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

تعيين

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

تعيين

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

العقدة

::tensorflow::Node * node() const 

operator::tensorflow::Input

 operator::tensorflow::Input() const 

operator::tensorflow::Output

 operator::tensorflow::Output() const 

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

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

Attrs UseLocking(
  bool x
)

التحقق من الشكل

Attrs ValidateShape(
  bool x
)