fluxo tensor:: ops:: FakeQuantWithMinMaxVarsPerChannelGradient
#include <array_ops.h>Calcule gradientes para uma operação FakeQuantWithMinMaxVarsPerChannel .
Resumo
Argumentos:
- escopo: um objeto Escopo
- gradientes: gradientes retropropagados acima da operação FakeQuantWithMinMaxVars , formam um de:
[d],[b, d],[b, h, w, d]. - entradas: valores passados como entradas para a operação FakeQuantWithMinMaxVars , têm o mesmo formato
gradients. min, max: Intervalo de quantização, flutuadores de formato[d].
Atributos opcionais (veja Attrs ):
- num_bits: A largura de bits da quantização; entre 2 e 16 anos, inclusive.
- intervalo_estreito: se deve ser quantizado em 2 ^ num_bits - 1 valores distintos.
Retorna:
-
Outputbackprops_wrt_input: Gradientes retropropagados em entradas, formato igual àsinputs:gradients * (inputs >= min && inputs <= max). -
Outputbackprop_wrt_min: Gradientes retropropagados wrt parâmetro min, forma[d]:sum_per_d(gradients * (inputs < min)). -
Outputbackprop_wrt_max: Gradientes retropropagados wrt parâmetro max, 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) | |
Estruturas | |
|---|---|
| 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
Faixa Estreita
Attrs NarrowRange( bool x )
Numbits
Attrs NumBits( int64 x )