kernel gen
| 438 | |
| 439 | //! kernel gen |
| 440 | std::string CvtColorKernel::GetCVKernelSubSymbol(TContext* context) const { |
| 441 | std::stringstream ss; |
| 442 | auto src_dtype = context->getAttrOprand("operand:0").dtype; |
| 443 | auto mode = context->getAttrStr("mode"); |
| 444 | auto mode_str = g_cvt_reg.get_mode_sym(mode); |
| 445 | ss << "tinycv_cvt_" << mode_str << "_" << src_dtype; |
| 446 | return ss.str(); |
| 447 | } |
| 448 | |
| 449 | std::string CvtColorKernel::GetCVKernelSignature(TContext* context) const { |
| 450 | return GetCVKernelSymbol(context) + "(const TinyMat* src, const TinyMat* dst)"; |
nothing calls this directly
no test coverage detected