Skip to content

Commit

Permalink
Fix typo in error message when unexpected best_mode passed in to ch…
Browse files Browse the repository at this point in the history
…eckpoint manager.

PiperOrigin-RevId: 713812053
  • Loading branch information
haoyuz authored and Orbax Authors committed Jan 9, 2025
1 parent 9899e97 commit 21b9939
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion checkpoint/orbax/checkpoint/checkpoint_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ def __post_init__(self):
if self.best_mode not in ('min', 'max'):
msg = (
"`CheckpointManagerOptions.best_mode` must be one of None, 'min' "
"or 'max'. Got {self.dtype}."
f"or 'max'. Got {self.best_mode}."
)
raise ValueError(msg)
if self.max_to_keep is not None and self.max_to_keep < 0:
Expand Down

0 comments on commit 21b9939

Please sign in to comment.