| 31 | } |
| 32 | |
| 33 | static RetCode FillKernels(const ir::Graph* graph, RuntimePartitionInfo* info) { |
| 34 | auto topo = graph->topo.get(); |
| 35 | for (auto it = topo->CreateNodeIter(); it->IsValid(); it->Forward()) { |
| 36 | auto node = it->Get(); |
| 37 | info->kernels.emplace(node->GetId(), unique_ptr<OptKernel>(new DemoOptKernel(node))); |
| 38 | } |
| 39 | return RC_SUCCESS; |
| 40 | } |
| 41 | |
| 42 | RetCode DemoEngine::ProcessGraph(const utils::SharedResource&, ir::Graph* graph, RuntimePartitionInfo* info) { |
| 43 | auto status = utils::LoadConstants(*graph, &device_, &info->constants); |
no test coverage detected