MCPcopy Create free account
hub / github.com/OAID/Tengine / Select

Method Select

executor/include/node_ops.hpp:210–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

208struct PrioSelector : public NodeOpsSelector
209{
210 NodeOps* Select(const CPUInfo* cpu_info, Node* node)
211 {
212 auto begin = prio_list.begin();
213 auto end = prio_list.end();
214
215 for(auto ir = begin; ir != end; ir++)
216 {
217 auto match_func = ir->second;
218
219 auto ops = match_func(cpu_info, node);
220
221 if(ops)
222 {
223 ops->need_free = true;
224 return ops;
225 }
226 }
227
228 return nullptr;
229 }
230
231 bool Register(int priority, select_node_ops_t func)
232 {

Callers 1

FindNodeOpsMethod · 0.80

Calls 2

beginMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected