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

Method GetKernelSymbol

compiler/lib/KernelGen/BareMetal/ElemwiseMultiType.cpp:65–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65std::string ElemwiseMultiTypeKernel::GetKernelSymbol(TContext* context) const {
66 std::stringstream ss;
67 ss << "kernel_elementwise_multitype";
68 ss << "_" << context->getAttrStr("mode");
69 ss << "_" << SymbolHelper::gen_io_str(context);
70 return ss.str();
71}
72
73std::string ElemwiseMultiTypeKernel::GetKernelBody(TContext* context) const {
74 auto mode = context->getAttrStr("mode");

Callers

nothing calls this directly

Calls 1

getAttrStrMethod · 0.80

Tested by

no test coverage detected