Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
agosztolai authored Dec 6, 2023
1 parent d423a6b commit b6da468
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MARBLE/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ def load_model(self, loadpath):
self._epoch = checkpoint["epoch"]
self.load_state_dict(checkpoint["model_state_dict"])
self.optimizer_state_dict = checkpoint["optimizer_state_dict"]
if hatattr(self, 'losses'):
if hasattr(self, 'losses'):
self.losses = checkpoint["losses"]

def save_model(self, optimizer, losses, outdir=None, best=False, timestamp=""):
Expand Down

0 comments on commit b6da468

Please sign in to comment.