tensoreflusso:: ops:: FakeQuantWithMinMaxVarsPerChannelGradient

#include <array_ops.h>

Calcola i gradienti per un'operazione FakeQuantWithMinMaxVarsPerChannel .

Riepilogo

Argomenti:

  • scope: un oggetto Scope
  • gradienti: i gradienti propagati all'indietro sopra l'operazione FakeQuantWithMinMaxVars , formano uno di: [d] , [b, d] , [b, h, w, d] .
  • input: i valori passati come input all'operazione FakeQuantWithMinMaxVars hanno la stessa forma gradients . min, max: intervallo di quantizzazione, float di forma [d] .

Attributi facoltativi (vedi Attrs ):

  • num_bits: la larghezza di bit della quantizzazione; dai 2 ai 16 anni compresi.
  • narrow_range: indica se quantizzare in 2^num_bits - 1 valori distinti.

Ritorna:

  • Output backprops_wrt_input: gradienti retropropagati rispetto agli input, hanno la stessa forma inputs : gradients * (inputs >= min && inputs <= max) .
  • Output backprop_wrt_min: gradienti retropropagati rispetto al parametro min, forma [d] : sum_per_d(gradients * (inputs < min)) .
  • Output backprop_wrt_max: gradienti retropropagati rispetto al parametro massimo, forma [d] : sum_per_d(gradients * (inputs > max)) .

Costruttori e distruttori

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)

Attributi pubblici

backprop_wrt_max
backprop_wrt_min
backprops_wrt_input
operation

Funzioni pubbliche statiche

NarrowRange (bool x)
NumBits (int64 x)

Strutture

tensorflow:: ops:: FakeQuantWithMinMaxVarsPerChannelGradient:: Attrs

Setter di attributi facoltativi per FakeQuantWithMinMaxVarsPerChannelGradient .

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

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
)

Funzioni pubbliche statiche

Gamma ristretta

Attrs NarrowRange(
  bool x
)

NumBits

Attrs NumBits(
  int64 x
)