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

Method GetKernelSymbol

compiler/lib/CodeGen/Elemwise.cpp:43–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43std::string ElemwiseKernel::GetKernelSymbol(TContext* context) const {
44 std::stringstream ss;
45 ss << "mlir_auto_elementwise";
46 ss << "_" << context->getAttrStr("mode");
47 ss << "_" << context->getAttrOprand("operand:0").shape.size();
48 return ss.str();
49}
50
51void ElemwiseKernel::CreateCompute(
52 Block* entryBlock, mlir::OpBuilder& op_builder, mlir::MLIRContext* ctx,

Callers

nothing calls this directly

Calls 2

getAttrStrMethod · 0.80
getAttrOprandMethod · 0.80

Tested by

no test coverage detected