Unverified Commit f7c74ec0 authored by Matthias Fey's avatar Matthias Fey Committed by GitHub
Browse files

update (#268)

parent ac7f314c
...@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment