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-scatter
Commits
fbe0990e
Unverified
Commit
fbe0990e
authored
Jul 18, 2020
by
Matthias Fey
Committed by
GitHub
Jul 18, 2020
Browse files
Merge pull request #149 from mpariente/cuda_check
Check if CUDA is available before checking CUDA version
parents
54d23137
4945965c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
torch_scatter/__init__.py
torch_scatter/__init__.py
+1
-1
No files found.
torch_scatter/__init__.py
View file @
fbe0990e
...
...
@@ -39,7 +39,7 @@ except AttributeError as e:
torch
.
ops
.
torch_scatter
.
segment_max_coo
=
segment_coo_arg_placeholder
torch
.
ops
.
torch_scatter
.
gather_coo
=
gather_coo_placeholder
if
torch
.
version
.
cuda
is
not
None
:
# pragma: no cover
if
torch
.
version
.
cuda
is
not
None
and
torch
.
cuda
.
is_available
()
:
# pragma: no cover
cuda_version
=
torch
.
ops
.
torch_scatter
.
cuda_version
()
if
cuda_version
==
-
1
:
...
...
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