Join the SIG TFX-Addons community and help make TFX even better!


This class invokes the base exporter and a series of rewriters.

base_exporter The exporter of the original model.
rewriter_inst The rewriter instance to invoke. Must inherit from rewriter.BaseRewriter.

name Name of the exporter.



View source

Exports the given Estimator to a specific format.

Performs the export as defined by the base_exporter and invokes all of the specified rewriters.

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 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 is_the_final_export is always False if TrainSpec.max_steps is None.

The string path to the base exported directory or None if export is skipped.

RuntimeError Unable to create a temporary rewrite directory.