aboutsummaryrefslogtreecommitdiff
path: root/ArmnnDriverImpl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ArmnnDriverImpl.cpp')
-rw-r--r--ArmnnDriverImpl.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/ArmnnDriverImpl.cpp b/ArmnnDriverImpl.cpp
index 5d213659..267574c1 100644
--- a/ArmnnDriverImpl.cpp
+++ b/ArmnnDriverImpl.cpp
@@ -150,12 +150,14 @@ Return<ErrorStatus> ArmnnDriverImpl<HalPolicy>::prepareModel(
armnn::OptimizerOptions OptOptions;
OptOptions.m_ReduceFp32ToFp16 = float32ToFloat16;
+ std::vector<std::string> errMessages;
try
{
optNet = armnn::Optimize(*modelConverter.GetINetwork(),
{options.GetComputeDevice()},
runtime->GetDeviceSpec(),
- OptOptions);
+ OptOptions,
+ errMessages);
}
catch (armnn::Exception &e)
{
@@ -168,8 +170,13 @@ Return<ErrorStatus> ArmnnDriverImpl<HalPolicy>::prepareModel(
// Check that the optimized network is valid.
if (!optNet)
{
+ stringstream message;
+ message << "ArmnnDriverImpl::prepareModel: Invalid optimized network";
+ for (const string& msg : errMessages) {
+ message << "\n" << msg;
+ }
FailPrepareModel(ErrorStatus::GENERAL_FAILURE,
- "ArmnnDriverImpl::prepareModel: Invalid optimized network", cb);
+ message.str(), cb);
return ErrorStatus::NONE;
}