-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Add enable_progress_bar to Trainer constructor
#9664
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
Add enable_progress_bar to Trainer constructor
#9664
Conversation
…ning into refresh_rate
awaelchli
left a comment
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.
we would need one more follow up to also update the occurrences in the docs
|
@awaelchli added it to this PR! |
Codecov Report
@@ Coverage Diff @@
## master #9664 +/- ##
======================================
Coverage 89% 89%
======================================
Files 179 179
Lines 15329 15331 +2
======================================
+ Hits 13603 13605 +2
Misses 1726 1726 |
Borda
left a comment
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.
missing test for raising deprecation warning
@Borda a test was added here: https://github.com/PyTorchLightning/pytorch-lightning/blob/9148a13de0b121985bdf03e2832daf424f450ae5/tests/deprecated_api/test_remove_1-7.py#L230-L233 as part of #9616 |
|
I'm asking myself now why did we prefix this with "enable_"? Just |
Likely to avoid any confusion with ProgressBar as a callback instance. Similar to how checkpoint_callback is now typed as a bool, but sometimes people still pass a callback instance there |
|
@awaelchli Yeah it's exactly what @ananthsub said. See discussion here #9616 (comment) |
What does this PR do?
Follow up from #9616
Fixes #9500
Creates a new flag
enable_progress_barwhich allows users to disable the progress bar, since the previous method, settingprogress_bar_refresh_rateto 0, was deprecated in #9616Also, replace
progress_bar_refresh_ratewithenable_progress_barin the tests.Does your PR introduce any breaking changes? If yes, please list them.
Before submitting
PR review
Anyone in the community is welcome to review the PR.
Before you start reviewing make sure you have read Review guidelines. In short, see the following bullet-list:
Did you have fun?
Make sure you had fun coding 🙃