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

Function DumpStaticGraph

core/lib/static_graph.cpp:554–594  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

552}
553
554void DumpStaticGraph(StaticGraph* graph)
555{
556 std::ostream& os = std::cout;
557
558 os << "content of graph: " << graph->model_name << "\n";
559 os << "graph identity\t\tdoman: " << graph->domain << " name: " << graph->name << " version: " << graph->version
560 << "\n";
561 os << "graph source format: " << graph->source_format << " source: " << graph->source << "\n";
562 os << "Input node: " << graph->input_node_list.size() << "\n";
563
564 for(unsigned int i = 0; i < graph->input_node_list.size(); i++)
565 {
566 int node_idx = graph->input_node_list[i];
567 StaticNodePtr node_ptr = graph->node_list[node_idx];
568
569 os << "\tI" << i << ": " << node_ptr->name << "\n";
570 }
571
572 os << "Output node: " << graph->output_node_list.size() << "\n";
573
574 for(unsigned int i = 0; i < graph->output_node_list.size(); i++)
575 {
576 int node_idx = graph->output_node_list[i];
577 StaticNodePtr node_ptr = graph->node_list[node_idx];
578
579 os << "\tO" << i << ": " << node_ptr->name << "\n";
580 }
581
582 os << "Node list: " << graph->node_list.size() << "\n";
583
584 for(unsigned int i = 0; i < graph->node_list.size(); i++)
585 {
586 os << i << ": ";
587
588 StaticNodePtr node_ptr = graph->node_list[i];
589
590 DumpStaticNode(graph, node_ptr.get(), os);
591
592 os << "\n";
593 }
594}
595
596} // namespace TEngine

Callers 11

dump_modelFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
test_tfserializerFunction · 0.85

Calls 3

DumpStaticNodeFunction · 0.85
getMethod · 0.80
sizeMethod · 0.45

Tested by 10

mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
test_tfserializerFunction · 0.68