# tf.data.experimental.MapVectorizationOptions

<br />

|---|---|
| [![](https://www.tensorflow.org/images/tf_logo_32px.png) TensorFlow 1 version](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/data/experimental/MapVectorizationOptions) | [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.1.0/tensorflow/python/data/experimental/ops/optimization_options.py#L28-L56) |

Represents options for the MapVectorization optimization.

#### View aliases


**Compat aliases for migration**

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

[`tf.compat.v1.data.experimental.MapVectorizationOptions`](https://www.tensorflow.org/api_docs/python/tf/data/experimental/MapVectorizationOptions)

<br />

    tf.data.experimental.MapVectorizationOptions()

<br />

<br />

<br />

| ## Attributes ||
|---|---|
| `enabled` | Whether to vectorize map transformations. If None, defaults to False. |
| `use_choose_fastest` | Whether to use ChooseFastestBranchDataset with this transformation. If True, the pipeline picks between the vectorized and original segment at runtime based on their iterations speed. If None, defaults to False. |

<br />

## Methods

### `__eq__`

[View source](https://github.com/tensorflow/tensorflow/blob/v2.1.0/tensorflow/python/data/util/options.py#L37-L43)

    __eq__(
        other
    )

Return self==value.

### `__ne__`

[View source](https://github.com/tensorflow/tensorflow/blob/v2.1.0/tensorflow/python/data/util/options.py#L45-L49)

    __ne__(
        other
    )

Return self!=value.