flux tensoriel : : opérations : : FakeQuantWithMinMaxVarsPerChannelGradient

#include <array_ops.h>

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

Résumé

Arguments:

  • scope : un objet Scope
  • gradients : les dégradés rétropropagés au-dessus de l'opération FakeQuantWithMinMaxVars forment l'un des éléments suivants : [d] , [b, d] , [b, h, w, d] .
  • inputs : les valeurs transmises en tant qu'entrées à l'opération FakeQuantWithMinMaxVars ont la même forme que 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 ans inclus.
  • étroite_range : s'il faut quantifier en 2^num_bits - 1 valeurs distinctes.

Retour:

  • Output backprops_wrt_input : dégradés rétropropagés par rapport aux entrées, forme identique à celle inputs : 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, 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

Setters 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
)

Nombre de bits

Attrs NumBits(
  int64 x
)