diff --git a/tensorflow/python/training/checkpoint_management.py b/tensorflow/python/training/checkpoint_management.py index f745ab4824a..a7ad1f70e5e 100644 --- a/tensorflow/python/training/checkpoint_management.py +++ b/tensorflow/python/training/checkpoint_management.py @@ -56,10 +56,6 @@ def _GetCheckpointFilename(save_dir, latest_filename): return os.path.join(save_dir, latest_filename) -@deprecation.deprecated( - date=None, - instructions=("Use tf.train.CheckpointManager to manage checkpoints rather " - "than editing the Checkpoint proto manually.")) @tf_export(v1=["train.generate_checkpoint_state_proto"]) def generate_checkpoint_state_proto(save_dir, model_checkpoint_path, diff --git a/tensorflow/python/training/checkpointable/util.py b/tensorflow/python/training/checkpointable/util.py index a54f41a54fa..ce1b9c6fc5a 100644 --- a/tensorflow/python/training/checkpointable/util.py +++ b/tensorflow/python/training/checkpointable/util.py @@ -1863,7 +1863,7 @@ class Checkpoint(tracking.Checkpointable): checkpoint_number = assign_op.numpy() file_path = self.write("%s-%d" % (file_prefix, checkpoint_number), session=session) - checkpoint_management.update_checkpoint_state( + checkpoint_management.update_checkpoint_state_internal( save_dir=os.path.dirname(file_prefix), model_checkpoint_path=file_path, all_model_checkpoint_paths=[file_path])