تدفق التوتر:: العمليات:: FakeQuantWithMinMaxVarsPerChannelGradient

#include <array_ops.h>

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

ملخص

الحجج:

  • النطاق: كائن النطاق
  • التدرجات: التدرجات ذات الانتشار العكسي فوق عملية FakeQuantWithMinMaxVars ، شكل واحد مما يلي: [d] , [b, d] , [b, h, w, d] .
  • inputs: القيم التي تم تمريرها كمدخلات إلى عملية FakeQuantWithMinMaxVars ، لها نفس شكل gradients . الحد الأدنى والحد الأقصى: الفاصل الزمني للتكميم، عوامات الشكل [d] .

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

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

عائدات:

  • Output backprops_wrt_input: التدرجات Backpropagrated wrt المدخلات، شكل نفس inputs : gradients * (inputs >= min && inputs <= max) .
  • Output backprop_wrt_min: معلمة التدرجات ذات الانتشار العكسي wrt min، الشكل [d] : sum_per_d(gradients * (inputs < min)) .
  • Output backprop_wrt_max: معلمة الحد الأقصى للتدرجات ذات الانتشار العكسي، الشكل [d] : sum_per_d(gradients * (inputs > max)) .

البنائين والمدمرين

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

الصفات العامة

backprop_wrt_max
backprop_wrt_min
backprops_wrt_input
operation

وظائف ثابتة العامة

NarrowRange (bool x)
NumBits (int64 x)

الهياكل

Tensorflow:: ops:: FakeQuantWithMinMaxVarsPerChannelGradient:: Attrs

محددات السمات الاختيارية لـ FakeQuantWithMinMaxVarsPerChannelGradient .

الصفات العامة

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

الوظائف العامة

FakeQuantWithMinMaxVarsPerChannelGradient

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

FakeQuantWithMinMaxVarsPerChannelGradient

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

وظائف ثابتة العامة

نطاق ضيق

Attrs NarrowRange(
  bool x
)

نومبيتس

Attrs NumBits(
  int64 x
)