Skip to content

Commit

Permalink
fixup! Add test for pytorch#1021
Browse files Browse the repository at this point in the history
  • Loading branch information
mthrok committed Nov 13, 2020
1 parent 6808cfa commit 840f0ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/torchaudio_unittest/sox_effect/dataset_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,7 @@ def test_apply_effects_tensor(self):


def speed(path):
sample_rate = 8000
wav = get_whitenoise(n_channels=1, sample_rate=sample_rate, duration=1, dtype='float')
# wav, sample_rate = torchaudio.load(path)
wav, sample_rate = torchaudio.load(path)
effects = [
['speed', '1.03756523535464655'],
['rate', f'{sample_rate}'],
Expand All @@ -138,6 +136,8 @@ def speed(path):

@skipIfNoExtension
class TestProcessPoolExecutor(TempDirMixin, PytorchTestCase):
backend = "sox_io"

def setUp(self):
sample_rate = 16000
self.flist = []
Expand Down

0 comments on commit 840f0ce

Please sign in to comment.