| 40 | } |
| 41 | |
| 42 | RetCode DemoEngine::ProcessGraph(const utils::SharedResource&, ir::Graph* graph, RuntimePartitionInfo* info) { |
| 43 | auto status = utils::LoadConstants(*graph, &device_, &info->constants); |
| 44 | if (status != RC_SUCCESS) { |
| 45 | LOG(ERROR) << "FillConstants failed: " << GetRetCodeStr(status); |
| 46 | return status; |
| 47 | } |
| 48 | |
| 49 | status = FillKernels(graph, info); |
| 50 | if (status != RC_SUCCESS) { |
| 51 | LOG(ERROR) << "FillKernels failed: " << GetRetCodeStr(status); |
| 52 | return status; |
| 53 | } |
| 54 | |
| 55 | return RC_SUCCESS; |
| 56 | } |
| 57 | |
| 58 | EngineImpl* DemoEngine::Create() { |
| 59 | return new DemoEngine(); |
nothing calls this directly
no test coverage detected