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

Method insertOp

tools/converter/source/common/OpCount.cpp:27–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27void OpCount::insertOp(const std::string& framework, const std::string& name) {
28 auto fr = mOps.find(framework);
29 if (fr == mOps.end()) {
30 mOps.insert(std::make_pair(framework, std::set<std::string>{name}));
31 return;
32 }
33 fr->second.insert(name);
34}
35const std::map<std::string, std::set<std::string>>& OpCount::getMap() {
36 return mOps;
37}

Callers 11

OpConverterRegisterMethod · 0.80
insertMethod · 0.80
insertMethod · 0.80
getConvertMapMethod · 0.80
insertMethod · 0.80
insertMethod · 0.80
insertMethod · 0.80
insertMethod · 0.80
findMethod · 0.80

Calls 3

findMethod · 0.45
endMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected