"vscode:/vscode.git/clone" did not exist on "d678357f06ff45eaf020f31c0147cd4c113347de"
Unverified Commit a59e9ab8 authored by moto's avatar moto Committed by GitHub
Browse files

Remove global audio backend from test (#3691)

global audio backend is removed thus this is no-op.
parent 4c85f817
...@@ -128,7 +128,6 @@ def get_mock_veri_dataset(root_dir: str, meta_file: str): ...@@ -128,7 +128,6 @@ def get_mock_veri_dataset(root_dir: str, meta_file: str):
class TestVoxCeleb1Identification(TempDirMixin, TorchaudioTestCase): class TestVoxCeleb1Identification(TempDirMixin, TorchaudioTestCase):
root_dir = None root_dir = None
backend = "default"
meta_file = "iden_list.txt" meta_file = "iden_list.txt"
train_samples = {} train_samples = {}
...@@ -166,7 +165,6 @@ class TestVoxCeleb1Identification(TempDirMixin, TorchaudioTestCase): ...@@ -166,7 +165,6 @@ class TestVoxCeleb1Identification(TempDirMixin, TorchaudioTestCase):
class TestVoxCeleb1Verification(TempDirMixin, TorchaudioTestCase): class TestVoxCeleb1Verification(TempDirMixin, TorchaudioTestCase):
root_dir = None root_dir = None
backend = "default"
meta_file = "veri_test.txt" meta_file = "veri_test.txt"
train_samples = {} train_samples = {}
......
...@@ -23,7 +23,6 @@ def get_mock_data(root_dir, labels): ...@@ -23,7 +23,6 @@ def get_mock_data(root_dir, labels):
class TestYesNo(TempDirMixin, TorchaudioTestCase): class TestYesNo(TempDirMixin, TorchaudioTestCase):
backend = "default"
root_dir = None root_dir = None
data = [] data = []
......
...@@ -54,7 +54,6 @@ def _mock_dataset(root_dir, num_speaker): ...@@ -54,7 +54,6 @@ def _mock_dataset(root_dir, num_speaker):
class TestWSJ0Mix2(TempDirMixin, TorchaudioTestCase): class TestWSJ0Mix2(TempDirMixin, TorchaudioTestCase):
backend = "default"
root_dir = None root_dir = None
expected = None expected = None
...@@ -78,7 +77,6 @@ class TestWSJ0Mix2(TempDirMixin, TorchaudioTestCase): ...@@ -78,7 +77,6 @@ class TestWSJ0Mix2(TempDirMixin, TorchaudioTestCase):
class TestWSJ0Mix3(TempDirMixin, TorchaudioTestCase): class TestWSJ0Mix3(TempDirMixin, TorchaudioTestCase):
backend = "default"
root_dir = None root_dir = None
expected = None expected = None
......
...@@ -25,8 +25,6 @@ def _name_from_args(func, _, params): ...@@ -25,8 +25,6 @@ def _name_from_args(func, _, params):
class TestFunctional(common_utils.TorchaudioTestCase): class TestFunctional(common_utils.TorchaudioTestCase):
"""Test functions defined in `functional` module""" """Test functions defined in `functional` module"""
backend = "default"
def assert_batch_consistency(self, functional, inputs, atol=1e-6, rtol=1e-5, seed=42): def assert_batch_consistency(self, functional, inputs, atol=1e-6, rtol=1e-5, seed=42):
n = inputs[0].size(0) n = inputs[0].size(0)
for i in range(1, len(inputs)): for i in range(1, len(inputs)):
......
...@@ -24,8 +24,6 @@ class TestFunctionalFloat64(Functional, PytorchTestCase): ...@@ -24,8 +24,6 @@ class TestFunctionalFloat64(Functional, PytorchTestCase):
@skipIfNoSox @skipIfNoSox
class TestApplyCodec(TorchaudioTestCase): class TestApplyCodec(TorchaudioTestCase):
backend = "sox_io"
def _smoke_test(self, format, compression, check_num_frames): def _smoke_test(self, format, compression, check_num_frames):
""" """
The purpose of this test suite is to verify that apply_codec functionalities do not exhibit The purpose of this test suite is to verify that apply_codec functionalities do not exhibit
......
...@@ -135,8 +135,6 @@ def speed(path): ...@@ -135,8 +135,6 @@ def speed(path):
@skipIfNoSox @skipIfNoSox
class TestProcessPoolExecutor(TempDirMixin, PytorchTestCase): class TestProcessPoolExecutor(TempDirMixin, PytorchTestCase):
backend = "sox_io"
def setUp(self): def setUp(self):
sample_rate = 16000 sample_rate = 16000
self.flist = [] self.flist = []
......
...@@ -10,8 +10,6 @@ from torchaudio_unittest import common_utils ...@@ -10,8 +10,6 @@ from torchaudio_unittest import common_utils
class TestTransforms(common_utils.TorchaudioTestCase): class TestTransforms(common_utils.TorchaudioTestCase):
"""Test suite for classes defined in `transforms` module""" """Test suite for classes defined in `transforms` module"""
backend = "default"
def assert_batch_consistency(self, transform, batch, *args, atol=1e-8, rtol=1e-5, seed=42, **kwargs): def assert_batch_consistency(self, transform, batch, *args, atol=1e-8, rtol=1e-5, seed=42, **kwargs):
n = batch.size(0) n = batch.size(0)
......
...@@ -8,7 +8,6 @@ from torchaudio_unittest import common_utils ...@@ -8,7 +8,6 @@ from torchaudio_unittest import common_utils
class Tester(common_utils.TorchaudioTestCase): class Tester(common_utils.TorchaudioTestCase):
backend = "default"
# create a sinewave signal for testing # create a sinewave signal for testing
sample_rate = 16000 sample_rate = 16000
......
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