Google I/O-তে টিউন করার জন্য ধন্যবাদ। চাহিদা অনুযায়ী সব সেশন দেখুন চাহিদা অনুযায়ী দেখুন

সেন্সরফ্লো :: অপস :: FakeQuantWithMinMaxVars

#include <array_ops.h>

বিশ্বব্যাপী ফ্লোট স্কেলার min মাধ্যমে টাইপ ফ্লোটের 'ইনপুটস' সেন্সরকে নকল-কোয়ান্টাইজ করুন

সারসংক্ষেপ

এবং inputs হিসাবে একই আকারের 'আউটপুটস' টেনসর max

[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 এবং 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

এই অপারেশনের একটি গ্রেডিয়েন্ট রয়েছে এবং এভাবে min এবং max মান প্রশিক্ষণের অনুমতি দেয়।

যুক্তি:

রিটার্নস:

  • Output : আউটপুট টেনসর।

নির্মাণকারী এবং ধ্বংসকারী

FakeQuantWithMinMaxVars (const :: tensorflow::Scope & scope, :: tensorflow::Input inputs, :: tensorflow::Input min, :: tensorflow::Input max)
FakeQuantWithMinMaxVars (const :: tensorflow::Scope & scope, :: tensorflow::Input inputs, :: tensorflow::Input min, :: tensorflow::Input max, const FakeQuantWithMinMaxVars::Attrs & attrs)

জনসাধারণের গুণাবলী

operation
outputs

পাবলিক ফাংশন

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

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

NarrowRange (bool x)
NumBits (int64 x)

স্ট্রাক্টস

টেনস্রোফ্লো :: অপ্স :: ফেকুয়াকান্টওয়াইথমিনম্যাক্সবার্স :: অ্যাটর্স

FakeQuantWithMinMaxVars এর জন্য .চ্ছিক অ্যাট্রিবিউট সেটটার

জনসাধারণের গুণাবলী

অপারেশন

Operation operation

ফলাফল

::tensorflow::Output outputs

পাবলিক ফাংশন

FakeQuantWithMinMaxVars

 FakeQuantWithMinMaxVars(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input inputs,
  ::tensorflow::Input min,
  ::tensorflow::Input max
)

FakeQuantWithMinMaxVars

 FakeQuantWithMinMaxVars(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input inputs,
  ::tensorflow::Input min,
  ::tensorflow::Input max,
  const FakeQuantWithMinMaxVars::Attrs & attrs
)

নোড

::tensorflow::Node * node() const 

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

 operator::tensorflow::Input() const 

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

 operator::tensorflow::Output() const 

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

সংকীর্ণ পরিসর

Attrs NarrowRange(
  bool x
)

নম্ববিটস

Attrs NumBits(
  int64 x
)