Skip to content

Commit

Permalink
See if tests fail without cuda
Browse files Browse the repository at this point in the history
Signed-off-by: SeanNaren <[email protected]>
  • Loading branch information
SeanNaren committed Feb 22, 2023
1 parent 8bfe05f commit d27ce29
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions tests/collections/asr/test_diar_neural_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,7 @@
class TestNeuralDiarizerInference:
@pytest.mark.unit
@pytest.mark.parametrize(
"device",
[
torch.device("cpu"),
pytest.param(
torch.device("cuda"),
marks=pytest.mark.skipif(not torch.cuda.is_available(), reason='CUDA required for test.',),
),
],
"device", [torch.device("cpu"),],
)
@pytest.mark.parametrize("num_speakers", [None, 1])
@pytest.mark.parametrize("max_num_speakers", [4])
Expand Down

0 comments on commit d27ce29

Please sign in to comment.