diff options
author | Matthew Bentham <matthew.bentham@arm.com> | 2019-05-03 15:49:14 +0100 |
---|---|---|
committer | Matteo Martincigh <matteo.martincigh@arm.com> | 2019-05-07 07:54:08 +0000 |
commit | 912b36224f19952663ebd3edc2a69d9031662fd1 (patch) | |
tree | b84bdf384a6a9866336cfe5db7a613a4fc96d03c /ArmnnPreparedModel.hpp | |
parent | 856d1c9c9b0b1609282c4f797cbafefc6531240d (diff) | |
download | android-nn-driver-912b36224f19952663ebd3edc2a69d9031662fd1.tar.gz |
IVGCVSW-2911 Work towards compatibility with Q
Explicitly use HAL V1_0 Operand, OperandType, and IPreparedModelCallback
Change-Id: If6aa6e9dc1bd0b7673ec247ac3560e7f072ef699
Signed-off-by: Matthew Bentham <matthew.bentham@arm.com>
Diffstat (limited to 'ArmnnPreparedModel.hpp')
-rw-r--r-- | ArmnnPreparedModel.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ArmnnPreparedModel.hpp b/ArmnnPreparedModel.hpp index f6008b80..7a65d52b 100644 --- a/ArmnnPreparedModel.hpp +++ b/ArmnnPreparedModel.hpp @@ -19,7 +19,7 @@ namespace armnn_driver { template <typename HalVersion> -class ArmnnPreparedModel : public IPreparedModel +class ArmnnPreparedModel : public V1_0::IPreparedModel { public: using HalModel = typename HalVersion::Model; @@ -33,13 +33,13 @@ public: virtual ~ArmnnPreparedModel(); virtual Return<ErrorStatus> execute(const Request& request, - const ::android::sp<IExecutionCallback>& callback) override; + const ::android::sp<V1_0::IExecutionCallback>& callback) override; /// execute the graph prepared from the request void ExecuteGraph(std::shared_ptr<std::vector<::android::nn::RunTimePoolInfo>>& pMemPools, std::shared_ptr<armnn::InputTensors>& pInputTensors, std::shared_ptr<armnn::OutputTensors>& pOutputTensors, - const ::android::sp<IExecutionCallback>& callback); + const ::android::sp<V1_0::IExecutionCallback>& callback); /// Executes this model with dummy inputs (e.g. all zeroes). /// \return false on failure, otherwise true |