IVGCVSW-2125 : Consolidate backend registries into one
Change-Id: I56da4780f8f5fcef7ff01d232d5d61bf299364bf
diff --git a/src/backends/reference/RefBackend.cpp b/src/backends/reference/RefBackend.cpp
index 2f5ec80..7c92404 100644
--- a/src/backends/reference/RefBackend.cpp
+++ b/src/backends/reference/RefBackend.cpp
@@ -6,9 +6,11 @@
#include "RefBackend.hpp"
#include "RefBackendId.hpp"
#include "RefWorkloadFactory.hpp"
+#include "RefLayerSupport.hpp"
#include <backendsCommon/IBackendContext.hpp>
#include <backendsCommon/BackendRegistry.hpp>
+
#include <Optimizer.hpp>
#include <boost/cast.hpp>
@@ -19,7 +21,7 @@
namespace
{
-static StaticRegistryInitializer<BackendRegistry> g_RegisterHelper
+static BackendRegistry::StaticRegistryInitializer g_RegisterHelper
{
BackendRegistryInstance(),
RefBackend::GetIdStatic(),
@@ -52,4 +54,10 @@
return Optimizations{};
}
+IBackendInternal::ILayerSupportSharedPtr RefBackend::GetLayerSupport() const
+{
+ static ILayerSupportSharedPtr layerSupport{new RefLayerSupport};
+ return layerSupport;
+}
+
} // namespace armnn
\ No newline at end of file