From 112be99b198d37b89de23e568609d8d0cab0baaf Mon Sep 17 00:00:00 2001 From: William Falcon Date: Thu, 18 Jul 2019 14:57:56 -0400 Subject: [PATCH] testing single process ddp --- pytorch_lightning/models/trainer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytorch_lightning/models/trainer.py b/pytorch_lightning/models/trainer.py index e1ad3432..fca35330 100644 --- a/pytorch_lightning/models/trainer.py +++ b/pytorch_lightning/models/trainer.py @@ -375,7 +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_ARRAY_TASK_ID'] + task = os.environ['SLURM_LOCALID'] print(f'task: {task}') self.ddp_train(task, model) # mp.spawn(self.ddp_train, nprocs=len(self.data_parallel_device_ids), args=(model, ))