| 80 | } |
| 81 | |
| 82 | bool ResizeKernel::IsCVAvailable(TContext* context) const { |
| 83 | auto src_dtype = context->getAttrOprand("operand:0").dtype; |
| 84 | bool dtype_ok = src_dtype == "ui8" || Utils::is_float_dtype(src_dtype); |
| 85 | bool mode_ok = context->getAttrStr("imode") == "LINEAR" && |
| 86 | context->getAttrStr("format") == "NHWC"; |
| 87 | return dtype_ok && mode_ok; |
| 88 | } |
| 89 | |
| 90 | //! kernel gen |
| 91 | std::string ResizeKernel::GetCVKernelSubSymbol(TContext* context) const { |
nothing calls this directly
no test coverage detected