Skip to content

Commit

Permalink
add workers to data loaders
Browse files Browse the repository at this point in the history
  • Loading branch information
dsethz committed Oct 27, 2024
1 parent 0b3a71c commit 7682a53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nuclai/utils/datamodule.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,12 +280,12 @@ def setup(self, stage: Optional[str] = None):

def train_dataloader(self):
return DataLoader(
self.data, batch_size=self.batch_size, shuffle=True, num_workers=0
self.data, batch_size=self.batch_size, shuffle=True, num_workers=4
)

def val_dataloader(self):
return DataLoader(
self.data_val, batch_size=self.batch_size, num_workers=0
self.data_val, batch_size=self.batch_size, num_workers=4
)

def test_dataloader(self):
Expand Down

0 comments on commit 7682a53

Please sign in to comment.