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 2da6195 commit 124bc09Copy full SHA for 124bc09
torch_sparse/__init__.py
@@ -22,7 +22,7 @@
22
f"{osp.dirname(__file__)}")
23
24
cuda_version = torch.ops.torch_sparse.cuda_version()
25
-if torch.cuda.is_available() and cuda_version != -1: # pragma: no cover
+if torch.version.cuda is not None and cuda_version != -1: # pragma: no cover
26
if cuda_version < 10000:
27
major, minor = int(str(cuda_version)[0]), int(str(cuda_version)[2])
28
else:
0 commit comments