mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-10-28 13:20:31 +08:00
fixed default sampler (#1425)
This commit is contained in:
1 parent
b5c6d0e393
commit
21a1972921
1 file changed
+1
-2
@@ -87,9 +87,8 @@ class TrainerDataLoadingMixin(ABC):
|
||||
return dataloader
|
||||
|
||||
need_dist_sampler = self.use_ddp or self.use_ddp2 or self.use_tpu
|
||||
no_sampler_added = dataloader.sampler is None
|
||||
|
||||
if need_dist_sampler and no_sampler_added:
|
||||
if need_dist_sampler:
|
||||
|
||||
skip_keys = ['sampler', 'batch_sampler', 'dataset_kind']
|
||||
|
||||
|
||||
Reference in new issue
Block a user