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
d386a375
Commit
d386a375
authored
Feb 11, 2020
by
rusty1s
Browse files
clean
parent
a8ec223f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
torch_scatter/__init__.py
torch_scatter/__init__.py
+8
-5
No files found.
torch_scatter/__init__.py
View file @
d386a375
...
@@ -6,16 +6,19 @@ import os.path as osp
...
@@ -6,16 +6,19 @@ import os.path as osp
import
torch
import
torch
__version__
=
'2.0.3'
__version__
=
'2.0.3'
expected_torch_version
=
'1.4'
expected_torch_version
=
(
1
,
4
)
try
:
try
:
torch
.
ops
.
load_library
(
importlib
.
machinery
.
PathFinder
().
find_spec
(
torch
.
ops
.
load_library
(
importlib
.
machinery
.
PathFinder
().
find_spec
(
'_version'
,
[
osp
.
dirname
(
__file__
)]).
origin
)
'_version'
,
[
osp
.
dirname
(
__file__
)]).
origin
)
except
OSError
as
e
:
except
OSError
as
e
:
if
'undefined symbol'
in
str
(
e
):
major
,
minor
=
[
int
(
x
)
for
x
in
torch
.
__version__
.
split
(
'.'
)[:
2
]]
major
,
minor
=
[
int
(
x
)
for
x
in
torch
.
__version__
.
split
(
'.'
)[:
2
]]
if
'undefined symbol'
in
str
(
e
)
and
major
!=
1
and
minor
!=
4
:
t_major
,
t_minor
=
expected_torch_version
raise
RuntimeError
(
'Expected PyTorch version {} but found version '
if
major
!=
t_major
or
(
major
==
t_major
and
minor
!=
t_minor
):
'{}.{}.'
.
format
(
torch_version
,
major
,
minor
))
raise
RuntimeError
(
'Expected PyTorch version {}.{} but found version '
'{}.{}.'
.
format
(
t_major
,
t_minor
,
major
,
minor
))
raise
OSError
(
e
)
raise
OSError
(
e
)
from
.scatter
import
(
scatter_sum
,
scatter_add
,
scatter_mean
,
scatter_min
,
from
.scatter
import
(
scatter_sum
,
scatter_add
,
scatter_mean
,
scatter_min
,
...
...
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