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

org.tensorflow.op.PrimitiveOp
final boolean
equals(Object obj)
final int
Operation
op()
Returns the underlying Operation
final String
boolean
equals(Object arg0)
final Class<?>
getClass()
int
hashCode()
final void
notify()
final void
notifyAll()
String
toString()
final void
wait(long arg0, int arg1)
final void
wait(long arg0)
final void
wait()

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.