| 43 | } |
| 44 | |
| 45 | std::vector<RawCodeKernelTemplate*> KernelTemplateRegistry::getCandidates( |
| 46 | Operation* op) { |
| 47 | std::vector<RawCodeKernelTemplate*> candidates; |
| 48 | for (auto&& i : kernelTemplates) { |
| 49 | if (i->match(op)) { |
| 50 | candidates.push_back(i.get()); |
| 51 | } |
| 52 | } |
| 53 | return candidates; |
| 54 | } |
| 55 | |
| 56 | Operation* RawCodeKernelTemplate::instantiate( |
| 57 | OpBuilder& builder, TContext* context, bool is_internal_func) { |
no test coverage detected