Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.5.1: Multi-node distributed training ready #12

Merged
merged 17 commits into from
Mar 28, 2019
Prev Previous commit
Next Next commit
fix
  • Loading branch information
moskomule committed Mar 27, 2019
commit 6019731c5fb0655b4cad76d2c36ebb746683d0c5
1 change: 1 addition & 0 deletions homura/vision/data/prefetcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class DataPrefetcher(object):

def __init__(self, loader: DataLoader):
self._cuda_available = torch.cuda.is_available()
self.loader = iter(loader)
self.stream = torch.cuda.Stream() if self._cuda_available else None
self.next_data = None
self.preload()
Expand Down