tf.raw_ops.MergeV2Checkpoints
Stay organized with collections
Save and categorize content based on your preferences.
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.
Args |
checkpoint_prefixes
|
A Tensor of type string .
prefixes of V2 checkpoints to merge.
|
destination_prefix
|
A Tensor of type string .
scalar. The desired final prefix. Allowed to be the same
as one of the checkpoint_prefixes.
|
delete_old_dirs
|
An optional bool . Defaults to True . see above.
|
allow_missing_files
|
An optional bool . Defaults to False . see above.
|
name
|
A name for the operation (optional).
|
Returns |
The created Operation.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2023-10-06 UTC.
[[["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."],[],[]]