| 178 | } |
| 179 | |
| 180 | std::vector<NodeIdxPair> get_driving_nodes(const INode &node) |
| 181 | { |
| 182 | std::vector<NodeIdxPair> driving_nodes; |
| 183 | |
| 184 | const Graph *g = node.graph(); |
| 185 | ARM_COMPUTE_ERROR_ON(g == nullptr); |
| 186 | |
| 187 | for (auto &output_edge_id : node.output_edges()) |
| 188 | { |
| 189 | auto output_edge = g->edge(output_edge_id); |
| 190 | if (output_edge != nullptr) |
| 191 | { |
| 192 | ARM_COMPUTE_ERROR_ON(output_edge->consumer() == nullptr); |
| 193 | driving_nodes.push_back({output_edge->consumer_id(), output_edge->consumer_idx()}); |
| 194 | } |
| 195 | } |
| 196 | |
| 197 | return driving_nodes; |
| 198 | } |
| 199 | |
| 200 | std::vector<NodeIdxPair> get_driver_nodes(const INode &node) |
| 201 | { |
no test coverage detected