set dp as default backend
This commit is contained in:
parent
bc3a805202
commit
3321e8c541
|
@ -289,7 +289,7 @@ class Trainer(TrainerIO):
|
|||
self.test_dataloader = model.test_dataloader
|
||||
self.val_dataloader = model.val_dataloader
|
||||
|
||||
if self.data_parallel and not isinstance(self.tng_dataloader.sampler, DistributedSampler):
|
||||
if self.use_ddp and not isinstance(self.tng_dataloader.sampler, DistributedSampler):
|
||||
msg = '''
|
||||
when using multiple gpus and multiple nodes you must pass a DistributedSampler to DataLoader(sampler).
|
||||
|
||||
|
|
Loading…
Reference in New Issue