blob: 3c094fe5fe2a0392ffd3ed40a5063b015d97be0c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
//
// Copyright © 2020 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//
#pragma once
#include <HalInterfaces.h>
#include "../DriverOptions.hpp"
#include <armnn/ArmNN.hpp>
#if !defined(ARMNN_ANDROID_S)
using namespace android::nn::hal;
#endif
#ifdef ARMNN_ANDROID_S
using namespace android::hardware;
#endif
namespace V1_0 = ::android::hardware::neuralnetworks::V1_0;
namespace V1_2 = ::android::hardware::neuralnetworks::V1_2;
namespace V1_3 = ::android::hardware::neuralnetworks::V1_3;
namespace armnn_driver
{
namespace hal_1_3
{
class ArmnnDriverImpl
{
public:
static Return<V1_3::ErrorStatus> prepareArmnnModel_1_3(const armnn::IRuntimePtr& runtime,
const armnn::IGpuAccTunedParametersPtr& clTunedParameters,
const DriverOptions& options,
const V1_3::Model& model,
const android::sp<V1_3::IPreparedModelCallback>& cb,
bool float32ToFloat16 = false,
V1_3::Priority priority = V1_3::Priority::MEDIUM);
static Return<void> getCapabilities_1_3(const armnn::IRuntimePtr& runtime,
V1_3::IDevice::getCapabilities_1_3_cb cb);
};
} // namespace hal_1_3
} // namespace armnn_driver
|