Skip to content

Commit

Permalink
Merge pull request #150 from TeamEpochGithub/149-bug-step-in-schedule…
Browse files Browse the repository at this point in the history
…r-is-delayed-by-1

Fix scheduler step delay in torch trainer
  • Loading branch information
tolgakopar authored May 16, 2024
2 parents 221eeb4 + a33ec46 commit 984a786
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion epochalyst/pipeline/model/training/torch_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ def _train_one_epoch(

# Step the scheduler
if self.initialized_scheduler is not None:
self.initialized_scheduler.step(epoch=epoch)
self.initialized_scheduler.step(epoch=epoch + 1)

# Remove the cuda cache
torch.cuda.empty_cache()
Expand Down

0 comments on commit 984a786

Please sign in to comment.