A class representing a type of model export.
View aliases
Compat aliases for migration
See Migration guide for more details.
Attributes | |
---|---|
name
|
Directory name.
A directory name under the export base directory where exports of
this type are written. Should not be |
Methods
export
@abc.abstractmethod
export( estimator, export_path, checkpoint_path, eval_result, is_the_final_export )
Exports the given Estimator
to a specific format.
Args | |
---|---|
estimator
|
the Estimator to export.
|
export_
|
A string containing a directory where to write the export. |
checkpoint_
|
The checkpoint path to export. |
eval_
|
The output of Estimator.evaluate on this checkpoint.
|
is_
|
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_ is always False if TrainSpec.max_steps is
None .
|
Returns | |
---|---|
The string path to the exported directory or None if export is skipped.
|