find_unused_parameters=True
This commit is contained in:
parent
5ed5e657e1
commit
37349ee099
|
@ -506,7 +506,7 @@ class Trainer(TrainerIO):
|
||||||
)
|
)
|
||||||
self.optimizers = optimizers
|
self.optimizers = optimizers
|
||||||
|
|
||||||
model = LightningDistributedDataParallel(model, device_ids=[gpu_nb])
|
model = LightningDistributedDataParallel(model, device_ids=[gpu_nb], find_unused_parameters=True)
|
||||||
|
|
||||||
# continue training routine
|
# continue training routine
|
||||||
self.__run_pretrain_routine(model)
|
self.__run_pretrain_routine(model)
|
||||||
|
|
Loading…
Reference in New Issue