টেনসরফ্লো :: অপস:: RaggedBincount

#include <math_ops.h>

একটি পূর্ণসংখ্যা অ্যারেতে প্রতিটি মানের সংঘটনের সংখ্যা গণনা করে।

সারসংক্ষেপ

দৈর্ঘ্যের size এবং weights মতো একই dtype সহ একটি ভেক্টর আউটপুট করে। যদি weights খালি হয়, তাহলে সূচী i সঞ্চয় করে যতবার মান i গণনা করা হয় arr এ। যদি weights খালি না হয়, তাহলে সূচক i প্রতিটি সূচকে weights মানের সমষ্টি সংরক্ষণ করে যেখানে arr এর সংশ্লিষ্ট মান i হয়।

সীমার বাইরে arr মানগুলি [0, আকার) উপেক্ষা করা হয়।

যুক্তি:

  • স্কোপ: একটি স্কোপ অবজেক্ট
  • বিভক্ত: 1D int64 Tensor
  • মান: 2D int Tensor
  • আকার: অ-নেতিবাচক int স্কেলার Tensor
  • ওজন: একটি int32, int64, float32, বা float64 Tensor যা input মতো একই আকারের, বা একটি দৈর্ঘ্য-0 Tensor , যে ক্ষেত্রে এটি 1 এর সমান সমস্ত ওজন হিসাবে কাজ করে।

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

  • binary_output: bool; কার্নেলের উপস্থিতি বা উপস্থিতির সংখ্যা গণনা করা উচিত কিনা।

রিটার্ন:

  • Output : size সমান দৈর্ঘ্য সহ 1D Tensor বা [batch_size, size ] সহ 2D Tensor । পরিসরে প্রতিটি মানের জন্য গণনা বা সমষ্টি ওজন [0, আকার)।

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

RaggedBincount (const :: tensorflow::Scope & scope, :: tensorflow::Input splits, :: tensorflow::Input values, :: tensorflow::Input size, :: tensorflow::Input weights)
RaggedBincount (const :: tensorflow::Scope & scope, :: tensorflow::Input splits, :: tensorflow::Input values, :: tensorflow::Input size, :: tensorflow::Input weights, const RaggedBincount::Attrs & attrs)

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

operation
output

পাবলিক ফাংশন

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

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

BinaryOutput (bool x)

কাঠামো

tensorflow:: ops:: RaggedBincount:: Attrs

RaggedBincount- এর জন্য ঐচ্ছিক অ্যাট্রিবিউট সেটার।

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

অপারেশন

Operation operation

আউটপুট

::tensorflow::Output output

পাবলিক ফাংশন

RaggedBincount

 RaggedBincount(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input splits,
  ::tensorflow::Input values,
  ::tensorflow::Input size,
  ::tensorflow::Input weights
)

RaggedBincount

 RaggedBincount(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input splits,
  ::tensorflow::Input values,
  ::tensorflow::Input size,
  ::tensorflow::Input weights,
  const RaggedBincount::Attrs & attrs
)

নোড

::tensorflow::Node * node() const 

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

 operator::tensorflow::Input() const 

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

 operator::tensorflow::Output() const 

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

বাইনারিআউটপুট

Attrs BinaryOutput(
  bool x
)