Skip to content

Commit

Permalink
Fix progress bar updates for Pod Training
Browse files Browse the repository at this point in the history
  • Loading branch information
kaushikb11 committed Jul 2, 2021
1 parent d51b0ae commit 98203e1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pytorch_lightning/plugins/training_type/tpu_spawn.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@ def new_process(self, process_idx: int, trainer, mp_queue) -> None:
# set warning rank
rank_zero_only.rank = self.global_rank

if self.tpu_global_core_rank == 0 and int(os.getenv(xenv.TPUVM_MODE, 0)) == 1:
print(' ', end='', flush=True)

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

Expand Down

0 comments on commit 98203e1

Please sign in to comment.