Skip to content

Commit

Permalink
Update checkpointer.py
Browse files Browse the repository at this point in the history
  • Loading branch information
vturrisi committed Jun 18, 2024
1 parent 3d58244 commit ccdba0b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions solo/utils/checkpointer.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,12 @@ def on_train_epoch_end(self, trainer: pl.Trainer, _):
if epoch % self.frequency == 0:
self.save(trainer)

def on_train_epoch_end(self, *args, **kwargs):
"""Saves model at the end of training. """
def on_train_end(self, trainer: pl.
Trainer, _):
"""Saves model at the end of training.
Args:
trainer (pl.Trainer): pytorch lightning trainer object.
"""

self.save(trainer)

0 comments on commit ccdba0b

Please sign in to comment.