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

fix reinit_schedulers with correct optimizer #5519

Merged
merged 10 commits into from
Jan 15, 2021
Merged

Conversation

rohitgr7
Copy link
Contributor

@rohitgr7 rohitgr7 commented Jan 14, 2021

What does this PR do?

When schedulers are reinitialized while using apex, all of them are initialized with the last optimizer in trainer.optimizers. Updated the test which fails on master.

Before submitting

  • Was this discussed/approved via a GitHub issue? (not for typos and docs)
  • Did you read the contributor guideline, Pull Request section?
  • Did you make sure your PR does only one thing, instead of bundling different changes together?
  • Did you make sure to update the documentation with your changes? (if necessary)
  • Did you write any new necessary tests? (not for typos and docs)
  • Did you verify new and existing tests pass locally with your changes?
  • Did you update the CHANGELOG? (not for typos, docs, test updates, or internal minor changes/refactorings)

PR review

Anyone in the community is free to review the PR once the tests have passed.
Before you start reviewing make sure you have read Review guidelines. In short, see the following bullet-list:

  • Is this pull request ready for review? (if not, please submit in draft mode)
  • Check that all items from Before submitting are resolved
  • Make sure the title is self-explanatory and the description concisely explains the PR
  • Add labels and milestones (and optionally projects) to the PR so it can be classified
  • Check that target branch and milestone match!

Did you have fun?

Make sure you had fun coding 🙃

@codecov
Copy link

codecov bot commented Jan 15, 2021

Codecov Report

Merging #5519 (2964a99) into master (d62ca82) will increase coverage by 0%.
The diff coverage is 100%.

@@          Coverage Diff           @@
##           master   #5519   +/-   ##
======================================
  Coverage      93%     93%           
======================================
  Files         135     135           
  Lines       10006   10007    +1     
======================================
+ Hits         9329    9341   +12     
+ Misses        677     666   -11     

@rohitgr7 rohitgr7 marked this pull request as ready for review January 15, 2021 13:53
@rohitgr7 rohitgr7 added the bug Something isn't working label Jan 15, 2021
@rohitgr7 rohitgr7 added this to the 1.1.x milestone Jan 15, 2021
@rohitgr7 rohitgr7 changed the title try fix reinit_schedulers fix reinit_schedulers with correct optimizer Jan 15, 2021
Copy link
Contributor

@tchaton tchaton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM !

@rohitgr7 rohitgr7 merged commit 7f352cb into master Jan 15, 2021
@rohitgr7 rohitgr7 deleted the bugfix/reinit_scheds branch January 15, 2021 15:22
awaelchli added a commit to awaelchli/pytorch-lightning that referenced this pull request Jan 24, 2021
awaelchli added a commit to awaelchli/pytorch-lightning that referenced this pull request Jan 24, 2021
fix


x


x


x


model


test


undo


dp


add todo


fix reinit_schedulers with correct optimizer (Lightning-AI#5519)

this is a cherry pick from master
boring model


lr


try


x


forward call
Borda pushed a commit that referenced this pull request Feb 4, 2021
* update test

* syntax

* fix

* update test

* scheduler

* only apex

* fix

* rev drone

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

Successfully merging this pull request may close these issues.

4 participants