parent
e0b7fed92e
commit
3256fe4e5a
|
@ -97,8 +97,7 @@ class ProgressBarBase(Callback):
|
|||
total_val_batches = len(trainer.val_dataloaders)
|
||||
elif not self.trainer.disable_validation:
|
||||
is_val_epoch = trainer.current_epoch % trainer.check_val_every_n_epoch == 0
|
||||
total_val_batches = trainer.num_val_batches if is_val_epoch else 0
|
||||
total_val_batches = sum(total_val_batches)
|
||||
total_val_batches = sum(trainer.num_val_batches) if is_val_epoch else 0
|
||||
return total_val_batches
|
||||
|
||||
@property
|
||||
|
|
Loading…
Reference in New Issue