Mike Kelly | b5fdf38 | 2019-06-11 16:35:25 +0100 | [diff] [blame] | 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 "../DriverOptions.hpp" |
| 11 | |
| 12 | #include <armnn/ArmNN.hpp> |
| 13 | |
Kevin May | ec1e5b8 | 2020-02-26 17:00:39 +0000 | [diff] [blame] | 14 | #ifdef ARMNN_ANDROID_R |
| 15 | using namespace android::nn::hal; |
| 16 | #endif |
| 17 | |
Sadik Armagan | 188675f | 2021-02-12 17:16:42 +0000 | [diff] [blame] | 18 | #ifdef ARMNN_ANDROID_S |
| 19 | using namespace android::hardware; |
| 20 | #endif |
| 21 | |
Kevin May | ec1e5b8 | 2020-02-26 17:00:39 +0000 | [diff] [blame] | 22 | namespace V1_0 = ::android::hardware::neuralnetworks::V1_0; |
| 23 | namespace V1_2 = ::android::hardware::neuralnetworks::V1_2; |
| 24 | |
Mike Kelly | b5fdf38 | 2019-06-11 16:35:25 +0100 | [diff] [blame] | 25 | namespace armnn_driver |
| 26 | { |
| 27 | namespace hal_1_2 |
| 28 | { |
| 29 | |
| 30 | class ArmnnDriverImpl |
| 31 | { |
| 32 | public: |
Kevin May | ec1e5b8 | 2020-02-26 17:00:39 +0000 | [diff] [blame] | 33 | static Return<V1_0::ErrorStatus> prepareArmnnModel_1_2(const armnn::IRuntimePtr& runtime, |
| 34 | const armnn::IGpuAccTunedParametersPtr& clTunedParameters, |
| 35 | const DriverOptions& options, |
| 36 | const V1_2::Model& model, |
| 37 | const android::sp<V1_2::IPreparedModelCallback>& cb, |
| 38 | bool float32ToFloat16 = false); |
Mike Kelly | b5fdf38 | 2019-06-11 16:35:25 +0100 | [diff] [blame] | 39 | |
| 40 | static Return<void> getCapabilities_1_2(const armnn::IRuntimePtr& runtime, |
| 41 | V1_2::IDevice::getCapabilities_1_2_cb cb); |
| 42 | }; |
| 43 | |
| 44 | } // namespace hal_1_2 |
| 45 | } // namespace armnn_driver |