flujo tensor:: operaciones:: FakeQuantWithMinMaxVarsPerChannelGradient
#include <array_ops.h>Calcule gradientes para una operación FakeQuantWithMinMaxVarsPerChannel .
Resumen
Argumentos:
- alcance: un objeto de alcance
- gradientes: gradientes retropropagados sobre la operación FakeQuantWithMinMaxVars , forma uno de:
[d],[b, d],[b, h, w, d]. - entradas: los valores pasados como entradas a la operación FakeQuantWithMinMaxVars tienen la misma forma que
gradients. min, max: Intervalo de cuantificación, flotadores de forma[d].
Atributos opcionales (ver Attrs ):
- num_bits: el ancho de bits de la cuantificación; entre 2 y 16 años, inclusive.
- rango_estrecho: si se debe cuantificar en 2^num_bits - 1 valor distinto.
Devoluciones:
-
Outputbackprops_wrt_input: gradientes retropropagados con entradas, forma igual queinputs:gradients * (inputs >= min && inputs <= max). -
Outputbackprop_wrt_min: gradientes retropropagados con parámetro mínimo, forma[d]:sum_per_d(gradients * (inputs < min)). -
Outputbackprop_wrt_max: gradientes retropropagados con 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:: operaciones:: FakeQuantWithMinMaxVarsPerChannelGradient:: Attrs | Configuradores de atributos opcionales 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
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 )
Números de bits
Attrs NumBits( int64 x )