using slurm flag to fine node nb
This commit is contained in:
parent
52a3c3137a
commit
fac98e0846
|
@ -304,7 +304,7 @@ class Trainer(TrainerIO):
|
||||||
if self.on_gpu:
|
if self.on_gpu:
|
||||||
rank = 0
|
rank = 0
|
||||||
self.experiment = self.experiment.get_meta_copy()
|
self.experiment = self.experiment.get_meta_copy()
|
||||||
mp.spawn(self.dp_train, nprocs=len(self.data_parallel_device_ids), args=(model))
|
mp.spawn(self.dp_train, nprocs=len(self.data_parallel_device_ids), args=(model, ))
|
||||||
else:
|
else:
|
||||||
self.__run_pretrain_routine(model)
|
self.__run_pretrain_routine(model)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue