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

Function CreateStaticNode

core/lib/static_graph.cpp:306–319  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

304}
305
306StaticNode* CreateStaticNode(StaticGraph* graph, const std::string& node_name)
307{
308 /* the most important thing is to set the node idx */
309
310 int node_idx = graph->node_list.size();
311 StaticNodePtr node_ptr(new StaticNode());
312
313 node_ptr->name = node_name;
314 node_ptr->index = node_idx;
315
316 graph->node_list.emplace_back(node_ptr);
317
318 return node_ptr.get();
319}
320
321const std::string& GetNodeName(StaticNode* node)
322{

Callers 15

LoadGraphMethod · 0.85
LoadGraphMethod · 0.85
LoadGraphMethod · 0.85
LoadCaffeBlobFunction · 0.85
CreatePresetNodeFunction · 0.85
LoadConstLiteTensorMethod · 0.85
LoadLiteNodeMethod · 0.85
CreateGraphInputNodeMethod · 0.85
LoadConstTensorMethod · 0.85
CreateInputNodeMethod · 0.85
LoadGraphMethod · 0.85
LoadMxnetEltScalarFunction · 0.85

Calls 2

getMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected