NNXSW-1697 Remove use of SubgraphView that may become invalid.
authorRob Hughes <robert.hughes@arm.com>
Tue, 23 Jul 2019 14:33:39 +0000 (15:33 +0100)
committerRob Hughes <robert.hughes@arm.com>
Tue, 23 Jul 2019 14:58:18 +0000 (15:58 +0100)
commit65c32264d02c5f01fd5bd2b1549ef5b61a905bd9
tree9fd05035fac8cfc72b73834824d47dee851682bc
parent588973fa6f68660b2cdc0704bb452984b32e16fd
NNXSW-1697 Remove use of SubgraphView that may become invalid.

The mainSubgraph variable held references to layers in the optimised
graph that become invalid when a graph substitution is made.

The fix is to always use the optimised graph itself rather than a
view of it. The view served no purpose anyway.

Change-Id: Iad75f5829597ec43a774cfd7f2e5e7dede09dfa4
src/armnn/Network.cpp