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-sparse
Commits
c8cfd78a
Commit
c8cfd78a
authored
Jun 27, 2021
by
Chantat Eksombatchai
Browse files
update typo
parent
69b590df
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
csrc/cpu/hg_sample_cpu.cpp
csrc/cpu/hg_sample_cpu.cpp
+1
-1
No files found.
csrc/cpu/hg_sample_cpu.cpp
View file @
c8cfd78a
...
...
@@ -37,7 +37,7 @@ void update_budget(
int64_t
row_end_idx
=
row_ptr_raw
[
added_node_idx
+
1
];
if
(
row_start_idx
!=
row_end_idx
)
{
// Compute the norm of degree and update the budget for the neighbors of added_node_idx
float
norm_deg
=
1
/
(
float
)(
row_end_idx
-
row_start_idx
);
float
norm_deg
=
1
.
/
(
float
)(
row_end_idx
-
row_start_idx
);
for
(
int64_t
j
=
row_start_idx
;
j
<
row_end_idx
;
j
++
)
{
if
(
sampled_nodes
.
find
(
col_raw
[
j
])
==
sampled_nodes
.
end
())
{
budget
[
col_raw
[
j
]]
+=
norm_deg
;
...
...
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