tensorflow :: ops :: FakeQuantWithMinMaxVarsPerChannelGradient

#include <array_ops.h>

Calcule gradientes para uma operação FakeQuantWithMinMaxVarsPerChannel .

Resumo

Argumentos:

  • escopo: um objeto Scope
  • gradientes: gradientes retropropagados acima da operação FakeQuantWithMinMaxVars , forma um de: [d] , [b, d] , [b, h, w, d] .
  • entradas: valores passados ​​como entradas para a operação FakeQuantWithMinMaxVars , formato igual aos gradients . min, max: intervalo de quantização, flutuadores de forma [d] .

Atributos opcionais (consulte Attrs ):

  • num_bits: a largura de bits da quantização; entre 2 e 16, inclusive.
  • intervalo_estrito: se deve quantizar em 2 ^ num_bits - 1 valores distintos.

Retorna:

  • Output backprops_wrt_input: Gradientes retropropagados para entradas, formato igual às inputs : gradients * (inputs >= min && inputs <= max) . gradients * (inputs >= min && inputs <= max) .
  • Output backprop_wrt_min: Gradientes retropropagados wrt parâmetro mínimo, forma [d] : sum_per_d(gradients * (inputs < min)) .
  • Output backprop_wrt_max: Gradientes retropropagados wrt parâmetro máximo, forma [d] : sum_per_d(gradients * (inputs > max)) .

Construtores e Destruidores

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

Funções estáticas públicas

NarrowRange (bool x)
NumBits (int64 x)

Structs

tensorflow :: ops :: FakeQuantWithMinMaxVarsPerChannelGradient :: Attrs

Configuradores de atributos opcionais para FakeQuantWithMinMaxVarsPerChannelGradient .

Atributos públicos

backprop_wrt_max

::tensorflow::Output backprop_wrt_max

backprop_wrt_min

::tensorflow::Output backprop_wrt_min

backprops_wrt_input

::tensorflow::Output backprops_wrt_input

Operação

Operation operation

Funções 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
)

Funções estáticas públicas

Curto alcance

Attrs NarrowRange(
  bool x
)

NumBits

Attrs NumBits(
  int64 x
)