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
5817fb9d
Commit
5817fb9d
authored
Jan 10, 2020
by
rusty1s
Browse files
linting
parent
ea94e546
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
+14
-4
torch_scatter/gather.py
torch_scatter/gather.py
+7
-2
torch_scatter/segment.py
torch_scatter/segment.py
+7
-2
No files found.
torch_scatter/gather.py
View file @
5817fb9d
...
...
@@ -5,8 +5,13 @@ from torch_scatter import segment_cpu, gather_cpu
if
torch
.
cuda
.
is_available
():
from
torch_scatter
import
gather_cuda
,
segment_cuda
gat
=
lambda
is_cuda
:
gather_cuda
if
is_cuda
else
gather_cpu
# noqa
seg
=
lambda
is_cuda
:
segment_cuda
if
is_cuda
else
segment_cpu
# noqa
def
gat
(
is_cuda
):
return
gather_cuda
if
is_cuda
else
gather_cpu
def
seg
(
is_cuda
):
return
segment_cuda
if
is_cuda
else
segment_cpu
class
GatherCOO
(
torch
.
autograd
.
Function
):
...
...
torch_scatter/segment.py
View file @
5817fb9d
...
...
@@ -6,8 +6,13 @@ from torch_scatter.helpers import min_value, max_value
if
torch
.
cuda
.
is_available
():
from
torch_scatter
import
segment_cuda
,
gather_cuda
seg
=
lambda
is_cuda
:
segment_cuda
if
is_cuda
else
segment_cpu
# noqa
gat
=
lambda
is_cuda
:
gather_cuda
if
is_cuda
else
gather_cpu
# noqa
def
seg
(
is_cuda
):
return
segment_cuda
if
is_cuda
else
segment_cpu
def
gat
(
is_cuda
):
return
gather_cuda
if
is_cuda
else
gather_cpu
class
SegmentCOO
(
torch
.
autograd
.
Function
):
...
...
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