Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
torch-cluster
Commits
8591256d
Commit
8591256d
authored
Jan 03, 2021
by
rusty1s
Browse files
relaxed CUDA version req
parent
7fc01df2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
torch_cluster/__init__.py
torch_cluster/__init__.py
+1
-1
No files found.
torch_cluster/__init__.py
View file @
8591256d
...
@@ -23,7 +23,7 @@ if torch.version.cuda is not None: # pragma: no cover
...
@@ -23,7 +23,7 @@ if torch.version.cuda is not None: # pragma: no cover
major
,
minor
=
int
(
str
(
cuda_version
)[
0
:
2
]),
int
(
str
(
cuda_version
)[
3
])
major
,
minor
=
int
(
str
(
cuda_version
)[
0
:
2
]),
int
(
str
(
cuda_version
)[
3
])
t_major
,
t_minor
=
[
int
(
x
)
for
x
in
torch
.
version
.
cuda
.
split
(
'.'
)]
t_major
,
t_minor
=
[
int
(
x
)
for
x
in
torch
.
version
.
cuda
.
split
(
'.'
)]
if
t_major
!=
major
or
t_minor
!=
minor
:
if
t_major
!=
major
:
raise
RuntimeError
(
raise
RuntimeError
(
f
'Detected that PyTorch and torch_cluster were compiled with '
f
'Detected that PyTorch and torch_cluster were compiled with '
f
'different CUDA versions. PyTorch has CUDA version '
f
'different CUDA versions. PyTorch has CUDA version '
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment