# tf.mlir.experimental.convert_saved_model_v1

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.14.0/tensorflow/python/compiler/mlir/mlir.py#L115-L149) |

Converts a v1 SavedModel to MLIR module.

#### View aliases


**Compat aliases for migration**

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

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

<br />

    tf.mlir.experimental.convert_saved_model_v1(
        saved_model_path,
        exported_names,
        tags,
        lift_variables,
        include_variables_in_initializers,
        upgrade_legacy=True,
        show_debug_info=False
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `saved_model_path` | Path to SavedModel. |
| `exported_names` | Names to export. |
| `tags` | MetaGraphDef to be loaded is identified by the supplied tags. |
| `lift_variables` | Whether to promote tf.VarHandleOp to resource arguments. |
| `include_variables_in_initializers` | Keeps the variables in initializers before lifting variables. |
| `upgrade_legacy` | Functionalize the input graph before importing. |
| `show_debug_info` | Whether to include locations in the emitted textual form. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A textual representation of the MLIR module corresponding to the SavedModule. ||

<br />