টেনসরফ্লো :: অপস:: কন্ডিশনাল অ্যাকুমুলেটর

#include <data_flow_ops.h>

গ্রেডিয়েন্টের সমষ্টির জন্য একটি শর্তসাপেক্ষ সঞ্চয়কারী।

সারসংক্ষেপ

সঞ্চয়কারী স্থানীয়_স্টেপ বৃহত্তর বা সঞ্চয়কারীর কাছে পরিচিত সাম্প্রতিকতম গ্লোবাল_স্টেপের সমান চিহ্নিত গ্রেডিয়েন্টগুলি গ্রহণ করে। পর্যাপ্ত গ্রেডিয়েন্ট জমা করা থাকলে অ্যাকিউমুলেটর থেকে গড় বের করা যেতে পারে। গড় নিষ্কাশন করা স্বয়ংক্রিয়ভাবে সমষ্টিকে 0 এ পুনরায় সেট করে এবং সঞ্চয়কারীর দ্বারা রেকর্ড করা গ্লোবাল_স্টেপ বৃদ্ধি পায়।

যুক্তি:

  • স্কোপ: একটি স্কোপ অবজেক্ট
  • dtype: যে ধরনের মান জমা হচ্ছে।
  • আকৃতি: মানগুলির আকৃতি, [] হতে পারে, যে ক্ষেত্রে আকৃতি অজানা।

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

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

রিটার্ন:

  • Output : সঞ্চয়কারীর হ্যান্ডেল।

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

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

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

handle
operation

পাবলিক ফাংশন

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

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

Container (StringPiece x)
ReductionType (StringPiece x)
SharedName (StringPiece x)

কাঠামো

tensorflow:: ops:: ConditionalAccumulator:: Attrs

কন্ডিশনাল অ্যাকুমুলেটরের জন্য ঐচ্ছিক অ্যাট্রিবিউট সেটার্স।

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

হাতল

::tensorflow::Output handle

অপারেশন

Operation operation

পাবলিক ফাংশন

কন্ডিশনাল অ্যাকুমুলেটর

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

কন্ডিশনাল অ্যাকুমুলেটর

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

নোড

::tensorflow::Node * node() const 

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

 operator::tensorflow::Input() const 

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

 operator::tensorflow::Output() const 

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

ধারক

Attrs Container(
  StringPiece x
)

রিডাকশন টাইপ

Attrs ReductionType(
  StringPiece x
)

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

Attrs SharedName(
  StringPiece x
)