# tf.raw_ops.CSRSparseMatrixToSparseTensor

<br />

Converts a (possibly batched) CSRSparesMatrix to a SparseTensor.

#### View aliases


**Compat aliases for migration**

See
[Migration guide](https://www.tensorflow.org/guide/migrate) for
more details.

[`tf.compat.v1.raw_ops.CSRSparseMatrixToSparseTensor`](https://www.tensorflow.org/api_docs/python/tf/raw_ops/CSRSparseMatrixToSparseTensor)

<br />

    tf.raw_ops.CSRSparseMatrixToSparseTensor(
        sparse_matrix, type, name=None
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `sparse_matrix` | A `Tensor` of type `variant`. A (possibly batched) CSRSparseMatrix. |
| `type` | A [`tf.DType`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/dtypes/DType) from: `tf.float32, tf.float64, tf.complex64, tf.complex128`. |
| `name` | A name for the operation (optional). |

<br />

<br />

| ## Returns ||
|---|---|
| A tuple of `Tensor` objects (indices, values, dense_shape). ||
| `indices` | A `Tensor` of type `int64`. |
| `values` | A `Tensor` of type `type`. |
| `dense_shape` | A `Tensor` of type `int64`. |

<br />