-
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
added override for hparams in load_from_ckpt #1797
Conversation
This doesn't work, if Meaning if I have original hparams like
IMO we could think about flattening the hpramas dict on save and reverse this on load to support this, but this would require some more changes... |
good point. i guess we can support replacing the nested hparams by passing nested updates here? match key by key within the tree |
Should work and probably is the same effort as having to flatten the dict. |
you mean in the setter for hparams in the pl module? |
Yes maybe and also save it flattened (then you could acess the entries with something like |
@Borda is this how we get doc tests? |
@justusschock but if we flatten for the user it might be unexpected no?
|
What do you mean? |
I added the >>> on the docs. |
it depends in it is python file, you do not need anything extra
then all these are detected automatically and executed as well as other standard tests |
Co-authored-by: Adrian Wälchli <[email protected]>
This pull request is now in conflict... :( |
Codecov Report
@@ Coverage Diff @@
## master #1797 +/- ##
======================================
Coverage 88% 88%
======================================
Files 71 71
Lines 4394 4404 +10
======================================
+ Hits 3862 3871 +9
- Misses 532 533 +1 |
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
Fixes #1474
Enable the following... (ran into a bunch of issues with transfer learning when moving across clusters)... ugh.
I think @tullie has suggested something like this?