Kevin May | 42477c1 | 2020-03-26 13:34:14 +0000 | [diff] [blame] | 1 | // |
| 2 | // Copyright © 2020 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 DuBois | c0945c7 | 2020-11-20 16:57:09 -0800 | [diff] [blame] | 14 | using namespace android::nn; |
Kevin May | 42477c1 | 2020-03-26 13:34:14 +0000 | [diff] [blame] | 15 | |
| 16 | namespace V1_0 = ::android::hardware::neuralnetworks::V1_0; |
| 17 | namespace V1_2 = ::android::hardware::neuralnetworks::V1_2; |
| 18 | namespace V1_3 = ::android::hardware::neuralnetworks::V1_3; |
| 19 | |
| 20 | namespace armnn_driver |
| 21 | { |
| 22 | namespace hal_1_3 |
| 23 | { |
| 24 | |
| 25 | class ArmnnDriverImpl |
| 26 | { |
| 27 | public: |
Kevin DuBois | 23e678a | 2020-11-20 14:54:05 -0800 | [diff] [blame] | 28 | static android::hardware::Return<V1_3::ErrorStatus> prepareArmnnModel_1_3(const armnn::IRuntimePtr& runtime, |
Kevin May | 42477c1 | 2020-03-26 13:34:14 +0000 | [diff] [blame] | 29 | const armnn::IGpuAccTunedParametersPtr& clTunedParameters, |
| 30 | const DriverOptions& options, |
| 31 | const V1_3::Model& model, |
| 32 | const android::sp<V1_3::IPreparedModelCallback>& cb, |
Narumol Prangnawarat | cad4e91 | 2020-06-02 12:07:43 +0100 | [diff] [blame] | 33 | bool float32ToFloat16 = false, |
| 34 | V1_3::Priority priority = V1_3::Priority::MEDIUM); |
Kevin May | 42477c1 | 2020-03-26 13:34:14 +0000 | [diff] [blame] | 35 | |
Kevin DuBois | 23e678a | 2020-11-20 14:54:05 -0800 | [diff] [blame] | 36 | static android::hardware::Return<void> getCapabilities_1_3(const armnn::IRuntimePtr& runtime, |
Kevin May | 42477c1 | 2020-03-26 13:34:14 +0000 | [diff] [blame] | 37 | V1_3::IDevice::getCapabilities_1_3_cb cb); |
| 38 | }; |
| 39 | |
| 40 | } // namespace hal_1_3 |
Kevin DuBois | c0945c7 | 2020-11-20 16:57:09 -0800 | [diff] [blame] | 41 | } // namespace armnn_driver |