MCPcopy Create free account
hub / github.com/OpenPPL/ppl.nn / ProcessGraph

Method ProcessGraph

samples/cpp/engine/demo_engine.cc:42–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42RetCode 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
58EngineImpl* DemoEngine::Create() {
59 return new DemoEngine();

Callers

nothing calls this directly

Calls 2

LoadConstantsFunction · 0.85
FillKernelsFunction · 0.85

Tested by

no test coverage detected