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

Function get_driver_nodes

src/graph/Utils.cpp:200–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198}
199
200std::vector<NodeIdxPair> get_driver_nodes(const INode &node)
201{
202 std::vector<NodeIdxPair> driver_nodes;
203
204 const Graph *g = node.graph();
205 ARM_COMPUTE_ERROR_ON(g == nullptr);
206
207 for (auto &input_edge_id : node.input_edges())
208 {
209 auto input_edge = g->edge(input_edge_id);
210 if (input_edge != nullptr)
211 {
212 ARM_COMPUTE_ERROR_ON(input_edge->producer() == nullptr);
213 driver_nodes.push_back({input_edge->producer_id(), input_edge->producer_idx()});
214 }
215 }
216
217 return driver_nodes;
218}
219
220void configure_tensor(Tensor *tensor)
221{

Callers 1

Calls 6

graphMethod · 0.80
edgeMethod · 0.80
producerMethod · 0.80
push_backMethod · 0.80
producer_idMethod · 0.80
producer_idxMethod · 0.80

Tested by

no test coverage detected