diff options
author | Jim Flynn <jim.flynn@arm.com> | 2020-03-19 17:03:14 +0000 |
---|---|---|
committer | Jim Flynn <jim.flynn@arm.com> | 2020-03-19 17:03:14 +0000 |
commit | 0e2bab81442ee6cc2b94e4f7881ed0c5c6af65e7 (patch) | |
tree | b0af08b5a0b74149fca422151127ac6310385399 /src/armnn/DeviceSpec.hpp | |
parent | 8c3259fa007d43fcc5ea56fe6928526dbe79f3c0 (diff) | |
download | armnn-0e2bab81442ee6cc2b94e4f7881ed0c5c6af65e7.tar.gz |
Creating gh-pages documentation for ArmNN
Signed-off-by: Jim Flynn <jim.flynn@arm.com>
Diffstat (limited to 'src/armnn/DeviceSpec.hpp')
-rw-r--r-- | src/armnn/DeviceSpec.hpp | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/src/armnn/DeviceSpec.hpp b/src/armnn/DeviceSpec.hpp deleted file mode 100644 index a1457cf80e..0000000000 --- a/src/armnn/DeviceSpec.hpp +++ /dev/null @@ -1,58 +0,0 @@ -// -// Copyright © 2017 Arm Ltd. All rights reserved. -// SPDX-License-Identifier: MIT -// -#pragma once - -#include <armnn/Types.hpp> -#include <set> -#include <vector> - -namespace armnn -{ - -class DeviceSpec : public IDeviceSpec -{ -public: - DeviceSpec() - {} - - DeviceSpec(const BackendIdSet& supportedBackends) - : m_SupportedBackends{supportedBackends} {} - - virtual ~DeviceSpec() {} - - virtual const BackendIdSet& GetSupportedBackends() const override - { - return m_SupportedBackends; - } - - void AddSupportedBackends(const BackendIdSet& backendIds, bool isDynamic = false) - { - m_SupportedBackends.insert(backendIds.begin(), backendIds.end()); - if (isDynamic) - { - m_DynamicBackends.insert(backendIds.begin(), backendIds.end()); - } - } - - void ClearDynamicBackends() - { - for (const auto& id : m_DynamicBackends) - { - m_SupportedBackends.erase(id); - } - m_DynamicBackends.clear(); - } - - const BackendIdSet& GetDynamicBackends() const - { - return m_DynamicBackends; - } - -private: - BackendIdSet m_SupportedBackends; - BackendIdSet m_DynamicBackends; -}; - -} // namespace armnn |