tensorflow:: ops:: FakeQuantWithMinMaxArgs

#include <array_ops.h>

בצע כימות מזויף של טנזור 'inputs', הקלד float לטנזור 'outputs' מאותו סוג.

תַקצִיר

התכונות [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 .

קוונטיזציה נקראת מזויפת מכיוון שהפלט עדיין בנקודה צפה.

טיעונים:

החזרות:

  • 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 

אופרטור::tensorflow::קלט

 operator::tensorflow::Input() const 

אופרטור::tensorflow::פלט

 operator::tensorflow::Output() const 

פונקציות סטטיות ציבוריות

מקס

Attrs Max(
  float x
)

דקות

Attrs Min(
  float x
)

טווח צר

Attrs NarrowRange(
  bool x
)

מספר ביט

Attrs NumBits(
  int64 x
)