tensoreflusso:: ops:: SparseBincount
#include <math_ops.h>Conta il numero di occorrenze di ciascun valore in una matrice di numeri interi.
Riepilogo
 Restituisce un vettore con size della lunghezza e lo stesso dtype dei weights . Se weights sono vuoti, l'indice i memorizza il numero di volte in cui il valore i viene conteggiato in arr . Se weights non sono vuoti, indice i memorizza la somma del valore in weights in ciascun indice in cui il valore corrispondente in arr è i .
 I valori in arr esterni all'intervallo [0, size) vengono ignorati.
Argomenti:
- scope: un oggetto Scope
-  indici: 2D int64 Tensor.
-  valori: 1D int Tensor.
-  dense_shape: 1D int64 Tensor.
-  dimensione: non negativo int scalare Tensor.
-  pesi: è un Tensorint32, int64, float32 o float64 con la stessa forma diinputo unTensorlength-0, nel qual caso agisce come tutti i pesi uguali a 1.
 Attributi facoltativi (vedi Attrs ):
- output_binario: bool; Se il kernel deve contare l'apparizione o il numero di occorrenze.
Resi:
-  Output:Tensor1D con lunghezza uguale asizeoTensor2D con [batch_size,size]. I conteggi o i pesi sommati per ciascun valore nell'intervallo [0, dimensione).
| Costruttori e distruttori | |
|---|---|
| SparseBincount (const :: tensorflow::Scope & scope, :: tensorflow::Input indices, :: tensorflow::Input values, :: tensorflow::Input dense_shape, :: tensorflow::Input size, :: tensorflow::Input weights) | |
| SparseBincount (const :: tensorflow::Scope & scope, :: tensorflow::Input indices, :: tensorflow::Input values, :: tensorflow::Input dense_shape, :: tensorflow::Input size, :: tensorflow::Input weights, const SparseBincount::Attrs & attrs) | 
| Attributi pubblici | |
|---|---|
| operation | |
| output | |
| Funzioni pubbliche | |
|---|---|
| node () const | ::tensorflow::Node * | 
| operator::tensorflow::Input () const | |
| operator::tensorflow::Output () const | |
| Funzioni pubbliche statiche | |
|---|---|
| BinaryOutput (bool x) | |
| Strutture | |
|---|---|
| tensorflow:: ops:: SparseBincount:: Attrs | Setter di attributi facoltativi per SparseBincount . | 
Attributi pubblici
operazione
Operation operation
produzione
::tensorflow::Output output
Funzioni pubbliche
SparseBincount
SparseBincount( const ::tensorflow::Scope & scope, ::tensorflow::Input indices, ::tensorflow::Input values, ::tensorflow::Input dense_shape, ::tensorflow::Input size, ::tensorflow::Input weights )
SparseBincount
SparseBincount( const ::tensorflow::Scope & scope, ::tensorflow::Input indices, ::tensorflow::Input values, ::tensorflow::Input dense_shape, ::tensorflow::Input size, ::tensorflow::Input weights, const SparseBincount::Attrs & attrs )
nodo
::tensorflow::Node * node() const
operatore::tensorflow::Input
operator::tensorflow::Input() const
operatore::tensorflow::Output
operator::tensorflow::Output() const
Funzioni pubbliche statiche
Uscita binaria
Attrs BinaryOutput( bool x )