tensorflow::ops::SerializeManySparse
#include <sparse_ops.h> Serializza un N -minibatch SparseTensor in un oggetto Tensor [N, 3] .
Riepilogo
Il SparseTensor deve avere rango R maggiore di 1 e la prima dimensione viene trattata come la dimensione del minibatch. Gli elementi del SparseTensor devono essere ordinati in ordine crescente in base a questa prima dimensione. Gli oggetti SparseTensor serializzati che entrano in ogni riga di serialized_sparse avranno rango R-1 .
La dimensione del minibatch N viene estratta da sparse_shape[0] .
Argomentazioni:
- ambito: un oggetto Scope
- sparse_indices: 2-D. Gli
indicesdel minibatchSparseTensor. - sparse_values: 1-D. I
valuesdel minibatchSparseTensor. - sparse_shape: 1-D. La
shapedel minibatchSparseTensor.
Attributi opzionali (vedere Attrs ):
- out_type: Il
dtypeda utilizzare per la serializzazione; i tipi supportati sonostring(predefinito) evariant.
Resi:
-
Output: Il tensore serializzato sparso.
Costruttori e distruttori | |
|---|---|
SerializeManySparse (const :: tensorflow::Scope & scope, :: tensorflow::Input sparse_indices, :: tensorflow::Input sparse_values, :: tensorflow::Input sparse_shape) | |
SerializeManySparse (const :: tensorflow::Scope & scope, :: tensorflow::Input sparse_indices, :: tensorflow::Input sparse_values, :: tensorflow::Input sparse_shape, const SerializeManySparse::Attrs & attrs) |
attributi pubblici | |
|---|---|
operation | |
serialized_sparse | |
Funzioni pubbliche | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
Funzioni statiche pubbliche | |
|---|---|
OutType (DataType x) | |
Strutture | |
|---|---|
| tensorflow::ops::SerializeManySparse::Attrs | Impostatori di attributi opzionali per SerializeManySparse . |
attributi pubblici
operazione
Operation operation
serializzato_sparso
::tensorflow::Output serialized_sparse
Funzioni pubbliche
SerializeManySparse
SerializeManySparse( const ::tensorflow::Scope & scope, ::tensorflow::Input sparse_indices, ::tensorflow::Input sparse_values, ::tensorflow::Input sparse_shape )
SerializeManySparse
SerializeManySparse( const ::tensorflow::Scope & scope, ::tensorflow::Input sparse_indices, ::tensorflow::Input sparse_values, ::tensorflow::Input sparse_shape, const SerializeManySparse::Attrs & attrs )
nodo
::tensorflow::Node * node() const
operatore::tensorflow::Input
operator::tensorflow::Input() const
operatore::tensoreflusso::output
operator::tensorflow::Output() const
Funzioni statiche pubbliche
OutType
Attrs OutType( DataType x )