V2 format specific: merges the metadata files of sharded checkpoints.
tf.raw_ops.MergeV2Checkpoints(
checkpoint_prefixes,
destination_prefix,
delete_old_dirs=True,
allow_missing_files=False,
name=None
)
The
result is one logical checkpoint, with one physical metadata file and renamed data files.
Intended for "grouping" multiple checkpoints in a sharded checkpoint setup.
If delete_old_dirs is true, attempts to delete recursively the dirname of each path in the input checkpoint_prefixes. This is useful when those paths are non user-facing temporary locations.
If allow_missing_files is true, merges the checkpoint prefixes as long as at least one file exists. Otherwise, if no files exist, an error will be thrown. The default value for allow_missing_files is false.
Returns | |
---|---|
The created Operation. |