tensorflow::ops::FakeQuantWithMinMaxArgs

#include <array_ops.h>

Simula la quantizzazione del tensore 'inputs', convertendo il tipo float nel tensore 'outputs' dello stesso tipo.

Riepilogo

Gli 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) e quindi dequantizzati e restituiti come float nell'intervallo [min; max] . num_bits è la larghezza in bit della quantizzazione; compresa tra 2 e 16, inclusi.

Prima della quantizzazione, i valori min e max vengono regolati con la seguente logica. Si consiglia di avere min <= 0 <= max . Se 0 non è 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 viene definita falsa poiché l'output è ancora in virgola mobile.

Argomentazioni:

  • ambito: un oggetto Scope

Resi:

  • Output : Il tensore di output.

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 statiche pubbliche

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

Strutture

tensorflow::ops::FakeQuantWithMinMaxArgs::Attrs

Impostatori di attributi opzionali per FakeQuantWithMinMaxArgs .

attributi pubblici

operazione

Operation operation

output

::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::tensoreflusso::output

 operator::tensorflow::Output() const 

Funzioni statiche pubbliche

Massimo

Attrs Max(
  float x
)

Min

Attrs Min(
  float x
)

Gamma ristretta

Attrs NarrowRange(
  bool x
)

NumBits

Attrs NumBits(
  int64 x
)