Commit d86c6ff1 authored by rusty1s's avatar rusty1s
Browse files

typos

parent 0802c75b
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
#define MAX_NEIGHBORS 50 #define MAX_NEIGHBORS 50
using namespace std;
edge_t split(const rel_t &rel_type) { edge_t split(const rel_t &rel_type) {
vector<string> result(3); vector<string> result(3);
int start = 0, end; int start = 0, end;
...@@ -17,8 +19,7 @@ edge_t split(const rel_t &rel_type) { ...@@ -17,8 +19,7 @@ edge_t split(const rel_t &rel_type) {
void update_budget_( void update_budget_(
unordered_map<node_t, unordered_map<int64_t, float>> *budget_dict, unordered_map<node_t, unordered_map<int64_t, float>> *budget_dict,
const node_t &node_type, // const node_t &node_type, const vector<int64_t> &samples,
const vector<int64_t> &samples,
const unordered_map<node_t, unordered_map<int64_t, int64_t>> const unordered_map<node_t, unordered_map<int64_t, int64_t>>
&to_local_node_dict, &to_local_node_dict,
const unordered_map<rel_t, edge_t> &to_edge_type, const unordered_map<rel_t, edge_t> &to_edge_type,
...@@ -132,10 +133,7 @@ hgt_sample_cpu(const c10::Dict<rel_t, torch::Tensor> &colptr_dict, ...@@ -132,10 +133,7 @@ hgt_sample_cpu(const c10::Dict<rel_t, torch::Tensor> &colptr_dict,
to_local_node[v] = i; to_local_node[v] = i;
} }
} }
b = steady_clock::now();
std::cout << "3=" << duration_cast<microseconds>(b - a).count() << std::endl;
a = steady_clock::now();
// Update the budget based on the initial input set (line 3-5): // Update the budget based on the initial input set (line 3-5):
for (const auto &kv : nodes_dict) { for (const auto &kv : nodes_dict) {
const auto &node_type = kv.first; const auto &node_type = kv.first;
......
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