# tf.config.experimental.enable_mlir_graph_optimization

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.7.4/tensorflow/python/framework/config.py#L894-L908) |

Enables experimental MLIR-Based TensorFlow Compiler Optimizations.

#### View aliases


**Compat aliases for migration**

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

\`tf.compat.v1.config.experimental.enable_mlir_graph_optimization\`

<br />

    tf.config.experimental.enable_mlir_graph_optimization()

DO NOT USE, DEV AND TESTING ONLY AT THE MOMENT.

> [!NOTE]
> **Note:** MLIR-Based TensorFlow Compiler is under active development and has missing features, please refrain from using. This API exists for development and testing only.

TensorFlow Compiler Optimizations are responsible general graph level
optimizations that in the current stack mostly done by Grappler graph
optimizers.