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 datiinputs.
-  i valori inputsvengono quantizzati nell'intervallo di quantizzazione ([0; 2^num_bits - 1]quandonarrow_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 = 0emax_adj = max - min.
-  Se min < max < 0:min_adj = min - maxemax_adj = 0.
-  Se min <= 0 <= max:scale = (max - min) / (2^num_bits - 1),min_adj = scale * round(min / scale)emax_adj = max + min_adj - min.
La quantizzazione è chiamata falsa poiché l'output è ancora in virgola mobile.
Argomenti:
- scope: un oggetto Scope
Resi:
-  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 )
Raggio ristretto
Attrs NarrowRange( bool x )
NumBits
Attrs NumBits( int64 x )