NNXSW-1826 OptimizeConsecutiveReshapes: remove unnecessary call to MoveAllConnections
authorRob Hughes <robert.hughes@arm.com>
Mon, 23 Sep 2019 15:31:28 +0000 (16:31 +0100)
committerÁron Virginás-Tar <aron.virginas-tar@arm.com>
Tue, 24 Sep 2019 13:32:53 +0000 (13:32 +0000)
commit1d18e6f74f7a76befe64fa34e7dbfaa8580875ee
treea5b2f3ecf98a3b73c40fc0c3e6edc9a8a98fa596
parentf74ff2ff7f67ff0141c058a242758de97e10dd99
NNXSW-1826 OptimizeConsecutiveReshapes: remove unnecessary call to MoveAllConnections

This is called at a time when newReshape has nothing connected to
its output slot (as it has just been created) and so is a no-op.

The code comment indicated that the intention was to connect the newReshape
to its *input*, but that has already been done in the InsertNewLayer() call
above, so the comment was incorrect.

There is a unit test covering this case ("OptimizeConsecutiveReshapesTest")

Change-Id: I933d5d1c6eb32f5a8269fb5d7c809cd7c89680d1
Signed-off-by: Rob Hughes <robert.hughes@arm.com>
src/armnn/optimizations/OptimizeConsecutiveReshapes.hpp