MCPcopy Create free account
hub / github.com/MegEngine/MegCC / get_mode_sym

Method get_mode_sym

compiler/lib/KernelGen/BareMetal/CvtColor.cpp:240–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238 bool usable(const std::string& mode) { return reg_map.find(mode) != reg_map.end(); }
239 GenFunc get_func(const std::string& mode) { return reg_map[mode].func; }
240 std::string get_mode_sym(const std::string& mode) {
241 return reg_map[mode].mode_symbol;
242 }
243 std::unordered_map<std::string, CvtColorRegEntry> reg_map;
244};
245

Callers 1

GetCVKernelSubSymbolMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected