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

Commit

Permalink
Disabled background batch processing (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
Egor-Krivov committed Feb 8, 2024
1 parent 700a97c commit 8398a93
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit 8398a93

Please sign in to comment.