set dp as default backend

This commit is contained in:
William Falcon 2019-07-18 11:18:19 -04:00
parent bc3a805202
commit 3321e8c541
1 changed files with 1 additions and 1 deletions

View File

@ -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).