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

Method SetGraphOutputNode

core/lib/graph_executor.cpp:290–303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

288}
289
290bool GraphExecutor::SetGraphOutputNode(const std::vector<std::string>& node_name_list)
291{
292 graph_->ResetOutputNode();
293
294 for(unsigned int i = 0; i < node_name_list.size(); i++)
295 {
296 if(!graph_->AddOutputNode(node_name_list[i]))
297 return false;
298 }
299
300 graph_->StripGraph();
301
302 return true;
303}
304
305Node* GraphExecutor::FindNode(const std::string& name)
306{

Callers

nothing calls this directly

Calls 4

ResetOutputNodeMethod · 0.80
StripGraphMethod · 0.80
sizeMethod · 0.45
AddOutputNodeMethod · 0.45

Tested by

no test coverage detected