tensorflow:: ops:: TemporaryVariable
#include <state_ops.h>এমন একটি টেনসর ফেরত দেয় যা পরিবর্তন করা যেতে পারে, কিন্তু শুধুমাত্র একটি ধাপের মধ্যেই স্থায়ী থাকে।
সারসংক্ষেপ
এটি শুধুমাত্র অভ্যন্তরীণ ব্যবহারের জন্য একটি পরীক্ষামূলক অপারেশন এবং এটি অনিরাপদ উপায়ে ব্যবহার করা সম্ভব। ঝুঁকিগুলো সম্পূর্ণরূপে না বুঝলে এটি ব্যবহার করবেন না।
অন্যান্য সমস্ত ব্যবহার সম্পন্ন হওয়ার পর 'ref'-কে যেন অবশেষে একটি উপযুক্ত ' DestroyTemporaryVariable ' op-তে পাঠানো হয়, তা নিশ্চিত করার দায়িত্ব কলারের।
টেনসরের অবস্থার একটি রেফারেন্স আউটপুট করে, যাতে এটি পড়া বা পরিবর্তন করা যায়।
যেমন var = state_ops._temporary_variable([1, 2], type.float_) var_name = var.op.name var = state_ops.assign(var, [[4.0, 5.0]]) var = state_ops.assign_add(var, [[6.0, 7.0]]) var_state_final. var_name=var_name)
যুক্তি:
- স্কোপ: একটি স্কোপ অবজেক্ট
- আকৃতি: পরিবর্তনশীল টেনসরের আকৃতি।
- dtype: ভেরিয়েবল টেনসরের উপাদানগুলোর ধরন।
ঐচ্ছিক অ্যাট্রিবিউটসমূহ (দেখুন Attrs ):
- var_name: টেম্পোরারি ভ্যারিয়েবল রিসোর্সের জন্য ব্যবহৃত নামটি ওভাররাইড করে। ডিফল্ট মান হলো ' TemporaryVariable ' অপ-এর নাম (যা অনন্য হওয়ার নিশ্চয়তা দেয়)।
ফেরত:
-
Output: টেনসর ভেরিয়েবলটির একটি রেফারেন্স।
নির্মাতা এবং ধ্বংসকারী | |
|---|---|
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 | TemporaryVariable-এর জন্য ঐচ্ছিক অ্যাট্রিবিউট সেটার। |
জনসাধারণের বৈশিষ্ট্য
অপারেশন
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() const
অপারেটর::টেনসরফ্লো::আউটপুট
operator::tensorflow::Output() const
পাবলিক স্ট্যাটিক ফাংশন
ভ্যারনাম
Attrs VarName( StringPiece x )