# tf.estimator.Exporter

<br />

|---|---|
| [![](https://www.tensorflow.org/images/tf_logo_32px.png) TensorFlow 2 version](https://www.tensorflow.org/api_docs/python/tf/estimator/Exporter) | [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/estimator/tree/master/tensorflow_estimator/python/estimator/exporter.py) |

A class representing a type of model export.

#### View aliases


**Compat aliases for migration**

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

[`tf.compat.v1.estimator.Exporter`](https://www.tensorflow.org/api_docs/python/tf/estimator/Exporter), \`tf.compat.v2.estimator.Exporter\`

<br />

<br />

<br />

<br />

| ## Attributes ||
|---|---|
| `name` | Directory name. <br /> A directory name under the export base directory where exports of this type are written. Should not be `None` nor empty. |

<br />

## Methods

### `export`

[View source](https://github.com/tensorflow/estimator/tree/master/tensorflow_estimator/python/estimator/exporter.py)

    @abc.abstractmethod
    export(
        estimator, export_path, checkpoint_path, eval_result, is_the_final_export
    )

Exports the given `Estimator` to a specific format.

<br />

<br />

<br />

| Args ||
|---|---|
| `estimator` | the `Estimator` to export. |
| `export_path` | A string containing a directory where to write the export. |
| `checkpoint_path` | The checkpoint path to export. |
| `eval_result` | The output of [`Estimator.evaluate`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/estimator/Estimator#evaluate) on this checkpoint. |
| `is_the_final_export` | This boolean is True when this is an export in the end of training. It is False for the intermediate exports during the training. When passing `Exporter` to [`tf.estimator.train_and_evaluate`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/estimator/train_and_evaluate) `is_the_final_export` is always False if [`TrainSpec.max_steps`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/estimator/TrainSpec#max_steps) is `None`. |

<br />

<br />

<br />

<br />

| Returns ||
|---|---|
| The string path to the exported directory or `None` if export is skipped. ||

<br />