Sadik Armagan | 3c24f43 | 2020-10-19 17:35:30 +0100 | [diff] [blame] | 1 | // |
| 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 | |
| 14 | namespace armnnDelegate |
| 15 | { |
| 16 | |
| 17 | class DelegateOptions |
| 18 | { |
| 19 | public: |
| 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 | |
| 28 | private: |
| 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 |