tensorflow:: ops:: FakeQuantWithMinMaxVars
#include <array_ops.h>בצע כימות מזויף של טנזור 'הקלטות' מסוג float באמצעות סקלרים צפים גלובליים.
תַקצִיר
בצע כימות מזויף של טנזור inputs מסוג float באמצעות סקלרים צפים גלובליים min ו- max outputs פלטים באותה צורה כמו inputs .
תכונות
-
[min; max]מגדירים את טווח ההידוק עבור נתוניinputs. -
inputsעוברים כימות לטווח הכימות ([0; 2^num_bits - 1]כאשרnarrow_rangeהוא false ו-[1; 2^num_bits - 1]כאשר הוא true) ולאחר מכן עוברים דה-כימות ומופקים כמספרים צפים במרווח[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: טנזור הפלט.
בנאים והורסים | |
|---|---|
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( 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 )
צוֹמֶת
::tensorflow::Node * node() const
אופרטור::tensorflow::קלט
operator::tensorflow::Input() const
אופרטור::tensorflow::פלט
operator::tensorflow::Output() const
פונקציות סטטיות ציבוריות
טווח צר
Attrs NarrowRange( bool x )
מספר ביט
Attrs NumBits( int64 x )
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2026-11-05 (שעון UTC).
[[["התוכן קל להבנה","easyToUnderstand","thumb-up"],["התוכן עזר לי לפתור בעיה","solvedMyProblem","thumb-up"],["סיבה אחרת","otherUp","thumb-up"]],[["חסרים לי מידע או פרטים","missingTheInformationINeed","thumb-down"],["התוכן מורכב מדי או עם יותר מדי שלבים","tooComplicatedTooManySteps","thumb-down"],["התוכן לא עדכני","outOfDate","thumb-down"],["בעיה בתרגום","translationIssue","thumb-down"],["בעיה בדוגמאות/בקוד","samplesCodeIssue","thumb-down"],["סיבה אחרת","otherDown","thumb-down"]],["עדכון אחרון: 2026-11-05 (שעון UTC)."],[],[]]