نشكرك على متابعة Google I / O. عرض جميع الجلسات عند الطلب مشاهدة عند الطلب

تينسورفلو :: العمليات :: FakeQuantWithMinMaxVars

#include <array_ops.h>

تكميم موتر "المدخلات" من النوع الطافي عبر عددية عائمة عالمية min

ملخص

والحد max "المخرجات" من نفس الشكل مثل inputs .

[min; max] حدد نطاق التثبيت لبيانات inputs . يتم تحديد قيم inputs كمياً في نطاق [0; 2^num_bits - 1] ( [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 and 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) and 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)

الهياكل

tensorflow :: ops :: FakeQuantWithMinMaxVars :: Attrs

محددات السمات الاختيارية لـ 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 

المشغل :: tensorflow :: الإدخال

 operator::tensorflow::Input() const 

المشغل :: Tensorflow :: Output

 operator::tensorflow::Output() const 

وظائف ثابتة عامة

نطاق ضيق

Attrs NarrowRange(
  bool x
)

نومبيتس

Attrs NumBits(
  int64 x
)