Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LR Schedulers shouldn't get epoch argument in step function #708

Closed
felixkreuk opened this issue Jan 18, 2020 · 4 comments · Fixed by #890
Closed

LR Schedulers shouldn't get epoch argument in step function #708

felixkreuk opened this issue Jan 18, 2020 · 4 comments · Fixed by #890
Assignees
Labels
bug Something isn't working good first issue Good for newcomers
Milestone

Comments

@felixkreuk
Copy link

🐛 Bug

PyTorch LR schedulers now shouldn't get any arguments in step function, see here and here.

Looks like the calls in PytorchLightning are not in line with the new interface, see here.

This results in unexpected LR changes. Removing the epoch argument from step call solves the issue for me.

Environment

PyTorch 1.4
PyTorchLightning 0.5.3.2

@felixkreuk felixkreuk added the bug Something isn't working label Jan 18, 2020
@williamFalcon
Copy link
Contributor

good catch. we need to keep it backward compatible though

@Borda
Copy link
Member

Borda commented Jan 18, 2020

We shall catch it with a test...

@williamFalcon
Copy link
Contributor

@Borda want to submit PR for this?

@williamFalcon
Copy link
Contributor

@felixkreuk want to submit a PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants