Skip to content

Commit 179b4dd

Browse files
quancspre-commit-ci[bot]carmocca
authored
remove redundant methods in RichProgressBar (#11100)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Carlos Mocholí <[email protected]>
1 parent 7e10f6d commit 179b4dd

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
120120
- Removed duplicated file extension when uploading model checkpoints with `NeptuneLogger` ([#11015](https://github.com/PyTorchLightning/pytorch-lightning/pull/11015))
121121

122122

123+
- Removed `__getstate__` and `__setstate__` of `RichProgressBar` ([#11100](https://github.com/PyTorchLightning/pytorch-lightning/pull/11100))
124+
125+
123126
- The `DDPPlugin` and `DDPSpawnPlugin` and their subclasses now remove the `SyncBatchNorm` wrappers in `teardown()` to enable proper support at inference after fitting ([#11078](https://github.com/PyTorchLightning/pytorch-lightning/pull/11078))
124127

125128

pytorch_lightning/callbacks/progress/rich_progress.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -318,17 +318,6 @@ def on_validation_start(self, trainer, pl_module):
318318
super().on_validation_start(trainer, pl_module)
319319
self._init_progress(trainer)
320320

321-
def __getstate__(self):
322-
# can't pickle the rich progress objects
323-
state = self.__dict__.copy()
324-
state["progress"] = None
325-
state["_console"] = None
326-
return state
327-
328-
def __setstate__(self, state):
329-
self.__dict__ = state
330-
self._console = Console(**self._console_kwargs)
331-
332321
def on_sanity_check_start(self, trainer, pl_module):
333322
super().on_sanity_check_start(trainer, pl_module)
334323
self._init_progress(trainer)

0 commit comments

Comments
 (0)