tensoreflusso:: ops:: FakeQuantWithMinMaxVarsGradiente

#include <array_ops.h>

Calcola i gradienti per un'operazione FakeQuantWithMinMaxVars .

Riepilogo

Argomenti:

  • scope: un oggetto Scope
  • gradienti: gradienti propagati all'indietro sopra l'operazione FakeQuantWithMinMaxVars .
  • input: valori passati come input all'operazione FakeQuantWithMinMaxVars . min, max: intervallo di quantizzazione, numeri in virgola mobile scalare.

Attributi facoltativi (vedi Attrs ):

  • num_bits: la larghezza di bit della quantizzazione; tra 2 e 8 compresi.
  • narrow_range: indica se quantizzare in 2^num_bits - 1 valori distinti.

Ritorna:

  • Output backprops_wrt_input: gradienti retropropagati rispetto agli input: gradients * (inputs >= min && inputs <= max) .
  • Output backprop_wrt_min: gradienti retropropagati rispetto al parametro min: sum(gradients * (inputs < min)) .
  • Output backprop_wrt_max: gradienti retropropagati rispetto al parametro massimo: sum(gradients * (inputs > max)) .

Costruttori e distruttori

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)

Attributi pubblici

backprop_wrt_max
backprop_wrt_min
backprops_wrt_input
operation

Funzioni pubbliche statiche

NarrowRange (bool x)
NumBits (int64 x)

Strutture

tensorflow:: ops:: FakeQuantWithMinMaxVarsGradient:: Attrs

Setter di attributi facoltativi per FakeQuantWithMinMaxVarsGradient .

Attributi pubblici

backprop_wrt_max

::tensorflow::Output backprop_wrt_max

backprop_wrt_min

::tensorflow::Output backprop_wrt_min

backprops_wrt_input

::tensorflow::Output backprops_wrt_input

operazione

Operation operation

Funzioni pubbliche

FakeQuantWithMinMaxVarsGradiente

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

FakeQuantWithMinMaxVarsGradiente

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

Funzioni pubbliche statiche

Gamma ristretta

Attrs NarrowRange(
  bool x
)

NumBits

Attrs NumBits(
  int64 x
)