# tf.raw_ops.GetOptions

<br />

Returns the [`tf.data.Options`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/data/Options) attached to `input_dataset`.

#### View aliases


**Compat aliases for migration**

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

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

<br />

    tf.raw_ops.GetOptions(
        input_dataset, name=None
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `input_dataset` | A `Tensor` of type `variant`. A variant tensor representing the input dataset. |
| `name` | A name for the operation (optional). |

<br />

<br />

<br />

<br />

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

<br />