| // |
| // Copyright © 2020 Arm Ltd and Contributors. All rights reserved. |
| // SPDX-License-Identifier: MIT |
| // |
| |
| #pragma once |
| |
| #include <armnn/ArmNN.hpp> |
| |
| #include <set> |
| #include <string> |
| #include <vector> |
| |
| namespace armnnDelegate |
| { |
| |
| class DelegateOptions |
| { |
| public: |
| DelegateOptions(armnn::Compute computeDevice); |
| |
| DelegateOptions(const std::vector<armnn::BackendId>& backends); |
| |
| const std::vector<armnn::BackendId>& GetBackends() const { return m_Backends; } |
| |
| void SetBackends(const std::vector<armnn::BackendId>& backends) { m_Backends = backends; } |
| |
| private: |
| /// Which backend to run Delegate on. |
| /// Examples of possible values are: CpuRef, CpuAcc, GpuAcc. |
| /// CpuRef as default. |
| std::vector<armnn::BackendId> m_Backends = { armnn::Compute::CpuRef }; |
| }; |
| |
| } // namespace armnnDelegate |