Skip to content

Commit 4b0f3d3

Browse files
committed
skip
1 parent 17a211b commit 4b0f3d3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/unittests/audio/test_stoi.py

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
from torch import Tensor
2121
from torchmetrics.audio import ShortTimeObjectiveIntelligibility
2222
from torchmetrics.functional.audio import short_time_objective_intelligibility
23+
from torchmetrics.utilities.imports import _TORCH_GREATER_EQUAL_2_0
2324

2425
from unittests import _Input
2526
from unittests._helpers import seed_all
@@ -120,6 +121,7 @@ def test_error_on_different_shape(metric_class=ShortTimeObjectiveIntelligibility
120121
metric(torch.randn(100), torch.randn(50))
121122

122123

124+
@pytest.mark.skipif(not _TORCH_GREATER_EQUAL_2_0, reason="precision issue with older torch")
123125
def test_on_real_audio():
124126
"""Test that metric works on real audio signal."""
125127
rate, ref = wavfile.read(_SAMPLE_AUDIO_SPEECH)

0 commit comments

Comments
 (0)