Skip to content

Commit

Permalink
Internal change.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 650662108
  • Loading branch information
cpgaffney1 authored and Orbax Authors committed Jul 9, 2024
1 parent a48cc4c commit 1e06498
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion checkpoint/orbax/checkpoint/type_handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -627,8 +627,9 @@ def check_input_arguments(*args):
raise ValueError('Found input args with mismatched lengths.')


def is_ocdbt_checkpoint(path: epath.Path) -> bool:
def is_ocdbt_checkpoint(path: epath.PathLike) -> bool:
"""Determines whether a checkpoint uses OCDBT format."""
path = epath.Path(path)
return (path / _OCDBT_MANIFEST_FILE).exists()


Expand Down

0 comments on commit 1e06498

Please sign in to comment.