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