This updates the checkpoint file containing a CheckpointState
proto.
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.
latest_filename
Optional name of the checkpoint file. Default to
'checkpoint'.
all_model_checkpoint_timestamps
Optional list of timestamps (floats,
seconds since the Epoch) indicating when the checkpoints in
all_model_checkpoint_paths were created.
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.contrib.checkpoint.CheckpointManager for an implementation).
Raises
RuntimeError
If any of the model checkpoint paths conflict with the file
containing CheckpointSate.
[null,null,["Last updated 2020-10-01 UTC."],[],[],null,["# tf.train.update_checkpoint_state\n\n\u003cbr /\u003e\n\n|----------------------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/python/training/checkpoint_management.py#L124-L167) |\n\nUpdates the content of the 'checkpoint' file. (deprecated)\n\n#### View aliases\n\n\n**Compat aliases for migration**\n\nSee\n[Migration guide](https://www.tensorflow.org/guide/migrate) for\nmore details.\n\n[`tf.compat.v1.train.update_checkpoint_state`](/api_docs/python/tf/compat/v1/train/update_checkpoint_state)\n\n\u003cbr /\u003e\n\n tf.train.update_checkpoint_state(\n save_dir, model_checkpoint_path, all_model_checkpoint_paths=None,\n latest_filename=None, all_model_checkpoint_timestamps=None,\n last_preserved_timestamp=None\n )\n\n| **Warning:** THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Use [`tf.train.CheckpointManager`](../../tf/train/CheckpointManager) to manage checkpoints rather than manually editing the Checkpoint proto.\n\nThis updates the checkpoint file containing a CheckpointState\nproto.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|-----------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `save_dir` | Directory where the model was saved. |\n| `model_checkpoint_path` | The checkpoint file. |\n| `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. |\n| `latest_filename` | Optional name of the checkpoint file. Default to 'checkpoint'. |\n| `all_model_checkpoint_timestamps` | Optional list of timestamps (floats, seconds since the Epoch) indicating when the checkpoints in `all_model_checkpoint_paths` were created. |\n| `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.contrib.checkpoint.CheckpointManager`](../../tf/train/CheckpointManager) for an implementation). |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Raises ------ ||\n|----------------|----------------------------------------------------------------------------------------|\n| `RuntimeError` | If any of the model checkpoint paths conflict with the file containing CheckpointSate. |\n\n\u003cbr /\u003e"]]