| 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 | }; |
| 238 | MNNTestSuiteRegister(ModelTest, "model/model_test"); |
nothing calls this directly
no test coverage detected