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

Apply untoggle_optimizer when result is None #5738

Closed
wants to merge 0 commits into from

Conversation

deng-cy
Copy link
Contributor

@deng-cy deng-cy commented Feb 1, 2021

What does this PR do?

Fixes #5723.

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 Feb 1, 2021

Codecov Report

Merging #5738 (c6b1a72) into master (2036318) will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff           @@
##           master   #5738   +/-   ##
======================================
  Coverage      93%     93%           
======================================
  Files         134     134           
  Lines       10059   10059           
======================================
  Hits         9394    9394           
  Misses        665     665           

@carmocca
Copy link
Contributor

carmocca commented Feb 1, 2021

Can you write a test that fails without the changes here?

@deng-cy
Copy link
Contributor Author

deng-cy commented Feb 2, 2021

Can you write a test that fails without the changes here?

I have some difficulty to find relevant test files. Is there any test when training_step returns None? I can start to work from there.

@Borda Borda added this to the 1.1.x milestone Feb 2, 2021
@Borda Borda added the bug Something isn't working label Feb 2, 2021
@Borda Borda changed the base branch from master to release/1.2-dev February 8, 2021 12:12
@Borda Borda modified the milestones: 1.1.x, 1.2 Feb 8, 2021
@Borda
Copy link
Member

Borda commented Feb 8, 2021

@deng-cy there won't be any more releases in 1.1.x so I have changed your destination branch to feat 1.2
pls, there is no need to close this PR, just rebase on the target branch, or maybe easier just cherry-pick the commit (@kaushikb11 will help you if needed)

@mergify mergify bot added the has conflicts label Feb 8, 2021
@edenlightning edenlightning modified the milestones: 1.2, 1.2.x Feb 8, 2021
Base automatically changed from release/1.2-dev to master February 11, 2021 14:32
@tchaton
Copy link
Contributor

tchaton commented Feb 15, 2021

Hey @deng-cy,

Moved your commits to this PR: #5983

I applied a git reset --hard origin/master && git push -f and GitHub closed the PR :)
I didn't manage to reopen it.

I apologise for this.

Best,
T.C

@Borda
Copy link
Member

Borda commented Feb 15, 2021

@tchaton any reason for closing?

@kaushikb11
Copy link
Contributor

@Borda #5983

@deng-cy
Copy link
Contributor Author

deng-cy commented Feb 15, 2021

Sorry I have been too busy recently to write a test case for this. Thanks for the new PR. I will look into details as soon as possible.

@Borda Borda modified the milestones: 1.2.x, 1.2 Feb 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working has conflicts
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrong requires_grad state after return None with multiple optimizers
6 participants