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

Method GetKernelSymbol

compiler/lib/KernelGen/BareMetal/Pooling.cpp:31–43  ·  view source on GitHub ↗

kernel gen

Source from the content-addressed store, hash-verified

29}
30//! kernel gen
31std::string PoolingImpl::GetKernelSymbol(TContext* context) const {
32 std::stringstream ss;
33 ss << "kernel_pooling";
34 ss << "_" << context->getAttrStr("mode");
35 ss << "_" << context->getAttrStr("format");
36 ss << "_p" << context->getAttrInt("pad_h") << "x" << context->getAttrInt("pad_w");
37 ss << "_s" << context->getAttrInt("stride_h") << "x"
38 << context->getAttrInt("stride_w");
39 ss << "_w" << context->getAttrInt("window_h") << "x"
40 << context->getAttrInt("window_w");
41 ss << "_" << SymbolHelper::gen_io_str(context);
42 return ss.str();
43}
44
45namespace {
46

Callers

nothing calls this directly

Calls 1

getAttrStrMethod · 0.80

Tested by

no test coverage detected