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
adef7b94
"...text-generation-inference.git" did not exist on "379c5c4da2494a15fb82b3b1a39fa454cb73df44"
Unverified
Commit
adef7b94
authored
Apr 03, 2020
by
Vincent QB
Committed by
GitHub
Apr 03, 2020
Browse files
run tests again. (#509)
parent
4875007d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
0 deletions
+12
-0
test/test_batch_consistency.py
test/test_batch_consistency.py
+4
-0
test/test_librosa_compatibility.py
test/test_librosa_compatibility.py
+4
-0
test/test_torchscript_consistency.py
test/test_torchscript_consistency.py
+4
-0
No files found.
test/test_batch_consistency.py
View file @
adef7b94
...
@@ -315,3 +315,7 @@ class TestTransforms(unittest.TestCase):
...
@@ -315,3 +315,7 @@ class TestTransforms(unittest.TestCase):
assert
computed
.
shape
==
expected
.
shape
,
(
computed
.
shape
,
expected
.
shape
)
assert
computed
.
shape
==
expected
.
shape
,
(
computed
.
shape
,
expected
.
shape
)
assert
torch
.
allclose
(
computed
,
expected
)
assert
torch
.
allclose
(
computed
,
expected
)
if
__name__
==
'__main__'
:
unittest
.
main
()
test/test_librosa_compatibility.py
View file @
adef7b94
...
@@ -344,3 +344,7 @@ class TestTransforms(_LibrosaMixin, unittest.TestCase):
...
@@ -344,3 +344,7 @@ class TestTransforms(_LibrosaMixin, unittest.TestCase):
# torch.dist(spec_lr, spec_ta, p=1)
# torch.dist(spec_lr, spec_ta, p=1)
# >>> tensor(943.2759)
# >>> tensor(943.2759)
assert
torch
.
dist
(
spec_orig
,
spec_ta
,
p
=
1
)
<
threshold
assert
torch
.
dist
(
spec_orig
,
spec_ta
,
p
=
1
)
<
threshold
if
__name__
==
'__main__'
:
unittest
.
main
()
test/test_torchscript_consistency.py
View file @
adef7b94
...
@@ -408,3 +408,7 @@ class TestTransforms(unittest.TestCase):
...
@@ -408,3 +408,7 @@ class TestTransforms(unittest.TestCase):
common_utils
.
TEST_DIR_PATH
,
'assets'
,
'steam-train-whistle-daniel_simon.wav'
)
common_utils
.
TEST_DIR_PATH
,
'assets'
,
'steam-train-whistle-daniel_simon.wav'
)
waveform
,
_
=
torchaudio
.
load
(
test_filepath
)
waveform
,
_
=
torchaudio
.
load
(
test_filepath
)
_test_script_module
(
torchaudio
.
transforms
.
Vol
,
waveform
,
1.1
)
_test_script_module
(
torchaudio
.
transforms
.
Vol
,
waveform
,
1.1
)
if
__name__
==
'__main__'
:
unittest
.
main
()
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