Skip to content

Commit 3849964

Browse files
committed
Remove code from #11552
1 parent f9bb47e commit 3849964

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

pytorch_lightning/loops/epoch/training_epoch_loop.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -490,11 +490,6 @@ def _should_check_val_fx(self, batch_idx: int, is_last_batch: bool) -> bool:
490490

491491
# TODO(@awaelchli): let training/eval loop handle logic around limit_*_batches and val_check_batch
492492
is_val_check_batch = is_last_batch
493-
494-
# while restarting with no fault-tolerant, batch_progress.current.ready is -1
495-
if batch_idx == -1:
496-
return False
497-
498493
if isinstance(self.trainer.limit_train_batches, int) and is_infinite_dataset:
499494
is_val_check_batch = (batch_idx + 1) % self.trainer.limit_train_batches == 0
500495
elif self.trainer.val_check_batch != float("inf"):

0 commit comments

Comments
 (0)