In addition to exporting, this class also garbage collects stale exports.
Args
name
unique name of this Exporter that is going to be used in the
export path.
serving_input_receiver_fn
a function that takes no arguments and returns
a ServingInputReceiver.
assets_extra
An optional dict specifying how to populate the assets.extra
directory within the exported SavedModel. Each key should give the
destination path (including the filename) relative to the assets.extra
directory. The corresponding value gives the full path of the source
file to be copied. For example, the simple case of copying a single
file without renaming it is specified as
{'my_asset_file.txt': '/path/to/my_asset_file.txt'}.
as_text
whether to write the SavedModel proto in text format. Defaults to
False.
exports_to_keep
Number of exports to keep. Older exports will be
garbage-collected. Defaults to 5. Set to None to disable garbage
collection.
Raises
ValueError
if any arguments is invalid.
Attributes
name
Directory name.
A directory name under the export base directory where exports of
this type are written. Should not be None nor empty.
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_evaluateis_the_final_export is always False if TrainSpec.max_steps is
None.
Returns
The string path to the exported directory or None if export is skipped.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-10-06 UTC."],[],[]]