MCPcopy Create free account
hub / github.com/OAID/Tengine / CreateGraphHandle

Method CreateGraphHandle

driver/cpu/cpu_driver.cpp:93–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93void* CPUDriver::CreateGraphHandle(Device* dev, Subgraph* graph)
94{
95 DevContext* context = new DevContext();
96 CPUDevice* cpu_dev = dynamic_cast<CPUDevice*>(dev);
97
98 context->dev = cpu_dev;
99 context->sub_graph = graph;
100 context->graph_cb = nullptr;
101 context->optimized_graph = nullptr;
102
103 return context;
104}
105
106void* CPUDriver::CreateGraphHandle(Device* dev)
107{

Callers 1

DevCreateGraphHandleMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected