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

Method print_edges

src/graph/printers/DotGraphPrinter.cpp:176–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174}
175
176void DotGraphPrinter::print_edges(const Graph &g, std::ostream &os)
177{
178 for (const auto &e : g.edges())
179 {
180 if (e)
181 {
182 std::string source_node_id = std::string("n") + support::cpp11::to_string(e->producer_id());
183 std::string sink_node_id = std::string("n") + support::cpp11::to_string(e->consumer_id());
184 os << source_node_id << " -> " << sink_node_id << " ";
185 const Tensor *t = e->tensor();
186 ARM_COMPUTE_ERROR_ON(t == nullptr);
187 os << R"([label = ")" << t->desc().shape << R"( \n )" << t->desc().data_type << R"( \n )"
188 << t->desc().layout << R"("])";
189 os << ";\n";
190 }
191 }
192}
193} // namespace graph
194} // namespace arm_compute

Callers

nothing calls this directly

Calls 4

producer_idMethod · 0.80
consumer_idMethod · 0.80
to_stringFunction · 0.50
tensorMethod · 0.45

Tested by

no test coverage detected