Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Commit

Permalink
Merge pull request #116 from ndalton12/patch-1
Browse files Browse the repository at this point in the history
Update loader.py to add DDP support
  • Loading branch information
justusschock authored Jul 26, 2021
2 parents 7da711c + d437b09 commit ca0cf77
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rising/loading/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ def __init__(self, dataset: Union[Sequence, Dataset],
gpu_transforms = Compose(to_gpu_trafo, gpu_transforms)
gpu_transforms = gpu_transforms.to(device)

self.device = device
self.sample_transforms = sample_transforms
self.pseudo_batch_dim = pseudo_batch_dim and sample_transforms is not None
self.gpu_transforms = gpu_transforms
Expand Down

0 comments on commit ca0cf77

Please sign in to comment.