<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.21.0/tensorflow/python/data/ops/options.py#L30-L85) |

Represents the type of autotuning algorithm to use.

#### View aliases


**Compat aliases for migration**

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

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

<br />

DEFAULT: The default behavior is implementation specific and may change over
time.

HILL_CLIMB: In each optimization step, this algorithm chooses the optimal
parameter and increases its value by 1.

GRADIENT_DESCENT: In each optimization step, this algorithm updates the
parameter values in the optimal direction.

MAX_PARALLELISM: Similar to HILL_CLIMB but uses a relaxed stopping condition,
allowing the optimization to oversubscribe the CPU.

STAGE_BASED: In each optimization step, this algorithm chooses the worst
bottleneck parameter and increases its value by 1.

<br />

<br />

<br />

| ## Class Variables ||
|---|---|
| DEFAULT | `<AutotuneAlgorithm.DEFAULT: 0>` |
| GRADIENT_DESCENT | `<AutotuneAlgorithm.GRADIENT_DESCENT: 2>` |
| HILL_CLIMB | `<AutotuneAlgorithm.HILL_CLIMB: 1>` |
| MAX_PARALLELISM | `<AutotuneAlgorithm.MAX_PARALLELISM: 3>` |
| STAGE_BASED | `<AutotuneAlgorithm.STAGE_BASED: 4>` |

<br />