tensorflow:: ops:: FakeQuantWithMinMaxVarsPerChannel

#include <array_ops.h>

قم بتكميم موتر "المدخلات" من النوع float عبر الأعداد العشرية لكل قناة.

ملخص

قم بتكميم inputs من نوع float لكل قناة وأحد الأشكال: [d] ، [b, d] [b, h, w, d] عبر قيم float min max لكل قناة من الشكل [d] إلى موتر outputs بنفس شكل inputs .

صفات

  • [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 .

تتضمن هذه العملية تدرجًا، وبالتالي تسمح بتدريب القيم min max .

الحجج:

المرتجعات:

  • Output : موتر المخرجات.

البناة والمدمرون

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

السمات العامة

operation
outputs

الوظائف العامة

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

الدوال الثابتة العامة

NarrowRange (bool x)
NumBits (int64 x)

الهياكل

tensorflow:: ops:: FakeQuantWithMinMaxVarsPerChannel:: Attrs

مُعدِّلات السمات الاختيارية لـ FakeQuantWithMinMaxVarsPerChannel .

السمات العامة

عملية

Operation operation

المخرجات

::tensorflow::Output outputs

الوظائف العامة

FakeQuantWithMinMaxVarsPerChannel

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

FakeQuantWithMinMaxVarsPerChannel

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

العقدة

::tensorflow::Node * node() const 

operator::tensorflow::Input

 operator::tensorflow::Input() const 

operator::tensorflow::Output

 operator::tensorflow::Output() const 

الدوال الثابتة العامة

نطاق ضيق

Attrs NarrowRange(
  bool x
)

NumBits

Attrs NumBits(
  int64 x
)