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

org.tensorflow.op.RawOp
final boolean
equals(Object obj)
final int
Operation
op()
Return this unit of computation as a single 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()
org.tensorflow.op.Op
abstract ExecutionEnvironment
env()
Return the execution environment this op was created in.
abstract Operation
op()
Return this unit of computation as a single Operation.

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.