Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
16
int 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
Run
Method · 0.80
Calls
3
find
Method · 0.45
end
Method · 0.45
Handle
Method · 0.45
Tested by
no test coverage detected