Skip to content

Commit

Permalink
Tolerate floating-point errors in delta test
Browse files Browse the repository at this point in the history
  • Loading branch information
jcaw committed Jan 20, 2021
1 parent c6dd7d4 commit 50fecc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_spectrogram_augment.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def test_delta_channels():
_test_eq(out.nchannels, inp.nchannels * 3)
_test_eq(out.shape[-2:], inp.shape[-2:])
for i1, i2 in [(0, 2), (1, 3), (0, 4), (1, 5), (2, 4), (3, 5)]:
_test_ne(out[i1], out[i2])
assert not torch.allclose(out[i1], out[i2])


def test_signal_shift_on_sg():
Expand Down

0 comments on commit 50fecc5

Please sign in to comment.