tensorflow:: ops:: FakeQuantWithMinMaxVarsGradient

#include <array_ops.h>

احسب التدرجات لعملية FakeQuantWithMinMaxVars .

ملخص

الحجج:

  • النطاق: كائن النطاق
  • التدرجات: التدرجات المنتشرة عكسيًا فوق عملية FakeQuantWithMinMaxVars .
  • المدخلات: القيم التي يتم تمريرها كمدخلات لعملية FakeQuantWithMinMaxVars . الحد الأدنى، الحد الأقصى: فاصل التكميم، أعداد عشرية قياسية.

السمات الاختيارية (انظر Attrs ):

  • num_bits: عرض البتات للتكميم؛ بين 2 و 8، شاملة.
  • النطاق الضيق: ما إذا كان سيتم تقسيم القيمة إلى 2^num_bits - 1 قيمة مميزة.

المرتجعات:

  • Output backprops_wrt_input: التدرجات المنتشرة عكسيًا بالنسبة للمدخلات: gradients * (inputs >= min && inputs <= max) .
  • Output backprop_wrt_min: التدرجات المنتشرة عكسيًا بالنسبة إلى الحد الأدنى للمعامل: sum(gradients * (inputs < min)) .
  • Output backprop_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

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

FakeQuantWithMinMaxVarsGradient

 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
)

NumBits

Attrs NumBits(
  int64 x
)