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
af673237
Commit
af673237
authored
Dec 16, 2017
by
rusty1s
Browse files
cleaner
parent
fdba2556
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
torch_scatter/functions/scatter.py
torch_scatter/functions/scatter.py
+1
-2
No files found.
torch_scatter/functions/scatter.py
View file @
af673237
...
@@ -36,8 +36,7 @@ class _Scatter(Function):
...
@@ -36,8 +36,7 @@ class _Scatter(Function):
if
len
(
grad
)
==
3
:
if
len
(
grad
)
==
3
:
return
grad_output
,
None
,
grad_input
return
grad_output
,
None
,
grad_input
else
:
return
grad_output
,
None
,
grad_input
,
None
return
grad_output
,
None
,
grad_input
,
None
def
scatter
(
name
,
dim
,
*
data
):
def
scatter
(
name
,
dim
,
*
data
):
...
...
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