tensorflow::ops::FakeQuantWithMinMaxVarsPerChannelGradient
#include <array_ops.h>Calcola i gradienti per un'operazione FakeQuantWithMinMaxVarsPerChannel .
Riepilogo
Argomentazioni:
- ambito: un oggetto Scope
- gradienti: Gradienti retropropagati sopra l'operazione FakeQuantWithMinMaxVars , forma una delle seguenti:
[d],[b, d],[b, h, w, d]. - input: Valori passati come input all'operazione FakeQuantWithMinMaxVars , forma uguale a
gradients. min, max: Intervallo di quantizzazione, float di forma[d].
Attributi opzionali (vedere Attrs ):
- num_bits: Larghezza in bit della quantizzazione; compresa tra 2 e 16, inclusi.
- narrow_range: Indica se quantizzare in 2^num_bits - 1 valori distinti.
Resi:
-
Outputbackprops_wrt_input: Gradienti retropropagati rispetto agli input, forma uguale agliinputs:gradients * (inputs >= min && inputs <= max). -
Outputbackprop_wrt_min: Gradienti retropropagati rispetto al parametro min, forma[d]:sum_per_d(gradients * (inputs < min)). -
Outputbackprop_wrt_max: Gradienti retropropagati rispetto al parametro max, forma[d]:sum_per_d(gradients * (inputs > max)).
Costruttori e distruttori | |
|---|---|
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) |
attributi pubblici | |
|---|---|
backprop_wrt_max | |
backprop_wrt_min | |
backprops_wrt_input | |
operation | |
Funzioni statiche pubbliche | |
|---|---|
NarrowRange (bool x) | |
NumBits (int64 x) | |
Strutture | |
|---|---|
| tensorflow::ops::FakeQuantWithMinMaxVarsPerChannelGradient::Attrs | Impostatori di attributi opzionali per FakeQuantWithMinMaxVarsPerChannelGradient . |
attributi pubblici
backprop_wrt_max
::tensorflow::Output backprop_wrt_max
backprop_wrt_min
::tensorflow::Output backprop_wrt_min
backprops_wrt_input
::tensorflow::Output backprops_wrt_input
operazione
Operation operation
Funzioni pubbliche
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 )
Funzioni statiche pubbliche
Gamma ristretta
Attrs NarrowRange( bool x )
NumBits
Attrs NumBits( int64 x )