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

Method execute_graph

src/graph/GraphManager.cpp:124–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122}
123
124void GraphManager::execute_graph(Graph &graph)
125{
126 ARM_COMPUTE_LOG_INFO_WITH_FUNCNAME_ACL("Initiate graph execution!");
127
128 // Check if graph is finalized
129 auto it = _workloads.find(graph.id());
130 ARM_COMPUTE_ERROR_ON_MSG(it == std::end(_workloads), "Graph is not registered!");
131
132 while (true)
133 {
134 // Call input accessors
135 if (!detail::call_all_input_node_accessors(it->second))
136 {
137 return;
138 }
139
140 // Run graph
141 detail::call_all_tasks(it->second);
142
143 // Call output accessors
144 if (!detail::call_all_output_node_accessors(it->second))
145 {
146 return;
147 }
148 }
149}
150
151void GraphManager::invalidate_graph(Graph &graph)
152{

Callers 2

runMethod · 0.80
do_runMethod · 0.80

Calls 6

endFunction · 0.85
call_all_tasksFunction · 0.85
findMethod · 0.80
idMethod · 0.45

Tested by

no test coverage detected