Skip to content

Commit a487a44

Browse files
committed
fixed print statements
1 parent 601b409 commit a487a44

File tree

6 files changed

+10
-14
lines changed

6 files changed

+10
-14
lines changed

.travis.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@ install:
2424
- pip install flake8
2525
- pip install codecov
2626
script:
27-
- which $CC
28-
- which $CXX
29-
- $CC --version
30-
- $CXX --version
3127
- pycodestyle .
3228
- flake8 .
3329
- python setup.py install

torch_scatter/add.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ def scatter_add(src, index, dim=-1, out=None, dim_size=None, fill_value=0):
6666
6767
.. testoutput::
6868
69-
tensor([[ 0, 0, 4, 3, 3, 0],
70-
[ 2, 4, 4, 0, 0, 0]])
69+
tensor([[0, 0, 4, 3, 3, 0],
70+
[2, 4, 4, 0, 0, 0]])
7171
"""
7272
src, out, index, dim = gen(src, index, dim, out, dim_size, fill_value)
7373
return out.scatter_add_(dim, index, src)

torch_scatter/div.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ def scatter_div(src, index, dim=-1, out=None, dim_size=None, fill_value=1):
8585
8686
.. testoutput::
8787
88-
tensor([[ 1.0000, 1.0000, 0.2500, 0.5000, 0.5000, 1.0000],
89-
[ 0.5000, 0.2500, 0.5000, 1.0000, 1.0000, 1.0000]])
88+
tensor([[1.0000, 1.0000, 0.2500, 0.5000, 0.5000, 1.0000],
89+
[0.5000, 0.2500, 0.5000, 1.0000, 1.0000, 1.0000]])
9090
"""
9191
src, out, index, dim = gen(src, index, dim, out, dim_size, fill_value)
9292
return ScatterDiv.apply(out, src, index, dim)

torch_scatter/max.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ def scatter_max(src, index, dim=-1, out=None, dim_size=None, fill_value=0):
9090
9191
.. testoutput::
9292
93-
tensor([[ 0, 0, 4, 3, 2, 0],
94-
[ 2, 4, 3, 0, 0, 0]])
93+
tensor([[0, 0, 4, 3, 2, 0],
94+
[2, 4, 3, 0, 0, 0]])
9595
tensor([[-1, -1, 3, 4, 0, 1],
9696
[ 1, 4, 3, -1, -1, -1]])
9797
"""

torch_scatter/mean.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ def scatter_mean(src, index, dim=-1, out=None, dim_size=None, fill_value=0):
6262
6363
.. testoutput::
6464
65-
tensor([[ 0.0000, 0.0000, 4.0000, 3.0000, 1.5000, 0.0000],
66-
[ 1.0000, 4.0000, 2.0000, 0.0000, 0.0000, 0.0000]])
65+
tensor([[0.0000, 0.0000, 4.0000, 3.0000, 1.5000, 0.0000],
66+
[1.0000, 4.0000, 2.0000, 0.0000, 0.0000, 0.0000]])
6767
"""
6868
out = scatter_add(src, index, dim, out, dim_size, fill_value)
6969
count = scatter_add(torch.ones_like(src), index, dim, None, out.size(dim))

torch_scatter/mul.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ def scatter_mul(src, index, dim=-1, out=None, dim_size=None, fill_value=1):
8484
8585
.. testoutput::
8686
87-
tensor([[ 1, 1, 4, 3, 6, 0],
88-
[ 6, 4, 8, 1, 1, 1]])
87+
tensor([[1, 1, 4, 3, 6, 0],
88+
[6, 4, 8, 1, 1, 1]])
8989
"""
9090
src, out, index, dim = gen(src, index, dim, out, dim_size, fill_value)
9191
return ScatterMul.apply(out, src, index, dim)

0 commit comments

Comments
 (0)