تينسورفلو :: العمليات :: 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 )
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-04-20 UTC.