tf.compat.v1.train.checkpoint_exists | TensorFlow v2.16.1 (original) (raw)
tf.compat.v1.train.checkpoint_exists
Checks whether a V1 or V2 checkpoint exists with the specified prefix. (deprecated)
tf.compat.v1.train.checkpoint_exists(
checkpoint_prefix
)
This is the recommended way to check if a checkpoint exists, since it takes into account the naming difference between V1 and V2 formats.
| Args | |
|---|---|
| checkpoint_prefix | the prefix of a V1 or V2 checkpoint, with V2 taking priority. Typically the result of Saver.save() or that oftf.train.latest_checkpoint(), regardless of sharded/non-sharded or V1/V2. |
| Returns |
|---|
| A bool, true if a checkpoint referred to by checkpoint_prefix exists. |
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.