SerializeSparse


tensorflow C++ API

tensorflow::ops::SerializeSparse

Serialize a SparseTensor into a string 3-vector (1-D Tensor) object.


Summary

Arguments:

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

Returns:

  • Output: The serialized_sparse tensor.

SerializeSparse 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 SerializeSparse class object.

Result:

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

Using Method

results matching ""

    No results matching ""