Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions dl_bench/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ def get_inf_loaders(n, in_shape, batch_size, device: str):

ds = RandomInfDataset(n, in_shape)
train_loader = DataLoader(
ds, batch_size=batch_size, shuffle=True, num_workers=4, pin_memory=pin_memory
ds, batch_size=batch_size, shuffle=True, num_workers=0, pin_memory=pin_memory
)
test_loader = DataLoader(
ds, batch_size=batch_size, shuffle=False, num_workers=4, pin_memory=pin_memory
ds, batch_size=batch_size, shuffle=False, num_workers=0, pin_memory=pin_memory
)
return train_loader, test_loader

Expand Down Expand Up @@ -363,7 +363,7 @@ def inference(self, backend: Backend):
self.dataset,
batch_size=self.batch_size,
shuffle=False,
num_workers=4,
num_workers=0,
pin_memory=backend.device_name == "cuda",
)

Expand Down