From 7804481027056c6a2aec406d4cb2ab9c39e8418d Mon Sep 17 00:00:00 2001 From: Colm Donelan Date: Tue, 27 Sep 2022 16:46:09 +0100 Subject: IVGCVSW-7235 Errors from LoadNetwork are being ignored in ArmNNExecutor. In ArmNNExecutor::ArmNNExecutor the call to m_Runtime->LoadNetwork was ignoring the Status result and continuing to execute with a failed network. In addition throwing an exception from the constructor resulted in a segmentation fault. * Modify IExecutor to allow the constructor to mark itself as failed. * Modify ArmNNExecutor to mark itself as failed when LoadNetwork returns an error. * Modify ExecuteNetwork to check the value of m_constructionFailed. Signed-off-by: Colm Donelan Change-Id: Idf222cb2b66e1051875dc67046734f2b00b288d1 --- tests/ExecuteNetwork/IExecutor.hpp | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/ExecuteNetwork/IExecutor.hpp') diff --git a/tests/ExecuteNetwork/IExecutor.hpp b/tests/ExecuteNetwork/IExecutor.hpp index 4ed6cbde84..21ec9040e9 100644 --- a/tests/ExecuteNetwork/IExecutor.hpp +++ b/tests/ExecuteNetwork/IExecutor.hpp @@ -19,4 +19,5 @@ public: /// Compare the output with the result of another IExecutor virtual void CompareAndPrintResult(std::vector otherOutput) = 0; virtual ~IExecutor(){}; + bool m_constructionFailed = false; }; -- cgit v1.2.1