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 27090b0 commit 516d988Copy full SHA for 516d988
torch_cluster/__init__.py
@@ -21,7 +21,7 @@
21
f"{osp.dirname(__file__)}")
22
23
cuda_version = torch.ops.torch_cluster.cuda_version()
24
-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
25
if cuda_version < 10000:
26
major, minor = int(str(cuda_version)[0]), int(str(cuda_version)[2])
27
else:
0 commit comments