| 11 | using namespace GeneralIntrinsic; |
| 12 | |
| 13 | bool ResizeKernel::IsAvailable(TContext* context) const { |
| 14 | auto src_dtype = context->getAttrOprand("operand:0").dtype; |
| 15 | bool dtype_ok = src_dtype == "f32"; |
| 16 | bool mode_ok = context->getAttrStr("imode") == "LINEAR"; |
| 17 | bool format_ok = context->getAttrStr("format") == "NCHW" || |
| 18 | context->getAttrStr("format") == "NCHW44"; |
| 19 | return dtype_ok && mode_ok && format_ok; |
| 20 | } |
| 21 | //! kernel gen |
| 22 | std::string ResizeKernel::GetKernelSymbol(TContext* context) const { |
| 23 | std::stringstream ss; |
nothing calls this directly
no test coverage detected