flux tensoriel : : opérations : : FakeQuantWithMinMaxVarsGradient

#include <array_ops.h>

Calculez les dégradés pour une opération FakeQuantWithMinMaxVars .

Résumé

Arguments:

  • scope : un objet Scope
  • gradients : dégradés rétropropagés au-dessus de l'opération FakeQuantWithMinMaxVars .
  • inputs : valeurs transmises en tant qu’entrées à l’opération FakeQuantWithMinMaxVars . min, max : intervalle de quantification, flotteurs scalaires.

Attributs facultatifs (voir Attrs ) :

  • num_bits : la largeur de bits de la quantification ; entre 2 et 8 inclus.
  • étroite_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 : gradients * (inputs >= min && inputs <= max) .
  • Output backprop_wrt_min : gradients rétropropagés par rapport au paramètre min : sum(gradients * (inputs < min)) .
  • Output backprop_wrt_max : gradients rétropropagés 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

Setters d'attributs facultatifs pour FakeQuantWithMinMaxVarsGradient .

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

FakeQuantWithMinMaxVarsGradient

 FakeQuantWithMinMaxVarsGradient(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input gradients,
  ::tensorflow::Input inputs,
  ::tensorflow::Input min,
  ::tensorflow::Input max
)

FakeQuantWithMinMaxVarsGradient

 FakeQuantWithMinMaxVarsGradient(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input gradients,
  ::tensorflow::Input inputs,
  ::tensorflow::Input min,
  ::tensorflow::Input max,
  const FakeQuantWithMinMaxVarsGradient::Attrs & attrs
)

Fonctions statiques publiques

Fourchette étroite

Attrs NarrowRange(
  bool x
)

Nombre de bits

Attrs NumBits(
  int64 x
)