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
172bc35c
Commit
172bc35c
authored
Jan 15, 2018
by
rusty1s
Browse files
bugfix
parent
2f2dd12f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
setup.py
setup.py
+1
-1
torch_scatter/__init__.py
torch_scatter/__init__.py
+1
-1
torch_scatter/functions/sub.py
torch_scatter/functions/sub.py
+1
-1
No files found.
setup.py
View file @
172bc35c
...
@@ -4,7 +4,7 @@ from setuptools import setup, find_packages
...
@@ -4,7 +4,7 @@ from setuptools import setup, find_packages
import
build
# noqa
import
build
# noqa
__version__
=
'0.2.
0
'
__version__
=
'0.2.
1
'
url
=
'https://github.com/rusty1s/pytorch_scatter'
url
=
'https://github.com/rusty1s/pytorch_scatter'
install_requires
=
[
'cffi'
]
install_requires
=
[
'cffi'
]
...
...
torch_scatter/__init__.py
View file @
172bc35c
...
@@ -6,7 +6,7 @@ from .functions.mean import scatter_mean_, scatter_mean
...
@@ -6,7 +6,7 @@ from .functions.mean import scatter_mean_, scatter_mean
from
.functions.max
import
scatter_max_
,
scatter_max
from
.functions.max
import
scatter_max_
,
scatter_max
from
.functions.min
import
scatter_min_
,
scatter_min
from
.functions.min
import
scatter_min_
,
scatter_min
__version__
=
'0.2.
0
'
__version__
=
'0.2.
1
'
__all__
=
[
__all__
=
[
'scatter_add_'
,
'scatter_add'
,
'scatter_sub_'
,
'scatter_sub'
,
'scatter_add_'
,
'scatter_add'
,
'scatter_sub_'
,
'scatter_sub'
,
...
...
torch_scatter/functions/sub.py
View file @
172bc35c
...
@@ -51,7 +51,7 @@ def scatter_sub_(output, index, input, dim=0):
...
@@ -51,7 +51,7 @@ def scatter_sub_(output, index, input, dim=0):
-2 -4 -4 0 0 0
-2 -4 -4 0 0 0
[torch.FloatTensor of size 2x6]
[torch.FloatTensor of size 2x6]
"""
"""
return
output
.
scatter_add_
(
dim
,
index
,
-
input
)
return
output
.
scatter_add_
(
dim
,
index
,
-
1
*
input
)
def
scatter_sub
(
index
,
input
,
dim
=
0
,
size
=
None
,
fill_value
=
0
):
def
scatter_sub
(
index
,
input
,
dim
=
0
,
size
=
None
,
fill_value
=
0
):
...
...
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