We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e0b7fed commit 3256fe4Copy full SHA for 3256fe4
pytorch_lightning/callbacks/progress.py
@@ -97,8 +97,7 @@ def total_val_batches(self) -> int:
97
total_val_batches = len(trainer.val_dataloaders)
98
elif not self.trainer.disable_validation:
99
is_val_epoch = trainer.current_epoch % trainer.check_val_every_n_epoch == 0
100
- total_val_batches = trainer.num_val_batches if is_val_epoch else 0
101
- total_val_batches = sum(total_val_batches)
+ total_val_batches = sum(trainer.num_val_batches) if is_val_epoch else 0
102
return total_val_batches
103
104
@property
0 commit comments