diff options
author | Rob Hughes <robert.hughes@arm.com> | 2022-09-13 11:47:04 +0100 |
---|---|---|
committer | Rob Hughes <robert.hughes@arm.com> | 2022-09-15 07:59:05 +0000 |
commit | 1b56b46fee47a44e0fd019e0a10e93612f1dba36 (patch) | |
tree | ac8fa425e559a1a6ec4ea69e6c8010f7caeddb27 /shim/sl | |
parent | db96e6998024ab6b378e9df53287a62006ce1c96 (diff) | |
download | armnn-1b56b46fee47a44e0fd019e0a10e93612f1dba36.tar.gz |
Make SubgraphViewSelector give deterministic results
The subgraphs produced by SubgraphViewSelector were not produced in a
deterministic order, as the order was determined by the pointer values
of some objects, which are not guaranteed to be the same for each
execution.
This patch adds a post-processing sorting step based on the GUIDs of the
layers and the slot indices so that the results will be the same for
each execution.
This makes debugging the optimised graph much easier as subsequent
stages can also be deterministic. It also simplifies some unit tests.
Change-Id: I64f552706b7fb1bf82c19d85a448e054277917bc
Signed-off-by: Rob Hughes <robert.hughes@arm.com>
Diffstat (limited to 'shim/sl')
0 files changed, 0 insertions, 0 deletions