diff options
author | Mike Kelly <mike.kelly@arm.com> | 2019-12-11 19:27:11 +0000 |
---|---|---|
committer | Kevin May <kevin.may@arm.com> | 2019-12-17 16:42:50 +0000 |
commit | 0518d71d5a99ad1f45091d4695126c5e44ae615d (patch) | |
tree | 341dcaf917059d923ce7e7dc4a50a273dae33176 /ArmnnPreparedModel_1_2.cpp | |
parent | 207b4f3347cfd813f32954d447bc17bebf726d6d (diff) | |
download | android-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_1_2.cpp')
-rw-r--r-- | ArmnnPreparedModel_1_2.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/ArmnnPreparedModel_1_2.cpp b/ArmnnPreparedModel_1_2.cpp index a7997c72..a1e481df 100644 --- a/ArmnnPreparedModel_1_2.cpp +++ b/ArmnnPreparedModel_1_2.cpp @@ -314,9 +314,9 @@ Return<void> ArmnnPreparedModel_1_2<HalVersion>::executeSynchronously(const Requ 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()); cb(ErrorStatus::GENERAL_FAILURE, {}, g_NoTiming); return Void(); } @@ -345,9 +345,9 @@ Return<void> ArmnnPreparedModel_1_2<HalVersion>::executeSynchronously(const Requ return Void(); } } - 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(ErrorStatus::GENERAL_FAILURE, {}, g_NoTiming); return Void(); } @@ -531,9 +531,9 @@ void ArmnnPreparedModel_1_2<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, {}, g_NoTiming, "ArmnnPreparedModel_1_2::ExecuteGraph"); return; @@ -594,9 +594,9 @@ bool ArmnnPreparedModel_1_2<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; @@ -707,9 +707,9 @@ Return <ErrorStatus> ArmnnPreparedModel_1_2<HalVersion>::Execute(const Request& } } } - 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()); callback(ErrorStatus::GENERAL_FAILURE, {}, g_NoTiming, "ArmnnPreparedModel_1_2::execute"); return ErrorStatus::GENERAL_FAILURE; } |