diff --git a/pytorch_lightning/models/trainer.py b/pytorch_lightning/models/trainer.py index d7681626..79aa1cb2 100644 --- a/pytorch_lightning/models/trainer.py +++ b/pytorch_lightning/models/trainer.py @@ -295,7 +295,7 @@ class Trainer(TrainerIO): # when using gpus, first thing we do is spawn a new process between each worker # applies to single gpu, multi-gpu and multi-nodes - if self.on_gpu: + if self.on_gpu and len(self.data_parallel_device_ids) > 1: self.experiment = self.experiment.get_meta_copy() mp.spawn(self.dp_train, nprocs=len(self.data_parallel_device_ids), args=(model, )) else: