Skip to content

Commit

Permalink
Remove redundant special case for disabling the progress bar on TPU (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
awaelchli authored Dec 16, 2021
1 parent f37bd46 commit c335a78
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pytorch_lightning/plugins/training_type/tpu_spawn.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,6 @@ def pre_dispatch(self, trainer: "pl.Trainer") -> None:
if self.debug:
os.environ["PT_XLA_DEBUG"] = str(1)

if self.tpu_global_core_rank != 0 and trainer.progress_bar_callback is not None:
trainer.progress_bar_callback.disable()

shared_params = find_shared_parameters(self.model)
self.model_to_device()
if is_overridden("on_post_move_to_device", self.lightning_module):
Expand Down

0 comments on commit c335a78

Please sign in to comment.