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

Method DevCreateGraphHandle

executor/lib/node_dev_executor.cpp:65–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65void* NodeExecutor::DevCreateGraphHandle(Subgraph* graph)
66{
67 void* handle = backend_dev_->CreateGraphHandle();
68
69 if(handle == nullptr)
70 return nullptr;
71
72 NodeContext* context = new NodeContext();
73
74 context->dev_context = handle;
75 context->sub_graph = graph;
76 context->optimized_graph = nullptr;
77
78 return context;
79}
80
81bool NodeExecutor::DevOptimizeGraph(void* graph_handle)
82{

Callers

nothing calls this directly

Calls 1

CreateGraphHandleMethod · 0.45

Tested by

no test coverage detected