From 895339092fa9edc0aa59de0309f79bebacc3fa63 Mon Sep 17 00:00:00 2001 From: Matteo Martincigh Date: Thu, 15 Aug 2019 12:08:06 +0100 Subject: IVGCVSW-3545 Update the device specs with the dynamic backend ids * Now the utility function RegisterDynamicBackends returns a list of the backend ids that have been registered * The list of registered ids is added to the list of supported backends in the Runtime * Added unit tests Change-Id: I97bbe1f680920358f5baba5a4666e4983b849cac Signed-off-by: Matteo Martincigh --- src/armnn/DeviceSpec.hpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/armnn/DeviceSpec.hpp') diff --git a/src/armnn/DeviceSpec.hpp b/src/armnn/DeviceSpec.hpp index 35923e6f9d..32264706fd 100644 --- a/src/armnn/DeviceSpec.hpp +++ b/src/armnn/DeviceSpec.hpp @@ -24,9 +24,14 @@ public: return m_SupportedBackends; } + void AddSupportedBackends(const BackendIdSet& backendIds) + { + m_SupportedBackends.insert(backendIds.begin(), backendIds.end()); + } + private: DeviceSpec() = delete; BackendIdSet m_SupportedBackends; }; -} +} // namespace armnn -- cgit v1.2.1