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

Method DevSyncRun

executor/lib/node_dev_executor.cpp:236–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234}
235
236bool NodeExecutor::DevSyncRun(void* graph_handle)
237{
238 NodeContext* context = reinterpret_cast<NodeContext*>(graph_handle);
239
240 Subgraph* graph = context->optimized_graph;
241
242 for(unsigned int i = 0; i < graph->seq_nodes.size(); i++)
243 {
244 Node* node = graph->seq_nodes[i];
245 Operator* op = node->GetOp();
246
247 if(op->GetName() == "Const" || op->GetName() == "Input")
248 continue;
249
250 node->SetAttr("DEV_RUN", true);
251
252 if(!backend_dev_->SyncRun(context->dev_context, node))
253 return false;
254 }
255
256 return true;
257}
258
259bool NodeExecutor::DevPostrun(void* graph_handle)
260{

Callers

nothing calls this directly

Calls 5

GetOpMethod · 0.80
GetNameMethod · 0.80
sizeMethod · 0.45
SetAttrMethod · 0.45
SyncRunMethod · 0.45

Tested by

no test coverage detected