Skip to content

Commit cebc74f

Browse files
committed
ddp pickle
1 parent 2181ad1 commit cebc74f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytorch_lightning/trainer/data_loading.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,8 @@ def auto_add_sampler(self, dataloader: DataLoader, train: bool) -> DataLoader:
133133
world_size = {
134134
'ddp': self.num_nodes * self.num_processes,
135135
'ddp2': self.num_nodes,
136+
'ddp_cpu': self.num_processes * self.num_nodes
136137
}
137-
import pdb; pdb.set_trace()
138138
sampler = DistributedSampler(
139139
dataloader.dataset,
140140
num_replicas=world_size.get(self.distributed_backend, 0),

0 commit comments

Comments
 (0)