aboutsummaryrefslogtreecommitdiff
path: root/ArmnnPreparedModel.cpp
diff options
context:
space:
mode:
authorMike Kelly <mike.kelly@arm.com>2019-12-11 19:27:11 +0000
committerKevin May <kevin.may@arm.com>2019-12-17 16:42:50 +0000
commit0518d71d5a99ad1f45091d4695126c5e44ae615d (patch)
tree341dcaf917059d923ce7e7dc4a50a273dae33176 /ArmnnPreparedModel.cpp
parent207b4f3347cfd813f32954d447bc17bebf726d6d (diff)
downloadandroid-nn-driver-0518d71d5a99ad1f45091d4695126c5e44ae615d.tar.gz
Catch std::exception instead of armnn::Exception
Signed-off-by: Derek Lamberti <derek.lamberti@arm.com> Signed-off-by: Kevin May <kevin.may@arm.com> Change-Id: I054635ebfd52cb5575490c3bfaae0104eb1685cc
Diffstat (limited to 'ArmnnPreparedModel.cpp')
-rw-r--r--ArmnnPreparedModel.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/ArmnnPreparedModel.cpp b/ArmnnPreparedModel.cpp
index 462970aa..2f1abef7 100644
--- a/ArmnnPreparedModel.cpp
+++ b/ArmnnPreparedModel.cpp
@@ -209,9 +209,9 @@ Return<ErrorStatus> ArmnnPreparedModel<HalVersion>::execute(const Request& reque
pOutputTensors->emplace_back(i, outputTensor);
}
}
- catch (armnn::Exception& e)
+ catch (std::exception& e)
{
- ALOGW("armnn::Exception caught while preparing for EnqueueWorkload: %s", e.what());
+ ALOGW("Exception caught while preparing for EnqueueWorkload: %s", e.what());
NotifyCallbackAndCheck(callback, ErrorStatus::GENERAL_FAILURE, "ArmnnPreparedModel::execute");
return ErrorStatus::GENERAL_FAILURE;
}
@@ -253,9 +253,9 @@ void ArmnnPreparedModel<HalVersion>::ExecuteGraph(
return;
}
}
- catch (armnn::Exception& e)
+ catch (std::exception& e)
{
- ALOGW("armnn::Exception caught from EnqueueWorkload: %s", e.what());
+ ALOGW("Exception caught from EnqueueWorkload: %s", e.what());
cb.callback(ErrorStatus::GENERAL_FAILURE, "ArmnnPreparedModel::ExecuteGraph");
return;
}
@@ -306,9 +306,9 @@ bool ArmnnPreparedModel<HalVersion>::ExecuteWithDummyInputs()
return false;
}
}
- catch (armnn::Exception& e)
+ catch (std::exception& e)
{
- ALOGW("ExecuteWithDummyInputs: armnn::Exception caught from EnqueueWorkload: %s", e.what());
+ ALOGW("ExecuteWithDummyInputs: Exception caught from EnqueueWorkload: %s", e.what());
return false;
}
return true;