From 88c086bbd20d873c48399fd46982a555d8c1d6c7 Mon Sep 17 00:00:00 2001 From: William Falcon Date: Mon, 11 May 2020 09:48:15 -0400 Subject: [PATCH] Update progress.py --- pytorch_lightning/callbacks/progress.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytorch_lightning/callbacks/progress.py b/pytorch_lightning/callbacks/progress.py index fa7d0d7d55..a770c6c9d9 100644 --- a/pytorch_lightning/callbacks/progress.py +++ b/pytorch_lightning/callbacks/progress.py @@ -93,7 +93,7 @@ class ProgressBarBase(Callback): """ trainer = self.trainer total_val_batches = 0 - if trainer.fast_dev_run and trainer.val_dataloaders is not None: + if trainer.fast_dev_run: total_val_batches = len(trainer.val_dataloaders) elif not self.trainer.disable_validation: is_val_epoch = (trainer.current_epoch + 1) % trainer.check_val_every_n_epoch == 0