From 9e80cd2195e64902951c3207b0d2aa82fe77c61f Mon Sep 17 00:00:00 2001 From: Matthew Bentham Date: Fri, 3 May 2019 22:54:36 +0100 Subject: IVGCVSW-2911 More Q compatiblity Changes needed to RequestThread and ArmnnPreparedModel to compile in the Q environment Change-Id: Ib072afa1fe6a6a1b0931df79cec76cfac8b21f0c Signed-off-by: Matthew Bentham --- 1.1/HalPolicy.hpp | 2 ++ ArmnnPreparedModel.cpp | 6 +++--- RequestThread.cpp | 4 ++-- RequestThread.hpp | 8 ++++---- 4 files changed, 11 insertions(+), 9 deletions(-) diff --git a/1.1/HalPolicy.hpp b/1.1/HalPolicy.hpp index bcaf5637..da0f7e41 100644 --- a/1.1/HalPolicy.hpp +++ b/1.1/HalPolicy.hpp @@ -18,6 +18,8 @@ class HalPolicy { public: using Model = V1_1::Model; + using Operand = V1_0::Operand; + using OperandType = V1_0::OperandType; using Operation = V1_1::Operation; using OperationType = V1_1::OperationType; using getSupportedOperations_cb = V1_1::IDevice::getSupportedOperations_1_1_cb; diff --git a/ArmnnPreparedModel.cpp b/ArmnnPreparedModel.cpp index edb1c934..f183caff 100644 --- a/ArmnnPreparedModel.cpp +++ b/ArmnnPreparedModel.cpp @@ -27,7 +27,7 @@ namespace { using namespace armnn_driver; -void NotifyCallbackAndCheck(const ::android::sp& callback, ErrorStatus errorStatus, +void NotifyCallbackAndCheck(const ::android::sp& callback, ErrorStatus errorStatus, std::string callingFunction) { Return returned = callback->notify(errorStatus); @@ -141,7 +141,7 @@ ArmnnPreparedModel::~ArmnnPreparedModel() template Return ArmnnPreparedModel::execute(const Request& request, - const ::android::sp& callback) + const ::android::sp& callback) { ALOGV("ArmnnPreparedModel::execute(): %s", GetModelSummary(m_Model).c_str()); m_RequestCount++; @@ -230,7 +230,7 @@ void ArmnnPreparedModel::ExecuteGraph( std::shared_ptr>& pMemPools, std::shared_ptr& pInputTensors, std::shared_ptr& pOutputTensors, - const ::android::sp& callback) + const ::android::sp& callback) { ALOGV("ArmnnPreparedModel::ExecuteGraph(...)"); diff --git a/RequestThread.cpp b/RequestThread.cpp index 4731489e..bc1eccc0 100644 --- a/RequestThread.cpp +++ b/RequestThread.cpp @@ -55,7 +55,7 @@ void RequestThread::PostMsg(ArmnnPreparedModel* model, std::shared_ptr>& memPools, std::shared_ptr& inputTensors, std::shared_ptr& outputTensors, - const ::android::sp& callback) + const ::android::sp& callback) { ALOGV("RequestThread::PostMsg(...)"); auto data = std::make_shared(model, @@ -141,4 +141,4 @@ template class RequestThread; template class RequestThread; #endif -} // namespace armnn_driver \ No newline at end of file +} // namespace armnn_driver diff --git a/RequestThread.hpp b/RequestThread.hpp index 53f145b4..67069205 100644 --- a/RequestThread.hpp +++ b/RequestThread.hpp @@ -42,7 +42,7 @@ public: std::shared_ptr>& memPools, std::shared_ptr& inputTensors, std::shared_ptr& outputTensors, - const ::android::sp& callback); + const ::android::sp& callback); private: RequestThread(const RequestThread&) = delete; @@ -55,7 +55,7 @@ private: std::shared_ptr>& memPools, std::shared_ptr& inputTensors, std::shared_ptr& outputTensors, - const ::android::sp& cb) + const ::android::sp& cb) : m_Model(model) , m_MemPools(memPools) , m_InputTensors(inputTensors) @@ -68,7 +68,7 @@ private: std::shared_ptr> m_MemPools; std::shared_ptr m_InputTensors; std::shared_ptr m_OutputTensors; - const ::android::sp m_callback; + const ::android::sp m_callback; }; enum class ThreadMsgType @@ -104,4 +104,4 @@ private: std::condition_variable m_Cv; }; -} // namespace armnn_driver \ No newline at end of file +} // namespace armnn_driver -- cgit v1.2.1