aboutsummaryrefslogtreecommitdiff
path: root/src/backends/reference/RefBackend.cpp
diff options
context:
space:
mode:
authorDavid Beck <david.beck@arm.com>2018-11-12 14:59:37 +0000
committerAron Virginas-Tar <aron.virginas-tar@arm.com>2018-11-12 16:02:51 +0000
commit111b5d94d7e854c21377f8d2c0b4234317a903f6 (patch)
tree68111e5d89b605c898b2327cb59b915e3ff64ce9 /src/backends/reference/RefBackend.cpp
parent4e1e136cce3fca73ba49b570cfcb620f4ec574da (diff)
downloadarmnn-111b5d94d7e854c21377f8d2c0b4234317a903f6.tar.gz
IVGCVSW-2125 : Consolidate backend registries into one
Change-Id: I56da4780f8f5fcef7ff01d232d5d61bf299364bf
Diffstat (limited to 'src/backends/reference/RefBackend.cpp')
-rw-r--r--src/backends/reference/RefBackend.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/backends/reference/RefBackend.cpp b/src/backends/reference/RefBackend.cpp
index 2f5ec8032c..7c9240479b 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 armnn
namespace
{
-static StaticRegistryInitializer<BackendRegistry> g_RegisterHelper
+static BackendRegistry::StaticRegistryInitializer g_RegisterHelper
{
BackendRegistryInstance(),
RefBackend::GetIdStatic(),
@@ -52,4 +54,10 @@ IBackendInternal::Optimizations RefBackend::GetOptimizations() const
return Optimizations{};
}
+IBackendInternal::ILayerSupportSharedPtr RefBackend::GetLayerSupport() const
+{
+ static ILayerSupportSharedPtr layerSupport{new RefLayerSupport};
+ return layerSupport;
+}
+
} // namespace armnn \ No newline at end of file