Skip to content

Commit

Permalink
Fix bug in lr scheduler configure
Browse files Browse the repository at this point in the history
  • Loading branch information
EnricoTrizio committed Jan 12, 2024
1 parent 04596c2 commit 911f3ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mlcolvar/cvs/cv.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def configure_optimizers(self):
if self.lr_scheduler_kwargs:
scheduler_cls = self.lr_scheduler_kwargs['scheduler']
scheduler_kwargs = {k: v for k, v in self.lr_scheduler_kwargs.items() if k != 'scheduler'}
lr_scheduler = scheduler_cls(**scheduler_kwargs)
lr_scheduler = scheduler_cls(optimizer, **scheduler_kwargs)
return [optimizer] , [lr_scheduler]
else:
return optimizer
Expand Down

0 comments on commit 911f3ef

Please sign in to comment.