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

Method GetCVKernelSubSymbol

compiler/lib/KernelGen/BareMetal/Resize.cpp:107–112  ·  view source on GitHub ↗

kernel gen

Source from the content-addressed store, hash-verified

105
106//! kernel gen
107std::string ResizeKernel::GetCVKernelSubSymbol(TContext* context) const {
108 std::stringstream ss;
109 auto src_dtype = context->getAttrOprand("operand:0").dtype;
110 ss << "tinycv_resize_linear_" << src_dtype;
111 return ss.str();
112}
113
114std::string ResizeKernel::GetCVKernelSignature(TContext* context) const {
115 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