Skip to content

Commit adef7b9

Browse files
authored
run tests again. (#509)
1 parent 4875007 commit adef7b9

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

test/test_batch_consistency.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,3 +315,7 @@ def test_batch_Vol(self):
315315

316316
assert computed.shape == expected.shape, (computed.shape, expected.shape)
317317
assert torch.allclose(computed, expected)
318+
319+
320+
if __name__ == '__main__':
321+
unittest.main()

test/test_librosa_compatibility.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,3 +344,7 @@ def test_InverseMelScale(self):
344344
# torch.dist(spec_lr, spec_ta, p=1)
345345
# >>> tensor(943.2759)
346346
assert torch.dist(spec_orig, spec_ta, p=1) < threshold
347+
348+
349+
if __name__ == '__main__':
350+
unittest.main()

test/test_torchscript_consistency.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,3 +408,7 @@ def test_Vol(self):
408408
common_utils.TEST_DIR_PATH, 'assets', 'steam-train-whistle-daniel_simon.wav')
409409
waveform, _ = torchaudio.load(test_filepath)
410410
_test_script_module(torchaudio.transforms.Vol, waveform, 1.1)
411+
412+
413+
if __name__ == '__main__':
414+
unittest.main()

0 commit comments

Comments
 (0)