Unverified Commit b17da7a4 authored by moto's avatar moto Committed by GitHub
Browse files

Make TestCases backend-aware (#719)

* Make tests backend aware by introducing TorchaudioTestCase and reset backend for each TestCase.

* Set backends for the test cases that require specific backend.
parent 03da871f
......@@ -616,5 +616,6 @@ class Transforms(common_utils.TestBaseMixin):
def test_Vad(self):
filepath = common_utils.get_asset_path("vad-go-mono-32000.wav")
common_utils.set_audio_backend('default')
waveform, sample_rate = torchaudio.load(filepath)
self._assert_consistency(T.Vad(sample_rate=sample_rate), waveform)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment