We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33f4e66 commit d7884efCopy full SHA for d7884ef
keras/src/callbacks/orbax_checkpoint.py
@@ -468,10 +468,14 @@ def wait_until_finished(self):
468
checkpoints if there might be pending save operations.
469
"""
470
# Wait for any async operations to complete
471
- while self.checkpointer.is_saving_in_progress():
472
- import time
+ try:
+ self.checkpointer.wait()
473
+ except AttributeError:
474
+ # Fallback for older Orbax versions that don't have wait() method
475
+ while self.checkpointer.is_saving_in_progress():
476
+ import time
477
- time.sleep(0.1)
478
+ time.sleep(0.1)
479
480
def _restore_model_state_from_full_tree(self, state_tree, model=None):
481
"""Restore model state from full state tree (V1 format)."""
0 commit comments