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

Method SetupGlobalExecutor

test/model/TransformerTest.cpp:61–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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);

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected