aboutsummaryrefslogtreecommitdiff
path: root/ArmnnDriver.hpp
diff options
context:
space:
mode:
authorsurmeh01 <surabhi.mehta@arm.com>2018-07-05 12:06:04 +0100
committersurmeh01 <surabhi.mehta@arm.com>2018-07-05 12:06:04 +0100
commitdeb3bdbe028a59da0759dd7a560387d03a11d322 (patch)
tree869b7ee10d8f1f19a0861e0b552bb453330adf0a /ArmnnDriver.hpp
parent49b9e100bfbb3b8da01472a0ff48b2bd92944e01 (diff)
downloadandroid-nn-driver-deb3bdbe028a59da0759dd7a560387d03a11d322.tar.gz
Release 18.05.02
Diffstat (limited to 'ArmnnDriver.hpp')
-rw-r--r--ArmnnDriver.hpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/ArmnnDriver.hpp b/ArmnnDriver.hpp
index 8b66e774..e8dc3bfb 100644
--- a/ArmnnDriver.hpp
+++ b/ArmnnDriver.hpp
@@ -13,6 +13,10 @@
#include <set>
#include <string>
+// 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<void> getCapabilities(getCapabilities_cb _hidl_cb) override;
- virtual Return<void> getSupportedOperations(const Model &model,
- getSupportedOperations_cb _hidl_cb) override;
- virtual Return<ErrorStatus> prepareModel(const Model &model,
+ virtual Return<void> getCapabilities(V1_0::IDevice::getCapabilities_cb _hidl_cb) override;
+ virtual Return<void> getSupportedOperations(const V1_0::Model &model,
+ V1_0::IDevice::getSupportedOperations_cb _hidl_cb) override;
+ virtual Return<ErrorStatus> prepareModel(const V1_0::Model &model,
const android::sp<IPreparedModelCallback>& callback);
virtual Return<DeviceStatus> getStatus() override;