forked from pytorch/audio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split CUDA and CPU tests of torchscript_consistency (pytorch#644)
Currently there is no CUDA device for regular FB's infra, where `torchaudio`'s tests are ran. Skipping these tests consistently raises a flag so we decided to split the tests into runnable and not-runnable on file-level.
- Loading branch information
1 parent
5246a23
commit c615999
Showing
3 changed files
with
10 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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']) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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']) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters