flux tensoriel : : opérations : : SerializeManySparse

#include <sparse_ops.h>

Sérialisez un SparseTensor N -minibatch en 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 du minibatch. 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 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 minibatch SparseTensor .
  • sparse_values : 1-D. Les values du minibatch SparseTensor .
  • sparse_shape : 1-D. La shape du minibatch SparseTensor .

Attributs facultatifs (voir Attrs ) :

  • out_type : Le dtype à utiliser pour la sérialisation ; les types pris en charge sont string (par défaut) et variant .

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)

Structures

tensorflow :: ops :: SerializeManySparse :: Attrs

Setters d'attributs facultatifs pour SerializeManySparse .

Attributs publics

opération

Operation operation

sérialisé_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 

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
)