Skip to content

Commit

Permalink
Add methods required by interface to PyGrainCheckpointHandler.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 575646928
  • Loading branch information
Keunhong Park authored and copybara-github committed Oct 22, 2023
1 parent 75f6194 commit 8f20bf6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions grain/_src/python/checkpoint_handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,15 @@ def restore(
def structure(self, directory: epath.Path) -> Any:
del directory
return None

# Required by interface.

def metadata(self, directory: epath.Path) -> Optional[Any]:
del directory
return None

def finalize(self, directory: epath.Path):
pass

def close(self):
pass

0 comments on commit 8f20bf6

Please sign in to comment.