tensorflow :: opérations :: SerializeManySparse
#include <sparse_ops.h>
Sérialisez un N
-minibatch SparseTensor
dans un objet Tensor
[N, 3]
.
Résumé
Le SparseTensor
doit avoir un rang R
supérieur à 1 et la première dimension est traitée comme la dimension de mini-match. Les éléments du SparseTensor
doivent être triés dans l'ordre croissant de cette première dimension. Les objets SparseTensor
sérialisés SparseTensor
dans chaque ligne de serialized_sparse
auront le rang R-1
.
La taille du minibatch N
est extraite de sparse_shape[0]
.
Arguments:
- scope: un objet Scope
- sparse_indices: 2-D. Les
indices
du minibatchSparseTensor
. - sparse_values: 1-D. Les
values
du minibatchSparseTensor
. - forme_ clairsemée: 1-D. La
shape
du minibatchSparseTensor
.
Attributs facultatifs (voir Attrs
):
- out_type: le
dtype
à utiliser pour la sérialisation; les types pris en charge sontstring
(par défaut) etvariant
.
Retour:
-
Output
: le tenseur serialized_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) |
Structs | |
---|---|
tensorflow :: ops :: SerializeManySparse :: Attrs | Définisseurs d'attributs facultatifs pour SerializeManySparse . |
Attributs publics
opération
Operation operation
serialized_sparse
::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
operator :: tensorflow :: Input
operator::tensorflow::Input() const
operator :: tensorflow :: Output
operator::tensorflow::Output() const
Fonctions statiques publiques
Type de sortie
Attrs OutType( DataType x )