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-cluster
Commits
69fada5e
Commit
69fada5e
authored
Mar 16, 2020
by
rusty1s
Browse files
graclus fix
parent
baba7c7a
Changes
3
Hide 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_cluster/__init__.py
torch_cluster/__init__.py
+1
-1
torch_cluster/graclus.py
torch_cluster/graclus.py
+1
-1
No files found.
setup.py
View file @
69fada5e
...
@@ -63,7 +63,7 @@ tests_require = ['pytest', 'pytest-cov']
...
@@ -63,7 +63,7 @@ tests_require = ['pytest', 'pytest-cov']
setup
(
setup
(
name
=
'torch_cluster'
,
name
=
'torch_cluster'
,
version
=
'1.5.
0
'
,
version
=
'1.5.
1
'
,
author
=
'Matthias Fey'
,
author
=
'Matthias Fey'
,
author_email
=
'matthias.fey@tu-dortmund.de'
,
author_email
=
'matthias.fey@tu-dortmund.de'
,
url
=
'https://github.com/rusty1s/pytorch_cluster'
,
url
=
'https://github.com/rusty1s/pytorch_cluster'
,
...
...
torch_cluster/__init__.py
View file @
69fada5e
...
@@ -3,7 +3,7 @@ import os.path as osp
...
@@ -3,7 +3,7 @@ import os.path as osp
import
torch
import
torch
__version__
=
'1.5.
0
'
__version__
=
'1.5.
1
'
expected_torch_version
=
(
1
,
4
)
expected_torch_version
=
(
1
,
4
)
try
:
try
:
...
...
torch_cluster/graclus.py
View file @
69fada5e
...
@@ -33,7 +33,7 @@ def graclus_cluster(row: torch.Tensor, col: torch.Tensor,
...
@@ -33,7 +33,7 @@ def graclus_cluster(row: torch.Tensor, col: torch.Tensor,
num_nodes
=
max
(
int
(
row
.
max
()),
int
(
col
.
max
()))
+
1
num_nodes
=
max
(
int
(
row
.
max
()),
int
(
col
.
max
()))
+
1
# Remove self-loops.
# Remove self-loops.
mask
=
row
=
=
col
mask
=
row
!
=
col
row
,
col
=
row
[
mask
],
col
[
mask
]
row
,
col
=
row
[
mask
],
col
[
mask
]
if
weight
is
not
None
:
if
weight
is
not
None
:
...
...
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