aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatteo Martincigh <matteo.martincigh@arm.com>2019-05-23 13:56:01 +0100
committerNattapat Chaimanowong <nattapat.chaimanowong@arm.com>2019-05-23 13:43:58 +0000
commite3a4245bb88175d5493b6660feb4117b8ec9230c (patch)
tree58d424b7e1fec99824148e74fce2b4789583ad76
parent15eb5832f45d35c5041ba35a43787e8003e22edb (diff)
downloadarmnn-e3a4245bb88175d5493b6660feb4117b8ec9230c.tar.gz
IVGCVSW-3082 Fix layer execution order after a subgraph substitution
* Moved the topological sort after the replacement of the subgraph connections (during a subgraph substitution), as the correct connections are required when sorting the graph Change-Id: I7c7ce542068a05b9b5ca36f5bd3f460a5eb97afd Signed-off-by: Matteo Martincigh <matteo.martincigh@arm.com>
-rw-r--r--src/armnn/Graph.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/armnn/Graph.cpp b/src/armnn/Graph.cpp
index 31ca55cb9d..be792a63a5 100644
--- a/src/armnn/Graph.cpp
+++ b/src/armnn/Graph.cpp
@@ -318,9 +318,9 @@ void Graph::SubstituteSubgraph(SubgraphView& subgraph, const SubgraphView& subst
}
});
- TopologicalSort();
ReplaceSubgraphConnections(subgraph, substituteSubgraph);
EraseSubgraphLayers(subgraph);
+ TopologicalSort();
}
void Graph::ReplaceSubgraphConnections(const SubgraphView& subgraph, IConnectableLayer* substituteLayer)