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

Method run

test/model/MobileNetTest.cpp:222–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

220 }
221
222 virtual bool run(int precision) {
223 auto net = MNN::Interpreter::createFromFile(this->path().c_str());
224 if (NULL == net) {
225 return false;
226 }
227 ScheduleConfig cpuconfig;
228 cpuconfig.type = MNN_FORWARD_CPU;
229 BackendConfig bnConfig;
230 bnConfig.precision = BackendConfig::Precision_Low;
231 cpuconfig.backendConfig = &bnConfig;
232 auto session = net->createSession(cpuconfig);
233 net->runSession(session);
234 delete net;
235 return true;
236 }
237};
238MNNTestSuiteRegister(ModelTest, "model/model_test");

Callers

nothing calls this directly

Calls 4

pathMethod · 0.95
runSessionMethod · 0.80
c_strMethod · 0.45
createSessionMethod · 0.45

Tested by

no test coverage detected