Skip to content

Commit

Permalink
switched model saving to absolute path
Browse files Browse the repository at this point in the history
  • Loading branch information
M-R-Schaefer committed Dec 27, 2023
1 parent 2f44651 commit ecd2759
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apax/train/checkpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ class CheckpointManager:
def __init__(self) -> None:
self.async_manager = checkpoints.AsyncManager()

def save_checkpoint(self, ckpt, epoch: int, path: str) -> None:
def save_checkpoint(self, ckpt, epoch: int, path: Path) -> None:
checkpoints.save_checkpoint(
ckpt_dir=path,
ckpt_dir=path.resolve(),
target=ckpt,
step=epoch,
overwrite=True,
Expand Down

0 comments on commit ecd2759

Please sign in to comment.