blob: 8a665ea5fb296fdfb1134bb20f7e442e209019ee [file] [log] [blame]
Kevin May42477c12020-03-26 13:34:14 +00001//
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
14using namespace android::nn::hal;
15
16namespace V1_0 = ::android::hardware::neuralnetworks::V1_0;
17namespace V1_2 = ::android::hardware::neuralnetworks::V1_2;
18namespace V1_3 = ::android::hardware::neuralnetworks::V1_3;
19
20namespace armnn_driver
21{
22namespace hal_1_3
23{
24
25class ArmnnDriverImpl
26{
27public:
28 static Return<V1_3::ErrorStatus> prepareArmnnModel_1_3(const armnn::IRuntimePtr& runtime,
29 const armnn::IGpuAccTunedParametersPtr& clTunedParameters,
30 const DriverOptions& options,
31 const V1_3::Model& model,
32 const android::sp<V1_3::IPreparedModelCallback>& cb,
33 bool float32ToFloat16 = false);
34
35 static Return<void> getCapabilities_1_3(const armnn::IRuntimePtr& runtime,
36 V1_3::IDevice::getCapabilities_1_3_cb cb);
37};
38
39} // namespace hal_1_3
40} // namespace armnn_driver