diff --git a/pytorch_lightning/models/trainer.py b/pytorch_lightning/models/trainer.py index 12b2d783..13b1300a 100644 --- a/pytorch_lightning/models/trainer.py +++ b/pytorch_lightning/models/trainer.py @@ -86,6 +86,7 @@ class Trainer(TrainerIO): self.lr_schedulers = [] self.amp_level = amp_level self.print_nan_grads = print_nan_grads + self.data_parallel_device_ids = None # gpus come in as a string. # if gpus = -1 then use all available devices