CSRSparseMatrixToSparseTensor

public final class CSRSparseMatrixToSparseTensor

Converts a (possibly batched) CSRSparesMatrix to a SparseTensor.

Public Methods

static <T> CSRSparseMatrixToSparseTensor <T>
create ( Scope scope, Operand <?> sparseMatrix, Class<T> type)
Factory method to create a class wrapping a new CSRSparseMatrixToSparseTensor operation.
Output <Long>
denseShape ()
SparseTensor dense shape.
Output <Long>
indices ()
SparseTensor indices.
Output <T>
values ()
SparseTensor values.

Inherited Methods

Public Methods

public static CSRSparseMatrixToSparseTensor <T> create ( Scope scope, Operand <?> sparseMatrix, Class<T> type)

Factory method to create a class wrapping a new CSRSparseMatrixToSparseTensor operation.

Parameters
scope current scope
sparseMatrix A (possibly batched) CSRSparseMatrix.
Returns
  • a new instance of CSRSparseMatrixToSparseTensor

public Output <Long> denseShape ()

SparseTensor dense shape.

public Output <Long> indices ()

SparseTensor indices.

public Output <T> values ()

SparseTensor values.