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

Method run

test/op/SizeTest.cpp:40–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38 return true;
39 }
40 virtual bool run(int precision) {
41 ExecutorScope::Current()->lazyEval = false;
42 auto res = _run(precision, false);
43 if (!res) {
44 FUNC_PRINT(1);
45 return false;
46 }
47 ExecutorScope::Current()->lazyEval = true;
48 ExecutorScope::Current()->setLazyComputeMode(MNN::Express::Executor::LAZY_CONTENT);
49 res = _run(precision, true);
50 if (!res) {
51 FUNC_PRINT(1);
52 return false;
53 }
54 ExecutorScope::Current()->setLazyComputeMode(MNN::Express::Executor::LAZY_FULL);
55 res = _run(precision, true);
56 return res;
57 }
58};
59MNNTestSuiteRegister(SizeTest, "op/size");

Callers

nothing calls this directly

Calls 2

_runFunction · 0.85
setLazyComputeModeMethod · 0.80

Tested by

no test coverage detected