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

Method run

test/expr/ExecutorResetTest.cpp:133–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131MNNTestSuiteRegister(ExecutorResetTest, "expr/ExecutorReset");
132class ExecutorConfigTest : public MNNTestCase {
133 virtual bool run(int precision) {
134 std::vector<std::thread> threads;
135 int threadNumber = 5;
136 for (int i=0; i<threadNumber; ++i) {
137 threads.emplace_back(([] {
138 for (int u=0; u<10; ++u) {
139 MNN::ScheduleConfig config;
140 std::shared_ptr<Executor::RuntimeManager> rt(Executor::RuntimeManager::createRuntimeManager(config));
141 }
142 }));
143 }
144 for (auto& t : threads) {
145 t.join();
146 }
147 return true;
148 }};
149MNNTestSuiteRegister(ExecutorConfigTest, "expr/ExecutorConfigTest");
150
151class ExecutorCallBackTest : public MNNTestCase {

Callers

nothing calls this directly

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected