tf.compat.v1.train.generate_checkpoint_state_proto
Stay organized with collections
Save and categorize content based on your preferences.
Generates a checkpoint state proto.
tf.compat.v1.train.generate_checkpoint_state_proto(
save_dir,
model_checkpoint_path,
all_model_checkpoint_paths=None,
all_model_checkpoint_timestamps=None,
last_preserved_timestamp=None
)
Args |
save_dir
|
Directory where the model was saved.
|
model_checkpoint_path
|
The checkpoint file.
|
all_model_checkpoint_paths
|
List of strings. Paths to all not-yet-deleted
checkpoints, sorted from oldest to newest. If this is a non-empty list,
the last element must be equal to model_checkpoint_path. These paths
are also saved in the CheckpointState proto.
|
all_model_checkpoint_timestamps
|
A list of floats, indicating the number of
seconds since the Epoch when each checkpoint was generated.
|
last_preserved_timestamp
|
A float, indicating the number of seconds since
the Epoch when the last preserved checkpoint was written, e.g. due to a
keep_checkpoint_every_n_hours parameter (see
tf.train.CheckpointManager for an implementation).
|
Returns |
CheckpointState proto with model_checkpoint_path and
all_model_checkpoint_paths updated to either absolute paths or
relative paths to the current save_dir.
|
Raises |
ValueError
|
If all_model_checkpoint_timestamps was provided but its length
does not match all_model_checkpoint_paths .
|
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 2024-04-26 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 2024-04-26 UTC."],[],[]]