aboutsummaryrefslogtreecommitdiff
path: root/ArmnnDriverImpl.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 /ArmnnDriverImpl.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 'ArmnnDriverImpl.cpp')
-rw-r--r--ArmnnDriverImpl.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/ArmnnDriverImpl.cpp b/ArmnnDriverImpl.cpp
index de80445a..46c4e577 100644
--- a/ArmnnDriverImpl.cpp
+++ b/ArmnnDriverImpl.cpp
@@ -108,10 +108,10 @@ Return<ErrorStatus> ArmnnDriverImpl<HalPolicy>::prepareModel(
OptOptions,
errMessages);
}
- catch (armnn::Exception &e)
+ catch (std::exception& e)
{
stringstream message;
- message << "armnn::Exception (" << e.what() << ") caught from optimize.";
+ message << "Exception (" << e.what() << ") caught from optimize.";
FailPrepareModel(ErrorStatus::GENERAL_FAILURE, message.str(), cb);
return ErrorStatus::NONE;
}
@@ -142,10 +142,10 @@ Return<ErrorStatus> ArmnnDriverImpl<HalPolicy>::prepareModel(
return FailPrepareModel(ErrorStatus::GENERAL_FAILURE, "Network could not be loaded", cb);
}
}
- catch (armnn::Exception& e)
+ catch (std::exception& e)
{
stringstream message;
- message << "armnn::Exception (" << e.what()<< ") caught from LoadNetwork.";
+ message << "Exception (" << e.what()<< ") caught from LoadNetwork.";
FailPrepareModel(ErrorStatus::GENERAL_FAILURE, message.str(), cb);
return ErrorStatus::NONE;
}
@@ -173,7 +173,7 @@ Return<ErrorStatus> ArmnnDriverImpl<HalPolicy>::prepareModel(
{
clTunedParameters->Save(options.GetClTunedParametersFile().c_str());
}
- catch (const armnn::Exception& error)
+ catch (std::exception& error)
{
ALOGE("ArmnnDriverImpl::prepareModel: Failed to save CL tuned parameters file '%s': %s",
options.GetClTunedParametersFile().c_str(), error.what());