| 59 | } |
| 60 | |
| 61 | void SetupGlobalExecutor() { |
| 62 | auto exe = Executor::getGlobalExecutor(); |
| 63 | MNN::BackendConfig config; |
| 64 | config.precision = MNN::BackendConfig::Precision_Normal; |
| 65 | config.power = MNN::BackendConfig::Power_High; |
| 66 | exe->setGlobalExecutorConfig(MNN_FORWARD_CPU, config, 1 /*num_threads*/); |
| 67 | } |
| 68 | |
| 69 | int ReadInputFromFile(const char* input_file, std::vector<float>* input) { |
| 70 | std::ifstream f(input_file); |
nothing calls this directly
no test coverage detected