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

DenseToCSRSparseMatrix

public final class DenseToCSRSparseMatrix

Converts a dense tensor to a (possibly batched) CSRSparseMatrix.

Constants

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

Public Methods

Output < TType >
asOutput ()
Returns the symbolic handle of the tensor.
static DenseToCSRSparseMatrix
create ( Scope scope, Operand <? extends TType > denseInput, Operand < TInt64 > indices)
Factory method to create a class wrapping a new DenseToCSRSparseMatrix operation.
Output <?>
sparseOutput ()
A (possibly batched) CSRSparseMatrix.

Inherited Methods

Constants

public static final String OP_NAME

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

Constant Value: "DenseToCSRSparseMatrix"

Public Methods

public Output < TType > asOutput ()

Returns the symbolic handle of the tensor.

Inputs to TensorFlow operations are outputs of another TensorFlow operation. This method is used to obtain a symbolic handle that represents the computation of the input.

public static DenseToCSRSparseMatrix create ( Scope scope, Operand <? extends TType > denseInput, Operand < TInt64 > indices)

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

Parameters
scope current scope
denseInput A Dense tensor.
indices Indices of nonzero elements.
Returns
  • a new instance of DenseToCSRSparseMatrix

public Output <?> sparseOutput ()

A (possibly batched) CSRSparseMatrix.