• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //
2 // Copyright © 2017 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
6 #pragma once
7 
8 #include <HalInterfaces.h>
9 
10 #include "NamespaceAdaptor.hpp"
11 #include "../DriverOptions.hpp"
12 
13 #include <armnn/ArmNN.hpp>
14 
15 #if ARMNN_ANDROID_S
16 using namespace android::nn;
17 #elif ARMNN_ANDROID_R
18 using namespace android::nn::hal;
19 #endif
20 
21 
22 namespace V1_0 = ::android::hardware::neuralnetworks::V1_0;
23 namespace V1_1 = ::android::hardware::neuralnetworks::V1_1;
24 
25 namespace armnn_driver
26 {
27 namespace hal_1_1
28 {
29 
30 class ArmnnDriverImpl
31 {
32 public:
33     static Return<void> getCapabilities_1_1(const armnn::IRuntimePtr& runtime,
34                                             V1_1::IDevice::getCapabilities_1_1_cb cb);
35 };
36 
37 } // namespace hal_1_1
38 } // namespace armnn_driver
39