Skip to content

Commit

Permalink
Do not raise an error when a checkpoint path doesn't exist
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 731451478
  • Loading branch information
Orbax Authors committed Feb 26, 2025
1 parent c69a872 commit 78001fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion checkpoint/orbax/checkpoint/_src/path/step.py
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,8 @@ def is_tmp_checkpoint(path: epath.PathLike) -> bool:
"""Determines whether a directory is a tmp checkpoint path."""
path = epath.Path(path)
if not path.exists():
raise ValueError(f'Path {path} does not exist.')
logging.warning('Path %s does not exist.', path)
return False
if not path.is_dir():
return False
if is_gcs_path(path) and not (path / _COMMIT_SUCCESS_FILE).exists():
Expand Down

0 comments on commit 78001fa

Please sign in to comment.