Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Hemil Desai <hemild@nvidia.com>
  • Loading branch information
hemildesai committed Nov 8, 2024
1 parent 5b59583 commit e2b0f0e
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions nemo/lightning/pytorch/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,6 @@ def configure_no_restart_validation_training_loop(trainer: pl.Trainer) -> None:


class Trainer(pl.Trainer, IOMixin):
def _configure_no_restart_validation_training_loop(self) -> None:
if not isinstance(self.fit_loop.epoch_loop, _TrainingEpochLoop):
warnings.warn("Detected custom epoch loop. Skipping no validation on restart support.", UserWarning)
return

## Pass trainer object to avoid trainer getting overwritten as None
loop = NoValOnRestartTrainingLoop(self, self.min_steps, self.max_steps)
self.fit_loop.epoch_loop = loop

def add_io(self, obj):
"""Recurse to the leaves of a container and add io functionality to non-serializable leaves"""
if isinstance(obj, (dict, list)):
Expand Down

0 comments on commit e2b0f0e

Please sign in to comment.