Refactored Optimize(...) function to throw exceptions instead of returning null
authorMike Kelly <mike.kelly@arm.com>
Tue, 29 Sep 2020 19:50:35 +0000 (20:50 +0100)
committerTeresaARM <teresa.charlinreyes@arm.com>
Wed, 30 Sep 2020 11:43:24 +0000 (11:43 +0000)
commit3a613cc9103484249ffcd7c63a7ae57783b1ea18
tree62c0ed3ef0418494e8f9591a2442f52fde8b3af7
parentae55dc7bb1ce52d83ccee14f94a5c1d9d218867f
Refactored Optimize(...) function to throw exceptions instead of returning null

 * INetwork::Optimize(...) states that the function should throw an exception
   if it fails but the implementation in Network.cpp returned null in some
   scenarios instead. This has led to some confusion amongst users.

Signed-off-by: Mike Kelly <mike.kelly@arm.com>
Change-Id: I358d1293232c9464772aa0e39ab3355e3570c823
src/armnn/Network.cpp
src/armnn/test/EndToEndTest.cpp
src/armnn/test/FlowControl.cpp
src/armnn/test/RuntimeTests.cpp
src/backends/backendsCommon/test/OptimizedNetworkTests.cpp
src/backends/neon/test/NeonOptimizedNetworkTests.cpp