diff --git a/pytorch_lightning/models/trainer.py b/pytorch_lightning/models/trainer.py index 8b8267c18f..786b9be154 100644 --- a/pytorch_lightning/models/trainer.py +++ b/pytorch_lightning/models/trainer.py @@ -506,7 +506,7 @@ class Trainer(TrainerIO): ) self.optimizers = optimizers - model = LightningDistributedDataParallel(model, device_ids=[gpu_nb]) + model = LightningDistributedDataParallel(model, device_ids=[gpu_nb], find_unused_parameters=True) # continue training routine self.__run_pretrain_routine(model)