tensorflow:: ops:: FakeQuantWithMinMaxVarsPerChannelGradient

#include <array_ops.h>

Calcula los gradientes para una operación FakeQuantWithMinMaxVarsPerChannel .

Resumen

Argumentos:

  • ámbito: Un objeto de ámbito
  • gradientes: Gradientes retropropagados por encima de la operación FakeQuantWithMinMaxVars , forma una de: [d] , [b, d] , [b, h, w, d] .
  • entradas: Valores pasados ​​como entradas a la operación FakeQuantWithMinMaxVars , forma igual que gradients . min, max: Intervalo de cuantización, flotantes de forma [d] .

Atributos opcionales (ver Attrs ):

  • num_bits: El ancho de bits de la cuantización; entre 2 y 16, ambos inclusive.
  • narrow_range: Indica si se debe cuantizar en 2^num_bits - 1 valores distintos.

Devoluciones:

  • Output backprops_wrt_input: Gradientes retropropagados con respecto a las entradas, forma igual que inputs : gradients * (inputs >= min && inputs <= max) .
  • Output backprop_wrt_min: Gradientes retropropagados con respecto al parámetro min, forma [d] : sum_per_d(gradients * (inputs < min)) .
  • Output backprop_wrt_max: Gradientes retropropagados con respecto al parámetro máximo, forma [d] : sum_per_d(gradients * (inputs > max)) .

Constructores y destructores

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)

Atributos públicos

backprop_wrt_max
backprop_wrt_min
backprops_wrt_input
operation

funciones estáticas públicas

NarrowRange (bool x)
NumBits (int64 x)

Estructuras

tensorflow:: ops:: FakeQuantWithMinMaxVarsPerChannelGradient:: Attrs

Configuradores de atributos opcionales para FakeQuantWithMinMaxVarsPerChannelGradient .

Atributos públicos

retropropagación_con_máx

::tensorflow::Output backprop_wrt_max

retropropagación_con_min

::tensorflow::Output backprop_wrt_min

retropropagación_con_entrada

::tensorflow::Output backprops_wrt_input

operación

Operation operation

Funciones públicas

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
)

funciones estáticas públicas

Rango estrecho

Attrs NarrowRange(
  bool x
)

NumBits

Attrs NumBits(
  int64 x
)