Skip to content

Commit

Permalink
amend
Browse files Browse the repository at this point in the history
  • Loading branch information
vmoens committed Mar 5, 2024
1 parent 8b6a038 commit a92de2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_libs.py
Original file line number Diff line number Diff line change
Expand Up @@ -2626,7 +2626,7 @@ def test_atari_preproc(self, dataset_id):
slice_len=None,
num_slices=8,
batch_size=64,
num_procs=os.cpu_count(),
num_procs=max(0, os.cpu_count() - 4),
)

t = Compose(
Expand All @@ -2638,7 +2638,7 @@ def test_atari_preproc(self, dataset_id):
def preproc(data):
return t(data)

dataset.preprocess(preproc, num_workers=max(1, os.cpu_count()-2), num_chunks=1000, mp_start_method="fork", pbar=True)
dataset.preprocess(preproc, num_workers=max(1, os.cpu_count()-4), num_chunks=1000, mp_start_method="fork", pbar=True)
print(dataset)


Expand Down

0 comments on commit a92de2c

Please sign in to comment.