| 430 | } // namespace |
| 431 | |
| 432 | bool CvtColorKernel::IsCVAvailable(TContext* context) const { |
| 433 | auto src_dtype = context->getAttrOprand("operand:0").dtype; |
| 434 | bool dtype_ok = Utils::is_int_dtype(src_dtype, 8); |
| 435 | bool mode_ok = g_cvt_reg.usable(context->getAttrStr("mode")); |
| 436 | return dtype_ok && mode_ok; |
| 437 | } |
| 438 | |
| 439 | //! kernel gen |
| 440 | std::string CvtColorKernel::GetCVKernelSubSymbol(TContext* context) const { |
nothing calls this directly
no test coverage detected