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