Skip to content

Commit 69fada5

Browse files
committed
graclus fix
1 parent baba7c7 commit 69fada5

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
@@ -63,7 +63,7 @@ def get_extensions():
6363

6464
setup(
6565
name='torch_cluster',
66-
version='1.5.0',
66+
version='1.5.1',
6767
author='Matthias Fey',
6868
author_email='[email protected]',
6969
url='https://github.com/rusty1s/pytorch_cluster',

torch_cluster/__init__.py

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

44
import torch
55

6-
__version__ = '1.5.0'
6+
__version__ = '1.5.1'
77
expected_torch_version = (1, 4)
88

99
try:

torch_cluster/graclus.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def graclus_cluster(row: torch.Tensor, col: torch.Tensor,
3333
num_nodes = max(int(row.max()), int(col.max())) + 1
3434

3535
# Remove self-loops.
36-
mask = row == col
36+
mask = row != col
3737
row, col = row[mask], col[mask]
3838

3939
if weight is not None:

0 commit comments

Comments
 (0)