Skip to content

Commit 172bc35

Browse files
committed
bugfix
1 parent 2f2dd12 commit 172bc35

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import build # noqa
66

7-
__version__ = '0.2.0'
7+
__version__ = '0.2.1'
88
url = 'https://github.com/rusty1s/pytorch_scatter'
99

1010
install_requires = ['cffi']

torch_scatter/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from .functions.max import scatter_max_, scatter_max
77
from .functions.min import scatter_min_, scatter_min
88

9-
__version__ = '0.2.0'
9+
__version__ = '0.2.1'
1010

1111
__all__ = [
1212
'scatter_add_', 'scatter_add', 'scatter_sub_', 'scatter_sub',

torch_scatter/functions/sub.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def scatter_sub_(output, index, input, dim=0):
5151
-2 -4 -4 0 0 0
5252
[torch.FloatTensor of size 2x6]
5353
"""
54-
return output.scatter_add_(dim, index, -input)
54+
return output.scatter_add_(dim, index, -1 * input)
5555

5656

5757
def scatter_sub(index, input, dim=0, size=None, fill_value=0):

0 commit comments

Comments
 (0)