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

Method GetCVKernelSubSymbol

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

kernel gen

Source from the content-addressed store, hash-verified

17
18//! kernel gen
19std::string FlipKernel::GetCVKernelSubSymbol(TContext* context) const {
20 std::stringstream ss;
21 auto src_dtype = context->getAttrOprand("operand:0").dtype;
22 ss << "tinycv_flip_" << src_dtype;
23 return ss.str();
24}
25
26std::string FlipKernel::GetCVKernelSignature(TContext* context) const {
27 return GetCVKernelSymbol(context) +

Callers

nothing calls this directly

Calls 1

getAttrOprandMethod · 0.80

Tested by

no test coverage detected