MCPcopy Create free account
hub / github.com/UbiquitousLearning/mllm / parseHTPArch

Function parseHTPArch

mllm/backends/qnn/aot/QnnTargetMachineParser.cpp:14–23  ·  view source on GitHub ↗

Helper function to parse HTP architecture from string

Source from the content-addressed store, hash-verified

12
13// Helper function to parse HTP architecture from string
14QcomHTPArch parseHTPArch(const std::string& arch_str) {
15 if (arch_str == "NONE") return QcomHTPArch::NONE;
16 if (arch_str == "V68") return QcomHTPArch::V68;
17 if (arch_str == "V69") return QcomHTPArch::V69;
18 if (arch_str == "V73") return QcomHTPArch::V73;
19 if (arch_str == "V75") return QcomHTPArch::V75;
20 if (arch_str == "V79") return QcomHTPArch::V79;
21 if (arch_str == "V81") return QcomHTPArch::V81;
22 throw std::invalid_argument("Unknown HTP architecture: " + arch_str);
23}
24
25// Helper function to parse chipset from string
26QcomChipset parseChipset(const std::string& chipset_str) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected