kernel gen
| 455 | |
| 456 | //! kernel gen |
| 457 | std::string CvtColorKernel::GetCVKernelSubSymbol(TContext* context) const { |
| 458 | std::stringstream ss; |
| 459 | auto src_dtype = context->getAttrOprand("operand:0").dtype; |
| 460 | auto mode = context->getAttrStr("mode"); |
| 461 | auto mode_str = g_cvt_reg.get_mode_sym(mode); |
| 462 | ss << "tinycv_cvt_" << mode_str << "_" << src_dtype; |
| 463 | return ss.str(); |
| 464 | } |
| 465 | |
| 466 | std::string CvtColorKernel::GetCVKernelSignature(TContext* context) const { |
| 467 | return GetCVKernelSymbol(context) + "(const TinyMat* src, const TinyMat* dst)"; |
nothing calls this directly
no test coverage detected