MCPcopy Create free account
hub / github.com/Tencent/embedx / Build

Method Build

src/graph/post_builder.cc:62–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60};
61
62bool PostBuilderHelper::Build(std::vector<vec_int_t>* uniq_nodes_list,
63 std::vector<vec_float_t>* uniq_freqs_list,
64 vec_int_t* total_freqs, int thread_num) {
65 uniq_nodes_list_ = uniq_nodes_list;
66 uniq_freqs_list_ = uniq_freqs_list;
67 total_freqs_ = total_freqs;
68
69 Clear();
70 Prepare(ns_size_, estimated_size_);
71
72 return Process(store_->Keys(), thread_num);
73}
74
75void PostBuilderHelper::Clear() noexcept {
76 uniq_nodes_list_->clear();

Callers 1

CreateMethod · 0.45

Calls 1

LoadConfigFunction · 0.85

Tested by

no test coverage detected