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
03f2caa9
Unverified
Commit
03f2caa9
authored
Jul 27, 2022
by
Manan Shah
Committed by
GitHub
Jul 28, 2022
Browse files
init (#263)
parent
27633e2e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
csrc/cpu/hgt_sample_cpu.cpp
csrc/cpu/hgt_sample_cpu.cpp
+4
-6
No files found.
csrc/cpu/hgt_sample_cpu.cpp
View file @
03f2caa9
...
@@ -224,12 +224,10 @@ hgt_sample_cpu(const c10::Dict<rel_t, torch::Tensor> &colptr_dict,
...
@@ -224,12 +224,10 @@ hgt_sample_cpu(const c10::Dict<rel_t, torch::Tensor> &colptr_dict,
}
}
}
}
}
}
if
(
rows
.
size
()
>
0
)
{
out_row_dict
.
insert
(
rel_type
,
from_vector
<
int64_t
>
(
rows
));
out_row_dict
.
insert
(
rel_type
,
from_vector
<
int64_t
>
(
rows
));
out_col_dict
.
insert
(
rel_type
,
from_vector
<
int64_t
>
(
cols
));
out_col_dict
.
insert
(
rel_type
,
from_vector
<
int64_t
>
(
cols
));
out_edge_dict
.
insert
(
rel_type
,
from_vector
<
int64_t
>
(
edges
));
out_edge_dict
.
insert
(
rel_type
,
from_vector
<
int64_t
>
(
edges
));
}
}
}
// Generate tensor-valued output node dictionary (line 20):
// Generate tensor-valued output node dictionary (line 20):
for
(
const
auto
&
kv
:
nodes_dict
)
{
for
(
const
auto
&
kv
:
nodes_dict
)
{
...
...
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