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

Method GetKernelSymbol

compiler/lib/KernelGen/BareMetal/ElemwiseKernel.cpp:433–439  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

431}
432
433std::string ElmwiseKernel::GetKernelSymbol(TContext* context) const {
434 std::stringstream ss;
435 ss << "kernel_elementwise";
436 ss << "_" << context->getAttrStr("mode");
437 ss << "_" << SymbolHelper::gen_io_str(context);
438 return ss.str();
439}
440
441std::string ElmwiseKernel::GetKernelBody(TContext* context) const {
442 auto op0 = context->getAttrOprand("operand:0");

Callers

nothing calls this directly

Calls 1

getAttrStrMethod · 0.80

Tested by

no test coverage detected