tensorflow :: opérations :: FakeQuantWithMinMaxVarsPerChannelGradient
#include <array_ops.h>
Calculez des dégradés pour une opération FakeQuantWithMinMaxVarsPerChannel .
Résumé
Arguments:
- scope: un objet Scope
- dégradés: dégradés rétropropagés au-dessus de l'opération FakeQuantWithMinMaxVars , forme l'un des suivants:
[d]
,[b, d]
,[b, h, w, d]
. - inputs: valeurs transmises en tant qu'entrées à l'opération FakeQuantWithMinMaxVars , forme identique à celle des
gradients
. min, max: intervalle de quantification, flotteurs de forme[d]
.
Attributs facultatifs (voir Attrs
):
- num_bits: la largeur de bits de la quantification; entre 2 et 16 inclus.
- narrow_range: s'il faut quantifier en 2 ^ num_bits - 1 valeurs distinctes.
Retour:
-
Output
backprops_wrt_input: Gradients rétropropagés par rapport aux entrées, forme identique à celle desinputs
:gradients * (inputs >= min && inputs <= max)
. -
Output
backprop_wrt_min: Gradients rétropropagés par rapport au paramètre min, forme[d]
:sum_per_d(gradients * (inputs < min))
. -
Output
backprop_wrt_max: Gradients rétropropagés par rapport au paramètre max, shape[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) |
Structs | |
---|---|
tensorflow :: ops :: FakeQuantWithMinMaxVarsPerChannelGradient :: Attrs | Définisseurs d' attributs facultatifs pour FakeQuantWithMinMaxVarsPerChannelGradient . |
Attributs publics
backprop_wrt_max
::tensorflow::Output backprop_wrt_max
backprop_wrt_min
::tensorflow::Output backprop_wrt_min
backprops_wrt_input
::tensorflow::Output backprops_wrt_input
opération
Operation operation
Fonctions publiques
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 )
Fonctions statiques publiques
Fourchette étroite
Attrs NarrowRange( bool x )
NumBits
Attrs NumBits( int64 x )