From f4261adf78bdb9f8b2d6f2970636125096c173cb Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Mon, 2 Dec 2019 11:58:19 +0000 Subject: COMPMID-2779: Add support for generating synthetic int8 graphs. Adds SyntheticDataTypeMutator, which is responsible for mutating graphs to int8 and thus enable performance analysis on a wider range of models. Change-Id: I9a00f0ae59421ab11952660f5115b5dcd9314aaf Signed-off-by: Georgios Pinitas Reviewed-on: https://review.mlplatform.org/c/2418 Comments-Addressed: Arm Jenkins Tested-by: Arm Jenkins Reviewed-by: Michele Di Giorgio --- src/graph/GraphManager.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/graph/GraphManager.cpp') diff --git a/src/graph/GraphManager.cpp b/src/graph/GraphManager.cpp index 4f942b99e4..996e50bbbc 100644 --- a/src/graph/GraphManager.cpp +++ b/src/graph/GraphManager.cpp @@ -51,6 +51,9 @@ void GraphManager::finalize_graph(Graph &graph, GraphContext &ctx, PassManager & ARM_COMPUTE_ERROR("Graph is already registered!"); } + // Apply IR mutating passes + pm.run_type(graph, IGraphMutator::MutationType::IR); + // Force target to all graph construct // TODO (COMPMID-2014) : Support heterogeneous execution Target forced_target = target; @@ -68,8 +71,8 @@ void GraphManager::finalize_graph(Graph &graph, GraphContext &ctx, PassManager & // Configure all tensors detail::configure_all_tensors(graph); - // Apply all mutating passes - pm.run_all(graph); + // Apply backend mutating passes + pm.run_type(graph, IGraphMutator::MutationType::Backend); // Perform topological sort std::vector topological_sorted_nodes = dfs(graph); -- cgit v1.2.1