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

Method Predict

src/tools/predictor_main.cc:104–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104void Predictor::Predict() {
105 DXCHECK(remaining_files_.empty());
106 remaining_files_ = files_;
107 std::vector<std::thread> threads;
108 for (int j = 0; j < FLAGS_thread_num; ++j) {
109 threads.emplace_back(&Predictor::PredictEntry, this, j);
110 }
111 for (auto& thread : threads) {
112 thread.join();
113 }
114}
115
116void Predictor::PredictEntry(int thread_id) {
117 for (;;) {

Callers 1

mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected