We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 635d485 commit bea1df2Copy full SHA for bea1df2
tests/testing_utils.py
@@ -355,7 +355,7 @@ def decorator(test_case):
355
def require_torch_accelerator(test_case):
356
"""Decorator marking a test that requires an accelerator backend and PyTorch."""
357
return pytest.mark.skipif(
358
- not (is_torch_available() and torch_device != "cpu"), reason="test requires accelerator+PyTorch"
+ torch_device == "cpu", reason="test requires accelerator+PyTorch"
359
)(test_case)
360
361
0 commit comments