diff --git a/pytorch_lightning/models/trainer.py b/pytorch_lightning/models/trainer.py index fca35330d5..d6ca2c1eda 100644 --- a/pytorch_lightning/models/trainer.py +++ b/pytorch_lightning/models/trainer.py @@ -375,8 +375,7 @@ class Trainer(TrainerIO): print('using ddp') # must copy only the meta of the exp so it survives pickle/unpickle when going to new process self.experiment = self.experiment.get_meta_copy() - task = os.environ['SLURM_LOCALID'] - print(f'task: {task}') + task = int(os.environ['SLURM_LOCALID']) self.ddp_train(task, model) # mp.spawn(self.ddp_train, nprocs=len(self.data_parallel_device_ids), args=(model, ))