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
f7c74ec0
Unverified
Commit
f7c74ec0
authored
Aug 18, 2022
by
Matthias Fey
Committed by
GitHub
Aug 18, 2022
Browse files
update (#268)
parent
ac7f314c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
csrc/cpu/neighbor_sample_cpu.cpp
csrc/cpu/neighbor_sample_cpu.cpp
+3
-3
No files found.
csrc/cpu/neighbor_sample_cpu.cpp
View file @
f7c74ec0
...
@@ -365,11 +365,11 @@ hetero_sample(const vector<node_t> &node_types,
...
@@ -365,11 +365,11 @@ hetero_sample(const vector<node_t> &node_types,
if
(
temporal
)
{
if
(
temporal
)
{
for
(
const
auto
&
kv
:
temp_samples_dict
)
{
for
(
const
auto
&
kv
:
temp_samples_dict
)
{
slice_dict
[
kv
.
first
]
=
{
0
,
kv
.
second
.
size
()};
slice_dict
[
kv
.
first
]
=
{
slice_dict
.
at
(
kv
.
first
).
second
,
kv
.
second
.
size
()};
}
}
}
else
{
}
else
{
for
(
const
auto
&
kv
:
samples_dict
)
for
(
const
auto
&
kv
:
samples_dict
)
slice_dict
[
kv
.
first
]
=
{
0
,
kv
.
second
.
size
()};
slice_dict
[
kv
.
first
]
=
{
slice_dict
.
at
(
kv
.
first
).
second
,
kv
.
second
.
size
()};
}
}
}
}
...
@@ -504,4 +504,4 @@ hetero_temporal_neighbor_sample_cpu(
...
@@ -504,4 +504,4 @@ hetero_temporal_neighbor_sample_cpu(
node_types
,
edge_types
,
colptr_dict
,
row_dict
,
input_node_dict
,
node_types
,
edge_types
,
colptr_dict
,
row_dict
,
input_node_dict
,
num_neighbors_dict
,
node_time_dict
,
num_hops
);
num_neighbors_dict
,
node_time_dict
,
num_hops
);
}
}
}
}
\ No newline at end of file
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