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

Method Dispatch

apps/mnncli/src/cli_command_handler.cpp:16–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14}
15
16int CommandDispatcher::Dispatch(const ParsedCommand& cmd) {
17 auto it = handlers_.find(cmd.command);
18 if (it == handlers_.end()) {
19 return -2; // Not found
20 }
21 return it->second->Handle(cmd);
22}
23
24} // namespace mnncli

Callers 1

RunMethod · 0.80

Calls 3

findMethod · 0.45
endMethod · 0.45
HandleMethod · 0.45

Tested by

no test coverage detected