blob: 2628682d7b63221ca37bf69f0eab8a0073a2619a (
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
|
//
// Copyright © 2017 Arm Ltd. All rights reserved.
// See LICENSE file in the project root for full license information.
//
#pragma once
#include <HalInterfaces.h>
#include "DriverOptions.hpp"
#include <armnn/ArmNN.hpp>
namespace armnn_driver
{
namespace V1_0
{
class ArmnnDriverImpl
{
public:
static Return<void> getCapabilities(
const armnn::IRuntimePtr& runtime,
::android::hardware::neuralnetworks::V1_0::IDevice::getCapabilities_cb cb);
static Return<void> getSupportedOperations(
const armnn::IRuntimePtr& runtime,
const DriverOptions& options,
const ::android::hardware::neuralnetworks::V1_0::Model& model,
::android::hardware::neuralnetworks::V1_0::IDevice::getSupportedOperations_cb cb);
static Return<ErrorStatus> prepareModel(
const armnn::IRuntimePtr& runtime,
const armnn::IGpuAccTunedParametersPtr& clTunedParameters,
const DriverOptions& options,
const ::android::hardware::neuralnetworks::V1_0::Model& model,
const android::sp<IPreparedModelCallback>& cb,
bool float32ToFloat16 = false);
static Return<DeviceStatus> getStatus();
};
} // namespace armnn_driver::V1_0
} // namespace armnn_driver
|