| 122 | } |
| 123 | |
| 124 | void 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 | |
| 151 | void GraphManager::invalidate_graph(Graph &graph) |
| 152 | { |
no test coverage detected