MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / print_nodes

Method print_nodes

src/graph/printers/DotGraphPrinter.cpp:153–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151}
152
153void DotGraphPrinter::print_nodes(const Graph &g, std::ostream &os)
154{
155 for (const auto &n : g.nodes())
156 {
157 if (n)
158 {
159 // Output node id
160 std::string node_id = std::string("n") + support::cpp11::to_string(n->id());
161 os << node_id << " ";
162
163 // Output label
164 n->accept(_dot_node_visitor);
165
166 std::string name = n->name().empty() ? node_id : n->name();
167 auto node_description = _dot_node_visitor.info();
168
169 os << R"([label = ")" << name << R"( \n )" << n->assigned_target() << R"( \n )" << node_description
170 << R"("])";
171 os << ";\n";
172 }
173 }
174}
175
176void DotGraphPrinter::print_edges(const Graph &g, std::ostream &os)
177{

Callers

nothing calls this directly

Calls 7

assigned_targetMethod · 0.80
to_stringFunction · 0.50
idMethod · 0.45
acceptMethod · 0.45
emptyMethod · 0.45
nameMethod · 0.45
infoMethod · 0.45

Tested by

no test coverage detected