টেনসরফ্লো :: অপস:: পরিবর্তনশীল

#include <state_ops.h>

স্টেটকে টেনসরের আকারে ধরে রাখে যা ধাপে ধাপে টিকে থাকে।

সারসংক্ষেপ

টেনসর অবস্থায় একটি রেফ আউটপুট করে তাই এটি পড়া বা পরিবর্তন করা যেতে পারে। TODO(zhifengc/mrry): টেনসরফ্লোতে শেয়ারিং স্টেট সম্পর্কে আরও বিস্তারিত নথিতে একটি পয়েন্টার যোগ করে।

যুক্তি:

  • স্কোপ: একটি স্কোপ অবজেক্ট
  • আকৃতি: পরিবর্তনশীল টেনসরের আকৃতি।
  • dtype: পরিবর্তনশীল টেনসরের উপাদানের ধরন।

ঐচ্ছিক বৈশিষ্ট্য (দেখুন Attrs ):

  • ধারক: খালি না হলে, এই পরিবর্তনশীলটি প্রদত্ত পাত্রে স্থাপন করা হয়। অন্যথায়, একটি ডিফল্ট ধারক ব্যবহার করা হয়।
  • shared_name: যদি খালি না হয়, এই ভেরিয়েবলের নাম দেওয়া হয় এই shared_name দিয়ে। অন্যথায়, এর পরিবর্তে নোডের নাম ব্যবহার করা হয়।

রিটার্ন:

  • Output : পরিবর্তনশীল টেনসরের একটি রেফারেন্স।

কনস্ট্রাক্টর এবং ডেস্ট্রাক্টর

Variable (const :: tensorflow::Scope & scope, PartialTensorShape shape, DataType dtype)
Variable (const :: tensorflow::Scope & scope, PartialTensorShape shape, DataType dtype, const Variable::Attrs & attrs)

পাবলিক বৈশিষ্ট্য

operation
ref

পাবলিক ফাংশন

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

পাবলিক স্ট্যাটিক ফাংশন

Container (StringPiece x)
SharedName (StringPiece x)

কাঠামো

tensorflow:: ops:: পরিবর্তনশীল:: Attrs

ভেরিয়েবলের জন্য ঐচ্ছিক অ্যাট্রিবিউট সেটার।

পাবলিক বৈশিষ্ট্য

অপারেশন

Operation operation

রেফ

::tensorflow::Output ref

পাবলিক ফাংশন

পরিবর্তনশীল

 Variable(
  const ::tensorflow::Scope & scope,
  PartialTensorShape shape,
  DataType dtype
)

পরিবর্তনশীল

 Variable(
  const ::tensorflow::Scope & scope,
  PartialTensorShape shape,
  DataType dtype,
  const Variable::Attrs & attrs
)

নোড

::tensorflow::Node * node() const 

অপারেটর::টেনসরফ্লো::ইনপুট

 operator::tensorflow::Input() const 

অপারেটর::টেনসরফ্লো::আউটপুট

 operator::tensorflow::Output() const 

পাবলিক স্ট্যাটিক ফাংশন

ধারক

Attrs Container(
  StringPiece x
)

শেয়ার করা নাম

Attrs SharedName(
  StringPiece x
)