mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-10-27 13:12:20 +08:00
testing single process ddp
This commit is contained in:
1 parent
0e67773d2e
commit
112be99b19
1 file changed
+1
-1
@@ -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, ))
|
||||
|
||||
Reference in new issue
Block a user