Skip to content

Commit c07b69c

Browse files
added checkpointer.wait()
1 parent 33f4e66 commit c07b69c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

keras/src/callbacks/orbax_checkpoint.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -468,10 +468,7 @@ def wait_until_finished(self):
468468
checkpoints if there might be pending save operations.
469469
"""
470470
# Wait for any async operations to complete
471-
while self.checkpointer.is_saving_in_progress():
472-
import time
473-
474-
time.sleep(0.1)
471+
self.checkpointer.wait()
475472

476473
def _restore_model_state_from_full_tree(self, state_tree, model=None):
477474
"""Restore model state from full state tree (V1 format)."""

0 commit comments

Comments
 (0)