MCPcopy Create free account
hub / github.com/alibaba/MNN / _findPos

Function _findPos

express/module/WhileModule.cpp:19–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17namespace MNN {
18namespace Express {
19static int _findPos(const std::vector<std::string>& names, const std::string& key) {
20 for (int i=0; i<names.size(); ++i) {
21 if (names[i] == key) {
22 return i;
23 }
24 }
25 return -1;
26}
27WhileModule* WhileModule::create(const Op* op, const std::map<std::string, SubGraph>& subGraph) {
28 auto module = new WhileModule;
29 module->setType("WhileModule");

Callers 1

createMethod · 0.70

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected