SerializeManySparse


tensorflow C++ API

tensorflow::ops::SerializeManySparse

Deserialize and concatenate SparseTensors from a serialized minibatch.


Summary

The SparseTensor must have rank R greater than 1, and the first dimension is treated as the minibatch dimension. Elements of the SparseTensor must be sorted in increasing order of this first dimension. The serialized SparseTensor objects going into each row of serialized_sparse will have rank R-1.

The minibatch size N is extracted from sparse_shape[0].

Arguments:

  • scope: A Scope object
  • sparse_indices: 2-D. The indices of the minibatch SparseTensor.
  • sparse_values: 1-D. The values of the minibatch SparseTensor.
  • sparse_shape: 1-D. The shape of the minibatch SparseTensor.

Returns:

  • Output: The serialized_sparse tensor.

SerializeManySparse block

Source link : https://github.com/EXPNUNI/enuSpaceTensorflow/blob/master/enuSpaceTensorflow/tf_sparse.cpp

Argument:

  • Scope scope : A Scope object (A scope is generated automatically each page. A scope is not connected.)
  • Input sparse_indices: connect Input node.
  • Input sparse_values: connect Input node.
  • Input sparse_shape: connect Input node.

Return:

  • Output output: Output object of SerializeManySparse class object.

Result:

  • std::vector(Tensor) product_result : Returned object of executed result by calling session.

Using Method

results matching ""

    No results matching ""