tensorflow:: ops:: DenseBincount
#include <math_ops.h>একটি পূর্ণসংখ্যার অ্যারেতে প্রতিটি মানের উপস্থিতির সংখ্যা গণনা করে।
সারসংক্ষেপ
আউটপুট হিসেবে size দৈর্ঘ্যের এবং weights মতো একই ডেটা টাইপের একটি ভেক্টর দেওয়া হয়। যদি weights খালি থাকে, তাহলে i ইনডেক্সে arr এ i মানটি কতবার গণনা করা হয়েছে, সেই সংখ্যাটি সংরক্ষিত হয়। যদি weights খালি না থাকে, তাহলে i ইনডেক্সে weights arr প্রতিটি ইনডেক্সের সংশ্লিষ্ট মান i হলে, সেই ইনডেক্সগুলোর যোগফল সংরক্ষিত হয়।
arr এর মধ্যে [0, size) পরিসরের বাইরের মানগুলি উপেক্ষা করা হয়।
যুক্তি:
- স্কোপ: একটি স্কোপ অবজেক্ট
- ইনপুট: ১ডি অথবা ২ডি ইন্ট
Tensor। - আকার: অঋণাত্মক পূর্ণসংখ্যা স্কেলার
Tensor। - weights: হলো
arrমতো একই আকারের একটি int32, int64, float32, বা float64Tensor, অথবা একটি দৈর্ঘ্য-০Tensor, যে ক্ষেত্রে এটি এমনভাবে কাজ করে যেন সমস্ত ওয়েট ১-এর সমান।
ঐচ্ছিক অ্যাট্রিবিউটসমূহ (দেখুন Attrs ):
- বাইনারি_আউটপুট: বুলিয়ান; কার্নেলটি উপস্থিতি গণনা করবে নাকি ঘটনার সংখ্যা গণনা করবে।
ফেরত:
-
Output:sizeদৈর্ঘ্যের একটি 1DTensorঅথবা [batch_size,size] পরিসরের একটি 2DTensor। [0, size) পরিসরের প্রতিটি মানের জন্য গণনা বা সমষ্টিগত ওজন।
নির্মাতা এবং ধ্বংসকারী | |
|---|---|
DenseBincount (const :: tensorflow::Scope & scope, :: tensorflow::Input input, :: tensorflow::Input size, :: tensorflow::Input weights) | |
DenseBincount (const :: tensorflow::Scope & scope, :: tensorflow::Input input, :: tensorflow::Input size, :: tensorflow::Input weights, const DenseBincount::Attrs & attrs) |
জনসাধারণের বৈশিষ্ট্য | |
|---|---|
operation | |
output | |
জনসাধারণের কার্যাবলী | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
পাবলিক স্ট্যাটিক ফাংশন | |
|---|---|
BinaryOutput (bool x) | |
কাঠামো | |
|---|---|
| tensorflow:: ops:: DenseBincount:: Attrs | DenseBincount-এর জন্য ঐচ্ছিক অ্যাট্রিবিউট সেটার। |
জনসাধারণের বৈশিষ্ট্য
অপারেশন
Operation operation
আউটপুট
::tensorflow::Output output
জনসাধারণের কার্যাবলী
ডেন্সবিনকাউন্ট
DenseBincount( const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input size, ::tensorflow::Input weights )
ডেন্সবিনকাউন্ট
DenseBincount( const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input size, ::tensorflow::Input weights, const DenseBincount::Attrs & attrs )
নোড
::tensorflow::Node * node() const
অপারেটর::টেনসরফ্লো::ইনপুট
operator::tensorflow::Input() const
অপারেটর::টেনসরফ্লো::আউটপুট
operator::tensorflow::Output() const
পাবলিক স্ট্যাটিক ফাংশন
বাইনারি আউটপুট
Attrs BinaryOutput( bool x )