kernel gen
| 256 | |
| 257 | //! kernel gen |
| 258 | std::string CvtColorKernel::GetCVKernelSubSymbol(TContext* context) const { |
| 259 | std::stringstream ss; |
| 260 | auto src_dtype = context->getAttrOprand("operand:0").dtype; |
| 261 | auto mode = context->getAttrStr("mode"); |
| 262 | auto mode_str = g_cvt_reg.get_mode_sym(mode); |
| 263 | ss << "tinycv_cvt_" << mode_str << "_" << src_dtype; |
| 264 | return ss.str(); |
| 265 | } |
| 266 | |
| 267 | std::string CvtColorKernel::GetCVKernelSignature(TContext* context) const { |
| 268 | return GetCVKernelSymbol(context) + "(const TinyMat* src, const TinyMat* dst)"; |
nothing calls this directly
no test coverage detected