tensorflow:: ops:: FakeQuantWithMinMaxArgs
#include <array_ops.h>ফ্লোট টাইপের 'ইনপুট' টেনসরটিকে নকল-কোয়ান্টাইজ করে একই টাইপের 'আউটপুট' টেনসরে পরিণত করুন।
সারসংক্ষেপ
অ্যাট্রিবিউট [min; max] inputs ডেটার জন্য ক্ল্যাম্পিং রেঞ্জ নির্ধারণ করে। inputs মানগুলিকে কোয়ান্টাইজেশন রেঞ্জের মধ্যে কোয়ান্টাইজ করা হয় ( [0; 2^num_bits - 1] যখন narrow_range false এবং [1; 2^num_bits - 1] যখন এটি true) এবং তারপর ডি-কোয়ান্টাইজ করে [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 )