mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-10-30 13:40:46 +08:00
added single node distdataparallel
This commit is contained in:
1 parent
c4aca832ba
commit
7ef6db49d3
1 file changed
+1
-1
@@ -282,7 +282,7 @@ class Trainer(TrainerIO):
|
||||
# when GPU is called, spawn off a single worker for each gpu
|
||||
if self.on_gpu:
|
||||
rank = 0
|
||||
mp.spawn(self.__dp_train, nprocs=len(self.data_parallel_device_ids), args=(rank, model, self, ))
|
||||
mp.spawn(self.__dp_train, nprocs=len(self.data_parallel_device_ids), args=(rank, model ))
|
||||
else:
|
||||
self.__run_pretrain_routine(model)
|
||||
|
||||
|
||||
Reference in new issue
Block a user