From 3c24f43ff9afb50898d6a73ccddbc0936f72fdad Mon Sep 17 00:00:00 2001 From: Sadik Armagan Date: Mon, 19 Oct 2020 17:35:30 +0100 Subject: IVGCVSW-5365 'Create the TfLite Delegate subdirectory in ArmNN' * Created delegate sub-directory under armnn * Created Delegate, ArmnnSubgraph and DelegateOptions classes * Created cmake files. * Integrated doctest (under MIT license) as testing framework Signed-off-by: Sadik Armagan Change-Id: If725ebd62c40a97c783cdad22bca48709d44338c --- delegate/include/DelegateOptions.hpp | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 delegate/include/DelegateOptions.hpp (limited to 'delegate/include/DelegateOptions.hpp') diff --git a/delegate/include/DelegateOptions.hpp b/delegate/include/DelegateOptions.hpp new file mode 100644 index 0000000000..0c8173d15f --- /dev/null +++ b/delegate/include/DelegateOptions.hpp @@ -0,0 +1,35 @@ +// +// Copyright © 2020 Arm Ltd and Contributors. All rights reserved. +// SPDX-License-Identifier: MIT +// + +#pragma once + +#include + +#include +#include +#include + +namespace armnnDelegate +{ + +class DelegateOptions +{ +public: + DelegateOptions(armnn::Compute computeDevice); + + DelegateOptions(const std::vector& backends); + + const std::vector& GetBackends() const { return m_Backends; } + + void SetBackends(const std::vector& backends) { m_Backends = backends; } + +private: + /// Which backend to run Delegate on. + /// Examples of possible values are: CpuRef, CpuAcc, GpuAcc. + /// CpuRef as default. + std::vector m_Backends = { armnn::Compute::CpuRef }; +}; + +} // namespace armnnDelegate -- cgit v1.2.1