tensoreflusso:: ops:: SerializeManySparse

#include <sparse_ops.h>

Serializza uno SparseTensor N -minibatch in un oggetto Tensor [N, 3] .

Riepilogo

Lo SparseTensor deve avere rango R maggiore di 1 e la prima dimensione viene trattata come dimensione minibatch. Gli elementi dello SparseTensor devono essere ordinati in ordine crescente di questa prima dimensione. Gli oggetti SparseTensor serializzati che entrano in ciascuna riga di serialized_sparse avranno rango R-1 .

La dimensione del minibatch N viene estratta da sparse_shape[0] .

Argomenti:

  • scope: un oggetto Scope
  • sparse_indices: 2-D. Gli indices del minibatch SparseTensor .
  • valori_sparsi: 1-D. I values del minibatch SparseTensor .
  • forma_sparsa: 1-D. La shape del minibatch SparseTensor .

Attributi facoltativi (vedi Attrs ):

  • out_type: il dtype da utilizzare per la serializzazione; i tipi supportati sono string (predefinito) e variant .

Ritorna:

  • Output : il tensore serialized_sparse.

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 pubbliche statiche

OutType (DataType x)

Strutture

tensorflow:: ops:: SerializeManySparse:: Attrs

Setter di attributi facoltativi per SerializeManySparse .

Attributi pubblici

operazione

Operation operation

serialized_sparse

::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::tensorflow::Output

 operator::tensorflow::Output() const 

Funzioni pubbliche statiche

OutType

Attrs OutType(
  DataType x
)