tensorflow::ops::SerializeManySparse
#include <sparse_ops.h> Sérialiser un SparseTensor N mini-lots en un objet Tensor [N, 3] .
Résumé
Le SparseTensor doit avoir un rang R supérieur à 1, et sa première dimension est considérée comme la dimension du mini-lot. Les éléments du SparseTensor doivent être triés par ordre croissant de cette première dimension. Les objets SparseTensor sérialisés entrant dans chaque ligne de serialized_sparse auront un rang R-1 .
La taille du mini-lot N est extraite de sparse_shape[0] .
Arguments :
- portée : un objet Scope
- sparse_indices : 2D. Les
indicesdu minibatchSparseTensor. - sparse_values : 1-D. Les
valuesdu minibatchSparseTensor. - sparse_shape : 1-D. La
shapedu mini-lotSparseTensor.
Attributs optionnels (voir Attrs ) :
- out_type : Le
dtypeà utiliser pour la sérialisation ; les types pris en charge sontstring(par défaut) etvariant.
Retours :
-
Output: Le tenseur sérialisé_sparse.
Constructeurs et destructeurs | |
|---|---|
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) |
attributs publics | |
|---|---|
operation | |
serialized_sparse | |
fonctions publiques | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
fonctions statiques publiques | |
|---|---|
OutType (DataType x) | |
Structures | |
|---|---|
| tensorflow::ops::SerializeManySparse::Attrs | Définiteurs d'attributs optionnels pour SerializeManySparse . |
attributs publics
opération
Operation operation
sérialisé_parcimonieux
::tensorflow::Output serialized_sparse
fonctions publiques
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 )
nœud
::tensorflow::Node * node() const
opérateur::tensorflow::Entrée
operator::tensorflow::Input() const
opérateur::tensorflow::Sortie
operator::tensorflow::Output() const
fonctions statiques publiques
Type de sortie
Attrs OutType( DataType x )