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-sparse
Commits
6e23f7fb
Commit
6e23f7fb
authored
Jan 03, 2021
by
rusty1s
Browse files
relax versioning
parent
04997b00
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
torch_sparse/__init__.py
torch_sparse/__init__.py
+1
-1
No files found.
torch_sparse/__init__.py
View file @
6e23f7fb
...
...
@@ -23,7 +23,7 @@ if torch.cuda.is_available() and torch.version.cuda: # pragma: no cover
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
(
'.'
)]
if
t_major
!=
major
or
t_minor
!=
minor
:
if
t_major
!=
major
:
raise
RuntimeError
(
f
'Detected that PyTorch and torch_sparse were compiled with '
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