tensoreflusso:: ops:: FakeQuantWithMinMaxArgs

#include <array_ops.h>

Quantizzare in modo falso il tensore 'input', digitare float nel tensore 'output' dello stesso tipo.

Riepilogo

Attributi [min; max] definiscono l'intervallo di limitazione per i dati inputs . i valori inputs vengono quantizzati nell'intervallo di quantizzazione ( [0; 2^num_bits - 1] quando narrow_range è falso e [1; 2^num_bits - 1] quando è vero) quindi dequantizzati e emessi come float in [min; max] intervallo. num_bits è la larghezza di bit della quantizzazione; dai 2 ai 16 anni compresi.

Prima della quantizzazione, i valori min e max vengono regolati con la seguente logica. Si consiglia di avere min <= 0 <= max . Se 0 non è compreso nell'intervallo di valori, il comportamento può essere imprevisto: Se 0 < min < max : min_adj = 0 e max_adj = max - min . Se min < max < 0 : min_adj = min - max e max_adj = 0 . Se min <= 0 <= max : scale = (max - min) / (2^num_bits - 1) , min_adj = scale * round(min / scale) e max_adj = max + min_adj - min .

La quantizzazione è chiamata falsa poiché l'output è ancora in virgola mobile.

Argomenti:

Ritorna:

  • Output : il tensore delle uscite.

Costruttori e distruttori

FakeQuantWithMinMaxArgs (const :: tensorflow::Scope & scope, :: tensorflow::Input inputs)
FakeQuantWithMinMaxArgs (const :: tensorflow::Scope & scope, :: tensorflow::Input inputs, const FakeQuantWithMinMaxArgs::Attrs & attrs)

Attributi pubblici

operation
outputs

Funzioni pubbliche

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

Funzioni pubbliche statiche

Max (float x)
Min (float x)
NarrowRange (bool x)
NumBits (int64 x)

Strutture

tensorflow:: ops:: FakeQuantWithMinMaxArgs:: Attrs

Setter di attributi facoltativi per FakeQuantWithMinMaxArgs .

Attributi pubblici

operazione

Operation operation

uscite

::tensorflow::Output outputs

Funzioni pubbliche

FakeQuantWithMinMaxArgs

 FakeQuantWithMinMaxArgs(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input inputs
)

FakeQuantWithMinMaxArgs

 FakeQuantWithMinMaxArgs(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input inputs,
  const FakeQuantWithMinMaxArgs::Attrs & attrs
)

nodo

::tensorflow::Node * node() const 

operatore::tensorflow::Input

 operator::tensorflow::Input() const 

operatore::tensorflow::Output

 operator::tensorflow::Output() const 

Funzioni pubbliche statiche

Massimo

Attrs Max(
  float x
)

minimo

Attrs Min(
  float x
)

Gamma ristretta

Attrs NarrowRange(
  bool x
)

NumBits

Attrs NumBits(
  int64 x
)