tensorflow:: אופס:: FakeQuantWithMinMaxArgs
#include <array_ops.h>
בצע התאמה מזויפת של טנסור 'כניסות', הקלד float לטנסור 'פלטים' מאותו סוג.
תַקצִיר
תכונות [min; max]
מגדירים את טווח ההידוק עבור נתוני inputs
. ערכי inputs
מקוונטים לטווח הכימות ( [0; 2^num_bits - 1]
כאשר narrow_range
הוא false ו- [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)
and max_adj = max + min_adj - min
.
קוונטיזציה נקראת מזויף מכיוון שהפלט עדיין בנקודה צפה.
טיעונים:
- scope: אובייקט Scope
החזרות:
-
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) |
מבנים | |
---|---|
tensorflow:: ops:: FakeQuantWithMinMaxArgs:: Attrs | קובעי תכונות אופציונליים עבור 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