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
dcd88f5a
Commit
dcd88f5a
authored
Apr 27, 2018
by
rusty1s
Browse files
min cluster
parent
4d72a05e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
aten/cpu/cluster.cpp
aten/cpu/cluster.cpp
+2
-1
No files found.
aten/cpu/cluster.cpp
View file @
dcd88f5a
...
@@ -36,7 +36,8 @@ at::Tensor graclus(at::Tensor row, at::Tensor col, int64_t num_nodes) {
...
@@ -36,7 +36,8 @@ at::Tensor graclus(at::Tensor row, at::Tensor col, int64_t num_nodes) {
for
(
d_idx
=
0
;
d_idx
<
deg_data
[
r
];
d_idx
++
)
{
for
(
d_idx
=
0
;
d_idx
<
deg_data
[
r
];
d_idx
++
)
{
c
=
col_data
[
e_idx
+
d_idx
];
c
=
col_data
[
e_idx
+
d_idx
];
if
(
cluster_data
[
c
]
<
0
)
{
if
(
cluster_data
[
c
]
<
0
)
{
cluster_data
[
c
]
=
r
;
cluster_data
[
r
]
=
std
::
min
(
r
,
c
);
cluster_data
[
c
]
=
std
::
min
(
r
,
c
);
break
;
break
;
}
}
}
}
...
...
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