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 67058ba commit 81c53d3Copy full SHA for 81c53d3
test/utils.py
@@ -22,6 +22,7 @@ def needs_cuda(test_item):
22
23
24
def cpu_and_cuda():
25
+ # TODO: Figure out how to dedupe this logic in needs_cuda() and here.
26
if not torch.cuda.is_available():
27
if os.environ.get("FAIL_WITHOUT_CUDA") == "1":
28
raise RuntimeError("CUDA is required for this test")
0 commit comments