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 hparams loading for model that accepts *args #2911

Merged
merged 6 commits into from
Aug 12, 2020

Conversation

awaelchli
Copy link
Contributor

@awaelchli awaelchli commented Aug 11, 2020

What does this PR do?

Fixes #2909

The test case I added fails on master.

Before submitting

  • Was this discussed/approved via a Github issue? (no need for typos and docs improvements)
  • 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? Otherwise, we ask you to create a separate PR for every change.
  • Did you make sure to update the documentation with your changes?
  • Did you write any new necessary tests?
  • Did you verify new and existing tests pass locally with your changes?
  • If you made a notable change (that affects users), did you update the CHANGELOG?

PR review

Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.

Did you have fun?

Make sure you had fun coding 🙃

@awaelchli awaelchli added the bug Something isn't working label Aug 11, 2020
@codecov
Copy link

codecov bot commented Aug 11, 2020

Codecov Report

Merging #2911 into master will increase coverage by 0%.
The diff coverage is 100%.

@@          Coverage Diff           @@
##           master   #2911   +/-   ##
======================================
  Coverage      90%     90%           
======================================
  Files          80      80           
  Lines        7484    7422   -62     
======================================
- Hits         6751    6708   -43     
+ Misses        733     714   -19     

@pep8speaks
Copy link

pep8speaks commented Aug 11, 2020

Hello @awaelchli! Thanks for updating this PR.

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2020-08-12 13:58:30 UTC

@awaelchli awaelchli marked this pull request as ready for review August 11, 2020 08:39
@mergify mergify bot requested a review from a team August 11, 2020 08:39
@awaelchli awaelchli changed the title fix hparams loading for model that accepts *args [wip] fix hparams loading for model that accepts *args Aug 11, 2020
@awaelchli awaelchli changed the title [wip] fix hparams loading for model that accepts *args Fix hparams loading for model that accepts *args Aug 11, 2020
Copy link
Member

@Borda Borda left a comment

Choose a reason for hiding this comment

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

LGTM :]

@mergify mergify bot requested a review from a team August 11, 2020 23:14
@Borda Borda added the ready PRs ready to be merged label Aug 11, 2020
@Borda Borda added this to the 0.9.0 milestone Aug 11, 2020
@mergify
Copy link
Contributor

mergify bot commented Aug 11, 2020

This pull request is now in conflict... :(

@williamFalcon williamFalcon merged commit 411914b into master Aug 12, 2020
@awaelchli awaelchli deleted the bugfix/hparams-varargs branch August 12, 2020 14:01
ameliatqy pushed a commit to ameliatqy/pytorch-lightning that referenced this pull request Aug 17, 2020
* fix hparams loading for model that accepts *args

* add test case

* changelog

* pep

* fix test

Co-authored-by: William Falcon <waf2107@columbia.edu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ready PRs ready to be merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

load_from_checkpoint: TypeError: __init__() missing 1 required positional argument
4 participants