diff options
Diffstat (limited to 'src/backends/reference/RefBackend.cpp')
-rw-r--r-- | src/backends/reference/RefBackend.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/backends/reference/RefBackend.cpp b/src/backends/reference/RefBackend.cpp index 1f08d82b98..9afb42d59f 100644 --- a/src/backends/reference/RefBackend.cpp +++ b/src/backends/reference/RefBackend.cpp @@ -4,6 +4,7 @@ // #include "RefBackend.hpp" +#include "RefBackendId.hpp" #include "RefWorkloadFactory.hpp" #include <backends/BackendRegistry.hpp> @@ -16,7 +17,9 @@ namespace armnn namespace { -static BackendRegistry::Helper s_RegisterHelper{ +static StaticRegistryInitializer<BackendRegistry> g_RegisterHelper +{ + BackendRegistryInstance(), RefBackend::GetIdStatic(), []() { @@ -28,15 +31,10 @@ static BackendRegistry::Helper s_RegisterHelper{ const BackendId& RefBackend::GetIdStatic() { - static const BackendId s_Id{"CpuRef"}; + static const BackendId s_Id{RefBackendId()}; return s_Id; } -const ILayerSupport& RefBackend::GetLayerSupport() const -{ - return m_LayerSupport; -} - std::unique_ptr<IWorkloadFactory> RefBackend::CreateWorkloadFactory() const { return std::make_unique<RefWorkloadFactory>(); |