From deb3bdbe028a59da0759dd7a560387d03a11d322 Mon Sep 17 00:00:00 2001 From: surmeh01 Date: Thu, 5 Jul 2018 12:06:04 +0100 Subject: Release 18.05.02 --- ArmnnDriver.hpp | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'ArmnnDriver.hpp') diff --git a/ArmnnDriver.hpp b/ArmnnDriver.hpp index 8b66e774..e8dc3bfb 100644 --- a/ArmnnDriver.hpp +++ b/ArmnnDriver.hpp @@ -13,6 +13,10 @@ #include #include +// For Android O, explicitly declare the V1_0 HAL namespace to shorten type declarations, +// as the namespace is not defined in HalInterfaces.h. +namespace V1_0 = ::android::hardware::neuralnetworks::V1_0; + namespace armnn_driver { @@ -41,14 +45,14 @@ private: armnn::IClTunedParameters::Mode m_ClTunedParametersMode; }; -class ArmnnDriver : public IDevice { +class ArmnnDriver : public V1_0::IDevice { public: ArmnnDriver(DriverOptions options); virtual ~ArmnnDriver() {} - virtual Return getCapabilities(getCapabilities_cb _hidl_cb) override; - virtual Return getSupportedOperations(const Model &model, - getSupportedOperations_cb _hidl_cb) override; - virtual Return prepareModel(const Model &model, + virtual Return getCapabilities(V1_0::IDevice::getCapabilities_cb _hidl_cb) override; + virtual Return getSupportedOperations(const V1_0::Model &model, + V1_0::IDevice::getSupportedOperations_cb _hidl_cb) override; + virtual Return prepareModel(const V1_0::Model &model, const android::sp& callback); virtual Return getStatus() override; -- cgit v1.2.1