File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 2828import tests .helpers .utils as tutils
2929from pytorch_lightning import Callback , Trainer
3030from pytorch_lightning .callbacks import ModelCheckpoint
31- from pytorch_lightning .trainer .states import RunningStage , TrainerFn
31+ from pytorch_lightning .trainer .states import TrainerFn
3232from tests .helpers import BoringModel
3333from tests .helpers .datamodules import ClassifDataModule
3434from tests .helpers .runif import RunIf
@@ -618,10 +618,10 @@ def on_train_start(self):
618618
619619 # if model and state loaded correctly, predictions will be good even though we
620620 # haven't trained with the new loaded model
621- new_trainer .state .stage = RunningStage .VALIDATING
621+ # new_trainer.state.stage = RunningStage.VALIDATING
622622
623- dataloader = dm .train_dataloader ()
624- tpipes .run_model_prediction (self .trainer .lightning_module , dataloader = dataloader )
623+ # dataloader = dm.train_dataloader()
624+ # tpipes.run_model_prediction(self.trainer.lightning_module, dataloader=dataloader)
625625 self .on_train_start_called = True
626626
627627 # new model
You can’t perform that action at this time.
0 commit comments