Skip to content

Commit

Permalink
reduce num_workers to 2
Browse files Browse the repository at this point in the history
Signed-off-by: Jinzhe Zeng <[email protected]>
  • Loading branch information
njzjz committed Jan 26, 2024
1 parent e7c0907 commit 8a2137d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/tests/pt/test_saveload_dpa1.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def setUp(self):
self.dataset,
sampler=torch.utils.data.RandomSampler(self.dataset),
batch_size=None,
num_workers=8, # setting to 0 diverges the behavior of its iterator; should be >=1
num_workers=2, # setting to 0 diverges the behavior of its iterator; should be >=1
drop_last=False,
pin_memory=True,
)
Expand Down
2 changes: 1 addition & 1 deletion source/tests/pt/test_saveload_se_e2_a.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def setUp(self):
self.dataset,
sampler=torch.utils.data.RandomSampler(self.dataset),
batch_size=None,
num_workers=8, # setting to 0 diverges the behavior of its iterator; should be >=1
num_workers=2, # setting to 0 diverges the behavior of its iterator; should be >=1
drop_last=False,
pin_memory=True,
)
Expand Down

0 comments on commit 8a2137d

Please sign in to comment.