tensorflow:: ops:: FakeQuantWithMinMaxArgs
#include <array_ops.h>ফ্লোট টাইপের 'ইনপুট' টেনসরটিকে নকল-কোয়ান্টাইজ করে একই টাইপের 'আউটপুট' টেনসরে পরিণত করুন।
সারসংক্ষেপ
বৈশিষ্ট্য
-
[min; max]inputsডেটার জন্য ক্ল্যাম্পিং পরিসীমা নির্ধারণ করে। -
inputsমানগুলিকে কোয়ান্টাইজেশন রেঞ্জের মধ্যে কোয়ান্টাইজ করা হয় (যখনnarrow_rangefalse থাকে তখন[0; 2^num_bits - 1]এবং যখন এটি true থাকে তখন[1; 2^num_bits - 1]) এবং তারপর ডি-কোয়ান্টাইজ করে[min; max]ব্যবধিতে ফ্লোট হিসাবে আউটপুট দেওয়া হয়। -
num_bitsহলো কোয়ান্টাইজেশনের বিটউইডথ; যার মান ২ থেকে ১৬-এর মধ্যে।
কোয়ান্টাইজেশনের আগে, min এবং max মান নিম্নলিখিত যুক্তি অনুসারে সামঞ্জস্য করা হয়। min <= 0 <= max রাখার পরামর্শ দেওয়া হয়। যদি 0 এই মানের পরিসরের মধ্যে না থাকে, তাহলে আচরণ অপ্রত্যাশিত হতে পারে:
- যদি
0 < min < max, তাহলেmin_adj = 0এবংmax_adj = max - min। - যদি
min < max < 0, তাহলেmin_adj = min - maxএবংmax_adj = 0। - যদি
min <= 0 <= max:scale = (max - min) / (2^num_bits - 1),min_adj = scale * round(min / scale)এবংmax_adj = max + min_adj - min।
কোয়ান্টাইজেশনকে ভুয়া বলা হয়, কারণ আউটপুটটি তখনও ফ্লোটিং পয়েন্টেই থাকে।
যুক্তি:
- স্কোপ: একটি স্কোপ অবজেক্ট
ফেরত:
-
Output: আউটপুট টেনসর।
নির্মাতা এবং ধ্বংসকারী | |
|---|---|
FakeQuantWithMinMaxArgs (const :: tensorflow::Scope & scope, :: tensorflow::Input inputs) | |
FakeQuantWithMinMaxArgs (const :: tensorflow::Scope & scope, :: tensorflow::Input inputs, const FakeQuantWithMinMaxArgs::Attrs & attrs) |
জনসাধারণের বৈশিষ্ট্য | |
|---|---|
operation | |
outputs | |
জনসাধারণের কার্যাবলী | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
পাবলিক স্ট্যাটিক ফাংশন | |
|---|---|
Max (float x) | |
Min (float x) | |
NarrowRange (bool x) | |
NumBits (int64 x) | |
কাঠামো | |
|---|---|
| tensorflow:: ops:: FakeQuantWithMinMaxArgs:: Attrs | FakeQuantWithMinMaxArgs-এর জন্য ঐচ্ছিক অ্যাট্রিবিউট সেটার। |
জনসাধারণের বৈশিষ্ট্য
অপারেশন
Operation operation
আউটপুট
::tensorflow::Output outputs
জনসাধারণের কার্যাবলী
FakeQuantWithMinMaxArgs
FakeQuantWithMinMaxArgs( const ::tensorflow::Scope & scope, ::tensorflow::Input inputs )
FakeQuantWithMinMaxArgs
FakeQuantWithMinMaxArgs( const ::tensorflow::Scope & scope, ::tensorflow::Input inputs, const FakeQuantWithMinMaxArgs::Attrs & attrs )
নোড
::tensorflow::Node * node() const
অপারেটর::টেনসরফ্লো::ইনপুট
operator::tensorflow::Input() const
অপারেটর::টেনসরফ্লো::আউটপুট
operator::tensorflow::Output() const
পাবলিক স্ট্যাটিক ফাংশন
ম্যাক্স
Attrs Max( float x )
মিনিট
Attrs Min( float x )
সংকীর্ণ পরিসর
Attrs NarrowRange( bool x )
নামবিটস
Attrs NumBits( int64 x )