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

Method GetCVKernelSubSymbol

compiler/lib/KernelGen/GeneralIntrinsic/Resize.cpp:91–96  ·  view source on GitHub ↗

kernel gen

Source from the content-addressed store, hash-verified

89
90//! kernel gen
91std::string ResizeKernel::GetCVKernelSubSymbol(TContext* context) const {
92 std::stringstream ss;
93 auto src_dtype = context->getAttrOprand("operand:0").dtype;
94 ss << "tinycv_resize_linear_" << src_dtype;
95 return ss.str();
96}
97
98std::string ResizeKernel::GetCVKernelSignature(TContext* context) const {
99 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