mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-09-13 12:50:26 +08:00
checkpoint only on rank=0 now
This commit is contained in:
@@ -367,7 +367,7 @@ class Trainer(TrainerIO):
|
||||
self.batch_loss_value = 0 # accumulated grads
|
||||
|
||||
# init progbar when requested
|
||||
if self.progress_bar:
|
||||
if self.progress_bar and self.proc_rank == 0:
|
||||
self.prog_bar = tqdm.tqdm(range(self.total_batches), position=self.process_position)
|
||||
|
||||
for batch_nb, data_batch in enumerate(self.tng_dataloader):
|
||||
|
||||
Reference in New Issue
Block a user