added single node distdataparallel

This commit is contained in:
William Falcon 2019-07-03 15:20:33 -04:00
parent 129dce0d18
commit 98db51eb95
1 changed files with 1 additions and 1 deletions

View File

@ -285,7 +285,7 @@ class Trainer(TrainerIO):
if self.on_gpu:
rank = 0
self.model = model
mp.spawn(dummy, nprocs=len(self.data_parallel_device_ids), args=(self, ))
mp.spawn(dummy, nprocs=len(self.data_parallel_device_ids), args=(model, ))
else:
self.__run_pretrain_routine(model)