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
62fc6106
Commit
62fc6106
authored
Jan 29, 2020
by
rusty1s
Browse files
fixed linting
parent
62815576
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
torch_scatter/__init__.py
torch_scatter/__init__.py
+12
-12
No files found.
torch_scatter/__init__.py
View file @
62fc6106
import
torch
torch
.
ops
.
load_library
(
'torch_scatter/scatter_cpu.so'
)
torch
.
ops
.
load_library
(
'torch_scatter/segment_cpu.so'
)
torch
.
ops
.
load_library
(
'torch_scatter/gather_cpu.so'
)
try
:
torch
.
ops
.
load_library
(
'torch_scatter/scatter_cuda.so'
)
torch
.
ops
.
load_library
(
'torch_scatter/segment_cuda.so'
)
torch
.
ops
.
load_library
(
'torch_scatter/gather_cuda.so'
)
except
OSError
as
e
:
if
torch
.
cuda
.
is_available
():
raise
e
from
.add
import
scatter_add
from
.sub
import
scatter_sub
from
.mul
import
scatter_mul
...
...
@@ -27,6 +15,18 @@ from .gather import gather_coo, gather_csr
import
torch_scatter.composite
torch
.
ops
.
load_library
(
'torch_scatter/scatter_cpu.so'
)
torch
.
ops
.
load_library
(
'torch_scatter/segment_cpu.so'
)
torch
.
ops
.
load_library
(
'torch_scatter/gather_cpu.so'
)
try
:
torch
.
ops
.
load_library
(
'torch_scatter/scatter_cuda.so'
)
torch
.
ops
.
load_library
(
'torch_scatter/segment_cuda.so'
)
torch
.
ops
.
load_library
(
'torch_scatter/gather_cuda.so'
)
except
OSError
as
e
:
if
torch
.
cuda
.
is_available
():
raise
e
__version__
=
'1.4.0'
__all__
=
[
...
...
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