Skip to content

Commit

Permalink
test spawn
Browse files Browse the repository at this point in the history
  • Loading branch information
mthrok committed Jul 25, 2023
1 parent 0c31e33 commit b78f418
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/torchaudio_unittest/sox_effect/dataset_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ def test_apply_effects_file(self):
batch_size=32,
num_workers=4,
worker_init_fn=init_random_seed,
multiprocessing_context=torch.multiprocessing.get_context('spawn'),
)
for batch in loader:
assert batch.shape == (32, 2, 2 * sample_rate)
Expand All @@ -117,6 +118,7 @@ def test_apply_effects_tensor(self):
batch_size=32,
num_workers=4,
worker_init_fn=init_random_seed,
multiprocessing_context=torch.multiprocessing.get_context('spawn'),
)
for batch in loader:
assert batch.shape == (32, 2, 2 * sample_rate)
Expand Down

0 comments on commit b78f418

Please sign in to comment.