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
f4f71436
Unverified
Commit
f4f71436
authored
Jan 22, 2020
by
Vincent QB
Committed by
GitHub
Jan 22, 2020
Browse files
jit/cuda test for complex norm. (#421)
parent
5894928d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
test/test_transforms.py
test/test_transforms.py
+4
-0
No files found.
test/test_transforms.py
View file @
f4f71436
...
...
@@ -326,6 +326,10 @@ class Tester(unittest.TestCase):
_test_script_module
(
transforms
.
Spectrogram
,
tensor
,
sample_rate
,
sample_rate_2
)
def
test_scriptmodule_ComplexNorm
(
self
):
tensor
=
torch
.
rand
((
1
,
2
,
201
,
2
))
_test_script_module
(
transforms
.
ComplexNorm
,
tensor
)
def
test_resample_size
(
self
):
input_path
=
os
.
path
.
join
(
self
.
test_dirpath
,
'assets'
,
'sinewave.wav'
)
waveform
,
sample_rate
=
torchaudio
.
load
(
input_path
)
...
...
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