-
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
Makes automatic optimization a model attribute #4602
Conversation
Hello @justusschock! Thanks for updating this PR. There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2020-11-14 04:04:19 UTC |
…pytorch-lightning into automatic_optimization
Codecov Report
@@ Coverage Diff @@
## master #4602 +/- ##
======================================
Coverage 93% 93%
======================================
Files 117 117
Lines 8914 8921 +7
======================================
+ Hits 8280 8287 +7
Misses 634 634 |
@justusschock able to fix the failing codefactor test? |
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.
Just some comments. Else LGTM.
Co-authored-by: Rohit Gupta <[email protected]>
Co-authored-by: Rohit Gupta <[email protected]>
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!
* Makes automatic optimization a model attribute * Update trainer.py * remove setting property in model * Update pytorch_lightning/core/lightning.py Co-authored-by: Rohit Gupta <[email protected]> * Update pytorch_lightning/trainer/trainer.py Co-authored-by: Rohit Gupta <[email protected]> * Update trainer.py Co-authored-by: Sean Naren <[email protected]> Co-authored-by: Roger Shieh <[email protected]> Co-authored-by: Rohit Gupta <[email protected]> Co-authored-by: Jeff Yang <[email protected]>
@justusschock what do you think about a corresponding setter decorator to easily change this on the module? #5169 |
What does this PR do?
Makes automatic optimisation a model property and deprecates the trainer flag. Fixes #4317
Before submitting
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 in short, see following bullet-list:
Did you have fun?
Make sure you had fun coding 🙃
cc @ananthsub