Unverified Commit f4f71436 authored by Vincent QB's avatar Vincent QB Committed by GitHub
Browse files

jit/cuda test for complex norm. (#421)

parent 5894928d
...@@ -326,6 +326,10 @@ class Tester(unittest.TestCase): ...@@ -326,6 +326,10 @@ class Tester(unittest.TestCase):
_test_script_module(transforms.Spectrogram, tensor, sample_rate, sample_rate_2) _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): def test_resample_size(self):
input_path = os.path.join(self.test_dirpath, 'assets', 'sinewave.wav') input_path = os.path.join(self.test_dirpath, 'assets', 'sinewave.wav')
waveform, sample_rate = torchaudio.load(input_path) waveform, sample_rate = torchaudio.load(input_path)
......
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