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
d06bdb50
Commit
d06bdb50
authored
Sep 07, 2021
by
rusty1s
Browse files
no cover
parent
f10b28be
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
torch_scatter/__init__.py
torch_scatter/__init__.py
+2
-2
No files found.
torch_scatter/__init__.py
View file @
d06bdb50
...
...
@@ -14,10 +14,10 @@ for library in ['_version', '_scatter', '_segment_csr', '_segment_coo']:
spec
=
cuda_spec
or
cpu_spec
if
spec
is
not
None
:
torch
.
ops
.
load_library
(
spec
.
origin
)
elif
os
.
getenv
(
'BUILD_DOCS'
,
'0'
)
!=
'1'
:
elif
os
.
getenv
(
'BUILD_DOCS'
,
'0'
)
!=
'1'
:
# pragma: no cover
raise
ImportError
(
f
"Could not find module '
{
library
}
_cpu' in "
f
"
{
osp
.
dirname
(
__file__
)
}
"
)
else
:
else
:
# pragma: no cover
from
.placeholder
import
cuda_version_placeholder
torch
.
ops
.
torch_scatter
.
cuda_version
=
cuda_version_placeholder
...
...
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