|View source on GitHub|
A class representing a type of model export.
tf.contrib.learn.ExportStrategy( name, export_fn, strip_default_attrs=None )
THIS CLASS IS DEPRECATED. See contrib/learn/README.md for general migration instructions.
Typically constructed by a utility function specific to the exporter, such as
||The directory name under the export base directory where exports of this type will be written.|
A function that writes an export, given an estimator, a
destination path, and optionally a checkpoint path and an evaluation
result for that checkpoint. This export_fn() may be run repeatedly during
continuous training, or just once at the end of fixed-length training.
Note the export_fn() may choose whether or not to export based on the eval
result or based on an internal timer or any other criterion, if exports
are not desired for every checkpoint.
The signature of this function must be one of:
(Optional) Boolean. If set as True, default attrs in
export( estimator, export_path, checkpoint_path=None, eval_result=None )
Exports the given Estimator to a specific format.
||the Estimator to export.|
||A string containing a directory where to write the export.|
||The checkpoint path to export. If None (the default), the strategy may locate a checkpoint (e.g. the most recent) by itself.|
||The output of Estimator.evaluate on this checkpoint. This should be set only if checkpoint_path is provided (otherwise it is unclear which checkpoint this eval refers to).|
|The string path to the exported directory.|
||if the export_fn does not have the required signature|