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

Method traceOrOptimize

express/module/Module.cpp:523–536  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

521 return new PipelineModule(inputs, outputs);
522}
523int Module::traceOrOptimize(Interpreter::SessionMode stage) {
524 auto code = this->onOptimize(stage);
525 if (code != 0) {
526 // Has Error
527 return code;
528 }
529 for (auto& m : mChildren) {
530 code = m->traceOrOptimize(stage);
531 if (code != 0) {
532 return code;
533 }
534 }
535 return code;
536}
537
538
539} // namespace Express

Callers 6

mainFunction · 0.80
loadMethod · 0.80
loadModuleMethod · 0.80
runMethod · 0.80
runMethod · 0.80

Calls 1

onOptimizeMethod · 0.45

Tested by 1

mainFunction · 0.64