-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Change lightning module params to dict when loading #1639
Conversation
Hello @cmpute! Thanks for updating this PR. There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2020-04-29 16:36:06 UTC |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🦝
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The tests need to be fixed.
It seems that a lot of the test are not running on the latest commit, how can I request the CI again? |
I have restarted it but it is still failing, see
|
Look at the error message:
It's running an old code, that's weird. |
In the CI test, this is the error reported, however in my branch, the code is actually
Do I have to commit something to make this change take effect? :0 |
I added another commit |
seems to work now :) just the formatting now |
Before submitting
This is a relatively small issue so I directly create a PR without issue.
What does this PR do?
When the checkpoint file is loaded, if lightning module has
hparams
as an argument for__init__
, the hparams in checkpoint file will be fed. However it's fed as a positional argument, which means ifhparams
is not the first parameter for__init__
, it will be loaded in an incorrect way. So this PR changes positional argument to a key-value pair based.