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 | |
| 18 | namespace V1_0 = ::android::hardware::neuralnetworks::V1_0; |
| 19 | namespace V1_2 = ::android::hardware::neuralnetworks::V1_2; |
| 20 | |
Mike Kelly | b5fdf38 | 2019-06-11 16:35:25 +0100 | [diff] [blame] | 21 | namespace armnn_driver |
| 22 | { |
| 23 | namespace hal_1_2 |
| 24 | { |
| 25 | |
| 26 | class ArmnnDriverImpl |
| 27 | { |
| 28 | public: |
Kevin May | ec1e5b8 | 2020-02-26 17:00:39 +0000 | [diff] [blame] | 29 | static Return<V1_0::ErrorStatus> prepareArmnnModel_1_2(const armnn::IRuntimePtr& runtime, |
| 30 | const armnn::IGpuAccTunedParametersPtr& clTunedParameters, |
| 31 | const DriverOptions& options, |
| 32 | const V1_2::Model& model, |
| 33 | const android::sp<V1_2::IPreparedModelCallback>& cb, |
| 34 | bool float32ToFloat16 = false); |
Mike Kelly | b5fdf38 | 2019-06-11 16:35:25 +0100 | [diff] [blame] | 35 | |
| 36 | static Return<void> getCapabilities_1_2(const armnn::IRuntimePtr& runtime, |
| 37 | V1_2::IDevice::getCapabilities_1_2_cb cb); |
| 38 | }; |
| 39 | |
| 40 | } // namespace hal_1_2 |
| 41 | } // namespace armnn_driver |