New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Separate CPU and GPU tests for functions torchscript test + Fix devices in two functionals #528
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to decouple the changes? There's a test that's failing.
test/test_functional.py::test_mask_along_axis_iid[3-0.0-100-specgrams0] FAILED [ 97%]
That test only failed on PY3.6 and it succeeded after re-run, meaning that the test is flaky. The proper fix will be to set random seed in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
f_max = 20.0 | ||
n_mels = 10 | ||
sample_rate = 16000 | ||
if self.device != torch.device('cpu'): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: It would have been nice to have a decorator like @onlyCPU
that checks this.
n_mfcc = 40 | ||
n_mels = 128 | ||
norm = "ortho" | ||
if self.device != torch.device('cpu'): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
This lfilter tests were moved to `test_torchscript_consistency.py` in pytorch#507 and GPU tests were added in pytorch#528. We can safely remove this tests from `test_functional_filtering.py`.
This lfilter tests were moved to `test_torchscript_consistency.py` in pytorch#507 and GPU tests were added in pytorch#528. We can safely remove this tests from `test_functional_filtering.py`.
This lfilter tests were moved to `test_torchscript_consistency.py` in pytorch#507 and GPU tests were added in pytorch#528. We can safely remove this tests from `test_functional_filtering.py`.
This lfilter tests were moved to `test_torchscript_consistency.py` in pytorch#507 and GPU tests were added in pytorch#528. We can safely remove this tests from `test_functional_filtering.py`.
This lfilter tests were moved to `test_torchscript_consistency.py` in pytorch#507 and GPU tests were added in pytorch#528. We can safely remove this tests from `test_functional_filtering.py`.
Similar to #520 this PR make
functional
module device awarefunctional
module found in Step 2.Relates to #515