tensorflow:: ops:: FakeQuantWithMinMaxVarsGradient

#include <array_ops.h>

חשב גרדיאנטים עבור פעולת FakeQuantWithMinMaxVars .

תַקצִיר

טיעונים:

  • היקף: אובייקט היקף
  • גרדיאנטים: גרדיאנטים שעברו התפשטות לאחור מעל פעולת FakeQuantWithMinMaxVars .
  • קלט: ערכים המועברים כקלטים לפעולת FakeQuantWithMinMaxVars . min, max: מרווח כימות, מספרים צפים סקלריים.

מאפיינים אופציונליים (ראה Attrs ):

  • num_bits: רוחב הסיביות של הכימות; בין 2 ל-8, כולל.
  • טווח_צר: האם לכמת לערכים נפרדים של 2^num_bits - 1.

החזרות:

  • Output backprops_wrt_input: גרדיאנטים שעברו התפשטות לאחור עבור קלטים: gradients * (inputs >= min && inputs <= max) .
  • Output backprop_wrt_min: גרדיאנטים שעברו התפשטות לאחור עם פרמטר min: sum(gradients * (inputs < min)) .
  • Output backprop_wrt_max: גרדיאנטים שעברו התפשטות לאחור עם פרמטר wrt max: sum(gradients * (inputs > max)) .

בנאים והורסים

FakeQuantWithMinMaxVarsGradient (const :: tensorflow::Scope & scope, :: tensorflow::Input gradients, :: tensorflow::Input inputs, :: tensorflow::Input min, :: tensorflow::Input max)
FakeQuantWithMinMaxVarsGradient (const :: tensorflow::Scope & scope, :: tensorflow::Input gradients, :: tensorflow::Input inputs, :: tensorflow::Input min, :: tensorflow::Input max, const FakeQuantWithMinMaxVarsGradient::Attrs & attrs)

מאפיינים ציבוריים

backprop_wrt_max
backprop_wrt_min
backprops_wrt_input
operation

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

NarrowRange (bool x)
NumBits (int64 x)

מבנים

tensorflow:: ops:: FakeQuantWithMinMaxVarsGradient:: Attrs

קובעי מאפיינים אופציונליים עבור FakeQuantWithMinMaxVarsGradient .

מאפיינים ציבוריים

backprop_wrt_max

::tensorflow::Output backprop_wrt_max

backprop_wrt_min

::tensorflow::Output backprop_wrt_min

backprops_wrt_input

::tensorflow::Output backprops_wrt_input

מִבצָע

Operation operation

תפקידים ציבוריים

כמות מזויפת עם מינימום/מקסימום משתנים בגרדיאנט

 FakeQuantWithMinMaxVarsGradient(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input gradients,
  ::tensorflow::Input inputs,
  ::tensorflow::Input min,
  ::tensorflow::Input max
)

כמות מזויפת עם מינימום/מקסימום משתנים בגרדיאנט

 FakeQuantWithMinMaxVarsGradient(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input gradients,
  ::tensorflow::Input inputs,
  ::tensorflow::Input min,
  ::tensorflow::Input max,
  const FakeQuantWithMinMaxVarsGradient::Attrs & attrs
)

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

טווח צר

Attrs NarrowRange(
  bool x
)

מספר ביט

Attrs NumBits(
  int64 x
)