blob: 0c8173d15f59e4db009b27c1ba570388e96b9ec7 [file] [log] [blame]
Sadik Armagan3c24f432020-10-19 17:35:30 +01001//
2// Copyright © 2020 Arm Ltd and Contributors. All rights reserved.
3// SPDX-License-Identifier: MIT
4//
5
6#pragma once
7
8#include <armnn/ArmNN.hpp>
9
10#include <set>
11#include <string>
12#include <vector>
13
14namespace armnnDelegate
15{
16
17class DelegateOptions
18{
19public:
20 DelegateOptions(armnn::Compute computeDevice);
21
22 DelegateOptions(const std::vector<armnn::BackendId>& backends);
23
24 const std::vector<armnn::BackendId>& GetBackends() const { return m_Backends; }
25
26 void SetBackends(const std::vector<armnn::BackendId>& backends) { m_Backends = backends; }
27
28private:
29 /// Which backend to run Delegate on.
30 /// Examples of possible values are: CpuRef, CpuAcc, GpuAcc.
31 /// CpuRef as default.
32 std::vector<armnn::BackendId> m_Backends = { armnn::Compute::CpuRef };
33};
34
35} // namespace armnnDelegate