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
d3857770
Commit
d3857770
authored
Dec 16, 2017
by
rusty1s
Browse files
bugfix
parent
02e6d36a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
test/test_add.py
test/test_add.py
+1
-1
test/test_mean.py
test/test_mean.py
+1
-1
No files found.
test/test_add.py
View file @
d3857770
...
@@ -19,7 +19,7 @@ def test_scatter_add(str):
...
@@ -19,7 +19,7 @@ def test_scatter_add(str):
assert
output
.
tolist
()
==
expected_output
assert
output
.
tolist
()
==
expected_output
output
=
scatter_add
(
index
,
input
,
dim
=
1
)
output
=
scatter_add
(
index
,
input
,
dim
=
1
)
assert
output
.
tolist
()
,
expected_output
assert
output
.
tolist
()
==
expected_output
output
=
Variable
(
output
).
fill_
(
0
)
output
=
Variable
(
output
).
fill_
(
0
)
index
=
Variable
(
index
)
index
=
Variable
(
index
)
...
...
test/test_mean.py
View file @
d3857770
...
@@ -19,7 +19,7 @@ def test_scatter_mean(str):
...
@@ -19,7 +19,7 @@ def test_scatter_mean(str):
assert
output
.
tolist
()
==
expected_output
assert
output
.
tolist
()
==
expected_output
output
=
scatter_mean
(
index
,
input
,
dim
=
1
)
output
=
scatter_mean
(
index
,
input
,
dim
=
1
)
assert
output
.
tolist
()
,
expected_output
assert
output
.
tolist
()
==
expected_output
output
=
Variable
(
output
).
fill_
(
0
)
output
=
Variable
(
output
).
fill_
(
0
)
index
=
Variable
(
index
)
index
=
Variable
(
index
)
...
...
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