Skip to content

Commit

Permalink
Add TS test for comples Spectrogram
Browse files Browse the repository at this point in the history
  • Loading branch information
mthrok committed Apr 1, 2021
1 parent b395211 commit 7ff9741
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ def test_Spectrogram(self):
tensor = torch.rand((1, 1000))
self._assert_consistency(T.Spectrogram(), tensor)

def test_Spectrogram_return_complex(self):
tensor = torch.rand((1, 1000))
self._assert_consistency(T.Spectrogram(power=None, return_complex=True), tensor)

def test_GriffinLim(self):
tensor = torch.rand((1, 201, 6))
self._assert_consistency(T.GriffinLim(length=1000, rand_init=False), tensor)
Expand Down

0 comments on commit 7ff9741

Please sign in to comment.