Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
Torchaudio
Commits
a59e9ab8
Unverified
Commit
a59e9ab8
authored
Nov 09, 2023
by
moto
Committed by
GitHub
Nov 09, 2023
Browse files
Remove global audio backend from test (#3691)
global audio backend is removed thus this is no-op.
parent
4c85f817
Changes
28
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
0 additions
and
14 deletions
+0
-14
test/torchaudio_unittest/datasets/voxceleb1_test.py
test/torchaudio_unittest/datasets/voxceleb1_test.py
+0
-2
test/torchaudio_unittest/datasets/yesno_test.py
test/torchaudio_unittest/datasets/yesno_test.py
+0
-1
test/torchaudio_unittest/example/souce_sepration/wsj0mix_test.py
...rchaudio_unittest/example/souce_sepration/wsj0mix_test.py
+0
-2
test/torchaudio_unittest/functional/batch_consistency_test.py
.../torchaudio_unittest/functional/batch_consistency_test.py
+0
-2
test/torchaudio_unittest/functional/functional_cpu_test.py
test/torchaudio_unittest/functional/functional_cpu_test.py
+0
-2
test/torchaudio_unittest/sox_effect/dataset_test.py
test/torchaudio_unittest/sox_effect/dataset_test.py
+0
-2
test/torchaudio_unittest/transforms/batch_consistency_test.py
.../torchaudio_unittest/transforms/batch_consistency_test.py
+0
-2
test/torchaudio_unittest/transforms/transforms_test.py
test/torchaudio_unittest/transforms/transforms_test.py
+0
-1
No files found.
test/torchaudio_unittest/datasets/voxceleb1_test.py
View file @
a59e9ab8
...
@@ -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
=
{}
...
...
test/torchaudio_unittest/datasets/yesno_test.py
View file @
a59e9ab8
...
@@ -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
=
[]
...
...
test/torchaudio_unittest/example/souce_sepration/wsj0mix_test.py
View file @
a59e9ab8
...
@@ -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
...
...
test/torchaudio_unittest/functional/batch_consistency_test.py
View file @
a59e9ab8
...
@@ -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
)):
...
...
test/torchaudio_unittest/functional/functional_cpu_test.py
View file @
a59e9ab8
...
@@ -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
...
...
test/torchaudio_unittest/sox_effect/dataset_test.py
View file @
a59e9ab8
...
@@ -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
=
[]
...
...
test/torchaudio_unittest/transforms/batch_consistency_test.py
View file @
a59e9ab8
...
@@ -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
)
...
...
test/torchaudio_unittest/transforms/transforms_test.py
View file @
a59e9ab8
...
@@ -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
...
...
Prev
1
2
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment