mirror of
https://github.com/wassname/ray.git
synced 2026-08-07 11:27:43 +08:00
[tune] fix pbt checkpoint_freq (#9517)
* Only delete old checkpoint if it is not the same as the new one * Return early if old checkpoint value coincides with new checkpoint value Co-authored-by: Kai Fricke <kai@anyscale.com>
This commit is contained in:
@@ -109,6 +109,10 @@ class CheckpointManager:
|
||||
return
|
||||
|
||||
old_checkpoint = self.newest_persistent_checkpoint
|
||||
|
||||
if old_checkpoint.value == checkpoint.value:
|
||||
return
|
||||
|
||||
self.newest_persistent_checkpoint = checkpoint
|
||||
|
||||
# Remove the old checkpoint if it isn't one of the best ones.
|
||||
|
||||
Reference in New Issue
Block a user