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

Method GetCVKernelSubSymbol

compiler/lib/KernelGen/BareMetal/CVTranspose.cpp:21–26  ·  view source on GitHub ↗

kernel gen

Source from the content-addressed store, hash-verified

19
20//! kernel gen
21std::string CvTransposeKernel::GetCVKernelSubSymbol(TContext* context) const {
22 std::stringstream ss;
23 auto src_dtype = context->getAttrOprand("operand:0").dtype;
24 ss << "tinycv_transpose_" << src_dtype;
25 return ss.str();
26}
27
28std::string CvTransposeKernel::GetCVKernelSignature(TContext* context) const {
29 return GetCVKernelSymbol(context) + "(const TinyMat* src, const TinyMat* dst)";

Callers

nothing calls this directly

Calls 1

getAttrOprandMethod · 0.80

Tested by

no test coverage detected