Have a question? Connect with the community at the TensorFlow Forum Visit Forum

CSRSparseMatrixToSparseTensor

public final class CSRSparseMatrixToSparseTensor

Converts a (possibly batched) CSRSparesMatrix to a SparseTensor.

Constants

String OP_NAME The name of this op, as known by TensorFlow core engine

Public Methods

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

Inherited Methods

Constants

public static final String OP_NAME

The name of this op, as known by TensorFlow core engine

Constant Value: "CSRSparseMatrixToSparseTensor"

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 < TInt64 > denseShape ()

SparseTensor dense shape.

public Output < TInt64 > indices ()

SparseTensor indices.

public Output <T> values ()

SparseTensor values.