tensorflow::ops::FakeQuantWithMinMaxVarsGradient
#include <array_ops.h>Calculer les gradients pour une opération FakeQuantWithMinMaxVars .
Résumé
Arguments :
- portée : un objet Scope
- gradients : Gradients rétropropagés au-dessus de l'opération FakeQuantWithMinMaxVars .
- inputs : Valeurs transmises en entrée à l’opération FakeQuantWithMinMaxVars . min, max : Intervalle de quantification, nombres flottants scalaires.
Attributs optionnels (voir Attrs ) :
- num_bits : La largeur en bits de la quantification ; entre 2 et 8 inclus.
- narrow_range : Indique s’il faut quantifier en 2^num_bits - 1 valeurs distinctes.
Retours :
-
Outputbackprops_wrt_input : Gradient rétropropagé par rapport aux entrées :gradients * (inputs >= min && inputs <= max). -
Outputbackprop_wrt_min : Gradient rétropropagé par rapport au paramètre min :sum(gradients * (inputs < min)). -
Outputbackprop_wrt_max : Gradient rétropropagé par rapport au paramètre max :sum(gradients * (inputs > max)).
Constructeurs et destructeurs | |
|---|---|
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) |
attributs publics | |
|---|---|
backprop_wrt_max | |
backprop_wrt_min | |
backprops_wrt_input | |
operation | |
fonctions statiques publiques | |
|---|---|
NarrowRange (bool x) | |
NumBits (int64 x) | |
Structures | |
|---|---|
| tensorflow::ops::FakeQuantWithMinMaxVarsGradient::Attrs | Définiteurs d'attributs optionnels pour FakeQuantWithMinMaxVarsGradient . |
attributs publics
rétropropagation par rapport à max
::tensorflow::Output backprop_wrt_max
rétropropagation par rapport à min
::tensorflow::Output backprop_wrt_min
backprops_wrt_input
::tensorflow::Output backprops_wrt_input
opération
Operation operation
fonctions publiques
FakeQuantAvecMinMaxVarsGradient
FakeQuantWithMinMaxVarsGradient( const ::tensorflow::Scope & scope, ::tensorflow::Input gradients, ::tensorflow::Input inputs, ::tensorflow::Input min, ::tensorflow::Input max )
FakeQuantAvecMinMaxVarsGradient
FakeQuantWithMinMaxVarsGradient( const ::tensorflow::Scope & scope, ::tensorflow::Input gradients, ::tensorflow::Input inputs, ::tensorflow::Input min, ::tensorflow::Input max, const FakeQuantWithMinMaxVarsGradient::Attrs & attrs )
fonctions statiques publiques
NarrowRange
Attrs NarrowRange( bool x )
NumBits
Attrs NumBits( int64 x )