24.02
|
Go to the documentation of this file.
10 #include <unordered_map>
20 class IProfilingService;
28 class IBackendInternal;
29 class ICustomAllocator;
30 class IMemoryOptimizerStrategy;
49 std::unordered_map<BackendId, std::shared_ptr<ICustomAllocator>>
GetAllocators();
82 std::unordered_map<BackendId, std::shared_ptr<ICustomAllocator>> m_CustomMemoryAllocatorMap;
83 std::unordered_map<BackendId, std::shared_ptr<IMemoryOptimizerStrategy>> m_MemoryOptimizerStrategyMap;
virtual ~BackendRegistry()
IBackendInternalUniquePtr PointerType
void Deregister(const BackendId &id)
std::unordered_set< BackendId > BackendIdSet
void RegisterMemoryOptimizerStrategy(const BackendId &id, std::shared_ptr< IMemoryOptimizerStrategy > strategy)
BackendIdSet GetBackendIds() const
MemoryOptimizerStrategiesMapRef GetMemoryOptimizerStrategies()
std::function< PointerType()> FactoryFunction
void SetProfilingService(armnn::Optional< arm::pipe::IProfilingService & > profilingService)
static void Swap(BackendRegistry &instance, FactoryStorage &other)
For testing only.
StaticRegistryInitializer(BackendRegistry &instance, const BackendId &id, FactoryFunction factory)
BackendRegistry & BackendRegistryInstance()
std::string GetBackendIdsAsString() const
bool IsBackendRegistered(const BackendId &id) const
FactoryFunction GetFactory(const BackendId &id) const
void DeregisterMemoryOptimizerStrategy(const BackendId &id)
void RegisterAllocator(const BackendId &id, std::shared_ptr< ICustomAllocator > alloc)
void Register(const BackendId &id, FactoryFunction factory)
void DeregisterAllocator(const BackendId &id)
std::unordered_map< BackendId, FactoryFunction > FactoryStorage
std::unordered_map< BackendId, std::shared_ptr< ICustomAllocator > > GetAllocators()
Copyright (c) 2021 ARM Limited and Contributors.
std::unique_ptr< IBackendInternal > IBackendInternalUniquePtr
std::unordered_map< BackendId, std::shared_ptr< IMemoryOptimizerStrategy > > MemoryOptimizerStrategiesMapRef