# tf.raw_ops.RegisterDataset

<br />

Registers a dataset with the tf.data service.

#### View aliases


**Compat aliases for migration**

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

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

<br />

    tf.raw_ops.RegisterDataset(
        dataset,
        address,
        protocol,
        external_state_policy,
        element_spec='',
        metadata='',
        name=None
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `dataset` | A `Tensor` of type `variant`. |
| `address` | A `Tensor` of type `string`. |
| `protocol` | A `Tensor` of type `string`. |
| `external_state_policy` | An `int`. |
| `element_spec` | An optional `string`. Defaults to `""`. |
| `metadata` | An optional `string`. Defaults to `""`. |
| `name` | A name for the operation (optional). |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A `Tensor` of type `int64`. ||

<br />