From 2a2db590fd179dcb8e1a575293cd2b887e2dc246 Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Wed, 15 Aug 2018 12:14:46 +0100 Subject: COMPMID-1505: Add native grouping support at graph level Change-Id: Iedc91b0aee743b59af5140c8acb8124548da3163 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/144362 Tested-by: Jenkins Reviewed-by: Giorgio Arena Reviewed-by: Michele DiGiorgio --- src/graph/GraphManager.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/graph/GraphManager.cpp') diff --git a/src/graph/GraphManager.cpp b/src/graph/GraphManager.cpp index db6650cf69..5be4e7e2ba 100644 --- a/src/graph/GraphManager.cpp +++ b/src/graph/GraphManager.cpp @@ -32,6 +32,8 @@ #include "arm_compute/graph/detail/CrossLayerMemoryManagerHelpers.h" #include "arm_compute/graph/detail/ExecutionHelpers.h" +#include "arm_compute/graph/algorithms/TopologicalSort.h" + namespace arm_compute { namespace graph @@ -69,13 +71,13 @@ void GraphManager::finalize_graph(Graph &graph, GraphContext &ctx, PassManager & pm.run_all(graph); // Perform topological sort - // FIXME : Sort nodes and pass sorted indices in configure all nodes + std::vector topological_sorted_nodes = dfs(graph); // Validate all nodes detail::validate_all_nodes(graph); // Configure all nodes - auto workload = detail::configure_all_nodes(graph, ctx); + auto workload = detail::configure_all_nodes(graph, ctx, topological_sorted_nodes); ARM_COMPUTE_ERROR_ON_MSG(workload.tasks.empty(), "Could not configure all nodes!"); // Allocate const tensors and call accessors -- cgit v1.2.1