Skip to content

Commit

Permalink
add .pt
Browse files Browse the repository at this point in the history
Signed-off-by: Matteo Bettini <[email protected]>
  • Loading branch information
matteobettini committed Sep 14, 2023
1 parent c7335e2 commit 60051e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmarl/experiment/experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ def load_state_dict(self, state_dict: Dict) -> None:
def save_trainer(self) -> None:
checkpoint_folder = self.folder_name / "checkpoints"
checkpoint_folder.mkdir(parents=False, exist_ok=True)
checkpoint_file = checkpoint_folder / f"checkpoint_{self.n_iters_performed}"
checkpoint_file = checkpoint_folder / f"checkpoint_{self.n_iters_performed}.pt"
torch.save(self.state_dict(), checkpoint_file)

def load_trainer(self) -> Experiment:
Expand Down

0 comments on commit 60051e6

Please sign in to comment.