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

Method _execute

express/module/StaticModule.cpp:580–594  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

578}
579
580ErrorCode StaticModule::_execute() {
581 ErrorCode code;
582 if (mResource->mModes.callBackMode == Interpreter::Session_Debug) {
583 auto globalExecutor = ExecutorScope::Current();
584 auto debug = globalExecutor->getDebugTools();
585 if (debug->after != nullptr && debug->before != nullptr) {
586 code = mSession->runWithCallBack(debug->before, debug->after);
587 } else {
588 code = mSession->run();
589 }
590 } else {
591 code = mSession->run();
592 }
593 return code;
594}
595
596std::vector<Express::VARP> StaticModule::onForward(const std::vector<Express::VARP>& inputs) {
597

Callers

nothing calls this directly

Calls 2

runWithCallBackMethod · 0.80
runMethod · 0.45

Tested by

no test coverage detected