IVGCVSW-3581 Fix AddCopyLayers and associated tests
authorMatthew Bentham <matthew.bentham@arm.com>
Tue, 30 Jul 2019 08:24:12 +0000 (08:24 +0000)
committerMatteo Martincigh <matteo.martincigh@arm.com>
Tue, 30 Jul 2019 15:58:30 +0000 (15:58 +0000)
commit0cf01dce414db3ce9595a438cf3c3f10dd938450
tree900e14259365c2998a9ad75f3edd18b375c11fd6
parentbc2e210785a63e8360839e4ded5d2c15c2dffaf5
IVGCVSW-3581 Fix AddCopyLayers and associated tests

Take a copy of the MemoryStrategies for a layer before inserting
new connections. Use the copy when looking up the original MemoryStrategies
during the graph transformation.

Fix the unit tests for AddCopyLayers to have cases where copies are needed.
Fix the validation for clarity and correctness - was previously comparing
Layers by pointer when it should have been by name (as it was comparing
with a cloned graph).

Change-Id: Ie282dc11913e977b8151ce1ad8bfba5e11617d40
Signed-off-by: Matthew Bentham <Matthew.Bentham@arm.com>
src/armnn/Graph.cpp
src/armnn/Layer.hpp
src/armnn/NetworkUtils.cpp
src/armnn/test/GraphTests.cpp