tensorflow :: ops :: FakeQuantWithMinMaxVarsGradient
#include <array_ops.h>Calcule gradientes para uma operação FakeQuantWithMinMaxVars .
Resumo
Argumentos:
- escopo: um objeto Scope
- gradientes: gradientes retropropagados acima da operação FakeQuantWithMinMaxVars .
- entradas: valores passados como entradas para a operação FakeQuantWithMinMaxVars . min, max: intervalo de quantização, flutuações escalares.
Atributos opcionais (consulte Attrs ):
- num_bits: a largura de bits da quantização; entre 2 e 8, inclusive.
- intervalo_estrito: se deve quantizar em 2 ^ num_bits - 1 valores distintos.
Retorna:
-
Outputbackprops_wrt_input: Gradientes retropropagados wrt entradas:gradients * (inputs >= min && inputs <= max).gradients * (inputs >= min && inputs <= max). -
Outputbackprop_wrt_min: Gradientes retropropagados wrt min parâmetro:sum(gradients * (inputs < min)). -
Outputbackprop_wrt_max: Gradientes retro-propagados wrt max parâmetro:sum(gradients * (inputs > max)).
Construtores e Destruidores | |
|---|---|
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) |
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 :: FakeQuantWithMinMaxVarsGradient :: Attrs | Configuradores de atributos opcionais para FakeQuantWithMinMaxVarsGradient . |
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
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 )
Funções estáticas públicas
Curto alcance
Attrs NarrowRange( bool x )
NumBits
Attrs NumBits( int64 x )