-
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
test pickling #1636
test pickling #1636
Conversation
Hello @williamFalcon! Thanks for updating this PR. There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2020-04-27 12:47:28 UTC |
Codecov Report
@@ Coverage Diff @@
## master #1636 +/- ##
======================================
Coverage 89% 89%
======================================
Files 71 71
Lines 4171 4174 +3
======================================
+ Hits 3696 3699 +3
Misses 475 475 |
fix hparams issue cache cache cache cache ddp pickle ddp pickle ddp pickle ddp pickle ddp pickle ddp pickle ddp pickle ddp fix pep8
the tests should also cover unpickling to verify that everything is reloaded properly |
@@ -57,6 +57,7 @@ def __init__(self, monitor: str = 'val_loss', min_delta: float = 0.0, patience: | |||
self.min_delta = min_delta | |||
self.wait = 0 | |||
self.stopped_epoch = 0 | |||
self.mode = mode | |||
|
|||
mode_dict = { |
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.
don't like that this mode_dict
is defined in two places now..
mind send followup PR? 🐰 |
Pickling seems to be a problem more frequently. Tests added to test the API for pickling.