# tf.raw_ops.ConvertToCooTensor

<br />

#### View aliases


**Compat aliases for migration**

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

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

<br />

    tf.raw_ops.ConvertToCooTensor(
        indices_or_row_splits, values, weights, sample_count, combiner, name=None
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `indices_or_row_splits` | A `Tensor` of type `int32`. |
| `values` | A `Tensor` of type `int32`. |
| `weights` | A `Tensor` of type `float32`. |
| `sample_count` | An `int` that is `>= 1`. |
| `combiner` | A `string`. |
| `name` | A name for the operation (optional). |

<br />

<br />

| ## Returns ||
|---|---|
| A tuple of `Tensor` objects (row_ids, col_ids, gains). ||
| `row_ids` | A `Tensor` of type `int32`. |
| `col_ids` | A `Tensor` of type `int32`. |
| `gains` | A `Tensor` of type `float32`. |

<br />