tensorflow:: ops:: SerializeManySparse

#include <sparse_ops.h>

Serializuj N -minibatch SparseTensor do obiektu [N, 3] Tensor .

Streszczenie

SparseTensor musi mieć rangę R większą niż 1, a pierwszy wymiar jest traktowany jako wymiar minibatch. Elementy SparseTensor muszą być sortowane rosnąco według tego pierwszego wymiaru. Zserializowane obiekty SparseTensor umieszczane w każdym wierszu obiektu serialized_sparse będą miały rangę R-1 .

Rozmiar minibatchu N jest wyodrębniany z sparse_shape[0] .

Argumenty:

  • zakres: obiekt zakresu
  • sparse_indices: 2-D. indices minibatch SparseTensor .
  • sparse_values: 1-D. values minibatch SparseTensor .
  • sparse_shape: 1-D. shape minibatch SparseTensor .

Atrybuty opcjonalne (patrz Attrs ):

  • out_type: dtype używany do serializacji; obsługiwane typy to string (domyślnie) i variant .

Zwroty:

  • Output : tensor serialized_sparse.

Konstruktory i destruktory

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)

Atrybuty publiczne

operation
serialized_sparse

Funkcje publiczne

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

Publiczne funkcje statyczne

OutType (DataType x)

Struktury

tensorflow:: ops:: SerializeManySparse:: Attrs

Opcjonalne settery atrybutów dla SerializeManySparse .

Atrybuty publiczne

działanie

Operation operation

serialized_sparse

::tensorflow::Output serialized_sparse

Funkcje publiczne

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
)

węzeł

::tensorflow::Node * node() const 

operator::tensorflow::Input

 operator::tensorflow::Input() const 

operator::tensorflow::Output

 operator::tensorflow::Output() const 

Publiczne funkcje statyczne

Typ wyjścia

Attrs OutType(
  DataType x
)