// // Copyright © 2017 Arm Ltd. All rights reserved. // SPDX-License-Identifier: MIT // #include "RefBackend.hpp" #include "RefBackendId.hpp" #include "RefWorkloadFactory.hpp" #include "RefLayerSupport.hpp" #include #include #include #include #include namespace armnn { namespace { static BackendRegistry::StaticRegistryInitializer g_RegisterHelper { BackendRegistryInstance(), RefBackend::GetIdStatic(), []() { return IBackendInternalUniquePtr(new RefBackend); } }; } const BackendId& RefBackend::GetIdStatic() { static const BackendId s_Id{RefBackendId()}; return s_Id; } IBackendInternal::IWorkloadFactoryPtr RefBackend::CreateWorkloadFactory( const IBackendInternal::IMemoryManagerSharedPtr& memoryManager) const { return std::make_unique(); } IBackendInternal::IBackendContextPtr RefBackend::CreateBackendContext(const IRuntime::CreationOptions&) const { return IBackendContextPtr{}; } IBackendInternal::IMemoryManagerUniquePtr RefBackend::CreateMemoryManager() const { return IMemoryManagerUniquePtr{}; } IBackendInternal::Optimizations RefBackend::GetOptimizations() const { return Optimizations{}; } IBackendInternal::ILayerSupportSharedPtr RefBackend::GetLayerSupport() const { static ILayerSupportSharedPtr layerSupport{new RefLayerSupport}; return layerSupport; } IBackendInternal::SubgraphViewUniquePtr RefBackend::OptimizeSubgraphView(const SubgraphView& subgraph, bool& optimizationAttempted) const { // Not trying to optimize the given sub-graph optimizationAttempted = false; return SubgraphViewUniquePtr{}; } } // namespace armnn