aboutsummaryrefslogtreecommitdiff
path: root/tests/ExecuteNetwork/ExecuteNetwork.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ExecuteNetwork/ExecuteNetwork.cpp')
-rw-r--r--tests/ExecuteNetwork/ExecuteNetwork.cpp15
1 files changed, 12 insertions, 3 deletions
diff --git a/tests/ExecuteNetwork/ExecuteNetwork.cpp b/tests/ExecuteNetwork/ExecuteNetwork.cpp
index e9ebd0db8e..c6c8cc0b27 100644
--- a/tests/ExecuteNetwork/ExecuteNetwork.cpp
+++ b/tests/ExecuteNetwork/ExecuteNetwork.cpp
@@ -55,13 +55,22 @@ int main(int argc, const char* argv[])
}
std::vector<const void*> outputResults;
-
- auto executor = BuildExecutor(programOptions);
- if (!executor)
+ std::unique_ptr<IExecutor> executor;
+ try
+ {
+ executor = BuildExecutor(programOptions);
+ if (executor->m_constructionFailed)
+ {
+ return EXIT_FAILURE;
+ }
+ }
+ catch (const std::exception& e)
{
+ ARMNN_LOG(fatal) << e.what();
return EXIT_FAILURE;
}
+
executor->PrintNetworkInfo();
outputResults = executor->Execute();