Skip to content

Commit

Permalink
Split CUDA and CPU tests of torchscript_consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
mthrok committed May 15, 2020
1 parent 2c28b74 commit cb5eacd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
5 changes: 5 additions & 0 deletions test/torchscript_consistency_cpu_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from common_utils import define_test_suites
from torchscript_consistency_impl import Functional, Transforms


define_test_suites(globals(), [Functional, Transforms], devices=['cpu'])
5 changes: 5 additions & 0 deletions test/torchscript_consistency_cuda_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from common_utils import define_test_suites
from torchscript_consistency_impl import Functional, Transforms


define_test_suites(globals(), [Functional, Transforms], devices=['cuda'])
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,3 @@ def test_Vad(self):
filepath = common_utils.get_asset_path("vad-go-mono-32000.wav")
waveform, sample_rate = torchaudio.load(filepath)
self._assert_consistency(T.Vad(sample_rate=sample_rate), waveform)


common_utils.define_test_suites(globals(), [Functional, Transforms])

0 comments on commit cb5eacd

Please sign in to comment.