transforms test
This commit is contained in:
parent
c1d5e56ec0
commit
fc33bd83b6
|
|
@ -12,3 +12,7 @@ def test_stft_istft():
|
|||
spectrogram = stft(sample_input)
|
||||
waveform = istft(spectrogram)
|
||||
assert sample_input.shape == waveform.shape
|
||||
assert (
|
||||
torch.isclose(waveform, sample_input).sum().item()
|
||||
> sample_input.shape[-1] // 2
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue