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

Method GetKernelSymbol

compiler/lib/KernelGen/BareMetal/IndexingOneHot.cpp:19–24  ·  view source on GitHub ↗

kernel gen

Source from the content-addressed store, hash-verified

17}
18//! kernel gen
19std::string IndexingOneHotKernel::GetKernelSymbol(TContext* context) const {
20 std::stringstream ss;
21 ss << "kernel_indexingonehot_" << context->getAttrInt("axis") << "_"
22 << context->getAttrOprand("operand:0").dtype;
23 return ss.str();
24}
25
26std::string IndexingOneHotKernel::GetKernelBody(TContext* context) const {
27 std::stringstream axis_init_ss;

Callers

nothing calls this directly

Calls 1

getAttrOprandMethod · 0.80

Tested by

no test coverage detected