tensorflow:: ops:: TemporaryVariable
#include <state_ops.h>يُرجع موترًا يمكن تغييره، ولكنه يبقى فقط ضمن خطوة واحدة.
ملخص
هذه عملية تجريبية للاستخدام الداخلي فقط، ومن الممكن استخدامها بطرق غير آمنة. لا تستخدمها إلا إذا كنت تفهم المخاطر تمامًا.
تقع على عاتق المتصل مسؤولية التأكد من أن "ref" يتم تمريره في النهاية إلى عملية " DestroyTemporaryVariable " المطابقة بعد اكتمال جميع الاستخدامات الأخرى.
يُخرج مرجعًا لحالة الموتر بحيث يمكن قراءته أو تعديله.
على سبيل المثال، var =state_ops._temporary_variable([1, 2],types.float_) var_name = var.op.name var =state_ops.assi(var, [[4.0, 5.0]]) var =state_ops.sign_add(var, [[6.0, 7.0]]) Final = state_ops._destroy_temporary_variable(var، var_name=var_name)
الحجج:
- النطاق: كائن النطاق
- الشكل: شكل موتر المتغير.
- dtype: نوع العناصر في موتر المتغير.
السمات الاختيارية (انظر Attrs ):
- var_name: يتجاوز الاسم المستخدم لمورد المتغير المؤقت. القيمة الافتراضية هي اسم عملية " TemporaryVariable " (وهو اسم فريد ومضمون).
المرتجعات:
-
Output: مرجع إلى المتغير tensor.
البناة والمدمرون | |
|---|---|
TemporaryVariable (const :: tensorflow::Scope & scope, PartialTensorShape shape, DataType dtype) | |
TemporaryVariable (const :: tensorflow::Scope & scope, PartialTensorShape shape, DataType dtype, const TemporaryVariable::Attrs & attrs) |
السمات العامة | |
|---|---|
operation | |
ref | |
الوظائف العامة | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
الدوال الثابتة العامة | |
|---|---|
VarName (StringPiece x) | |
الهياكل | |
|---|---|
| tensorflow:: ops:: TemporaryVariable:: Attrs | مُعدِّلات السمات الاختيارية للمتغير المؤقت . |
السمات العامة
عملية
Operation operation
مرجع
::tensorflow::Output ref
الوظائف العامة
متغير مؤقت
TemporaryVariable( const ::tensorflow::Scope & scope, PartialTensorShape shape, DataType dtype )
متغير مؤقت
TemporaryVariable( const ::tensorflow::Scope & scope, PartialTensorShape shape, DataType dtype, const TemporaryVariable::Attrs & attrs )
العقدة
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
الدوال الثابتة العامة
اسم المتغير
Attrs VarName( StringPiece x )
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2026-11-05 (حسب التوقيت العالمي المتفَّق عليه)