From b5fdf38f0c6596958fab2b84882f2792a31e585a Mon Sep 17 00:00:00 2001 From: Mike Kelly Date: Tue, 11 Jun 2019 16:35:25 +0100 Subject: IVGCVSW-3181 Add HAL 1.2 support to android-nn-driver * Updated Android.mk to build HAL 1.2 driver * Added 1.2 HalPolicy and ArmnnDriver * Added 1.2 ArmnnPreparedModel * Updated converters and utilities to accept new HAL 1.2 operands and operand types. Signed-off-by: Sadik Armagan Signed-off-by: Mike Kelly Change-Id: I62856deab24e106f72cccce09468db4971756fa6 --- RequestThread.cpp | 44 +++++++++++++++++++++++++++----------------- 1 file changed, 27 insertions(+), 17 deletions(-) (limited to 'RequestThread.cpp') diff --git a/RequestThread.cpp b/RequestThread.cpp index bc1eccc0..4b646034 100644 --- a/RequestThread.cpp +++ b/RequestThread.cpp @@ -8,6 +8,10 @@ #include "RequestThread.hpp" #include "ArmnnPreparedModel.hpp" +#ifdef ARMNN_ANDROID_NN_V1_2 +#include "ArmnnPreparedModel_1_2.hpp" +#endif + #include #include @@ -17,15 +21,15 @@ using namespace android; namespace armnn_driver { -template -RequestThread::RequestThread() +template