| 61 | } |
| 62 | |
| 63 | bool KernelFactory::HasCompatiblePhiKernel(const std::string& op_type) const { |
| 64 | if (phi::OpUtilsMap::Instance().Contains(op_type) || |
| 65 | (kernels_.find(op_type) != kernels_.end())) { |
| 66 | return true; |
| 67 | } |
| 68 | return false; |
| 69 | } |
| 70 | |
| 71 | bool KernelFactory::HasStructuredKernel(const std::string& op_type) const { |
| 72 | auto phi_kernel_name = phi::OpUtilsMap::Instance().GetBaseKernelName(op_type); |
no test coverage detected