Commit 59c6bdb3 authored by A. Unique TensorFlower's avatar A. Unique TensorFlower
Browse files

Internal change

PiperOrigin-RevId: 354647274
parent 6559ed14
...@@ -108,7 +108,7 @@ class BestCheckpointExporter: ...@@ -108,7 +108,7 @@ class BestCheckpointExporter:
# Saving the best checkpoint might be interrupted if the job got killed. # Saving the best checkpoint might be interrupted if the job got killed.
for file_to_remove in tf.io.gfile.glob(self.best_ckpt_path + '*'): for file_to_remove in tf.io.gfile.glob(self.best_ckpt_path + '*'):
tf.io.gfile.remove(file_to_remove) tf.io.gfile.remove(file_to_remove)
checkpoint.save(self.best_ckpt_path) checkpoint.write(self.best_ckpt_path)
@property @property
def best_ckpt_logs(self): def best_ckpt_logs(self):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment