| 174 | } |
| 175 | |
| 176 | void 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 |
nothing calls this directly
no test coverage detected