22 #include <arm_compute/runtime/CL/CLBufferAllocator.h> 24 #include <boost/polymorphic_pointer_cast.hpp> 37 return std::make_unique<ClMemoryManager>(std::make_unique<arm_compute::CLBufferAllocator>());
43 return std::make_unique<ClWorkloadFactory>(
44 boost::polymorphic_pointer_downcast<ClMemoryManager>(memoryManager));
50 auto memoryManager = std::make_shared<ClMemoryManager>(std::make_unique<arm_compute::CLBufferAllocator>());
54 return std::make_unique<ClWorkloadFactory>(
55 boost::polymorphic_pointer_downcast<ClMemoryManager>(memoryManager));
65 auto mgr = std::make_shared<ClMemoryManager>(std::make_unique<arm_compute::CLBufferAllocator>());
100 return optimizationViews;
std::unique_ptr< IWorkloadFactory > IWorkloadFactoryPtr
std::vector< OptimizationPtr > Optimizations
std::vector< ITensorHandleFactory::FactoryId > GetHandleFactoryPreferences() const override
(Optional) Returns a vector of supported TensorHandleFactory ids in preference order.
void RegisterFactory(std::unique_ptr< ITensorHandleFactory > allocator)
Register a TensorHandleFactory and transfer ownership.
IBackendInternal::IBackendProfilingContextPtr CreateBackendProfilingContext(const IRuntime::CreationOptions &, IBackendProfilingPtr &backendProfiling) override
Create context specifically used for profiling interaction from backends.
OptimizationViews OptimizeSubgraphView(const SubgraphView &subgraph) const override
IBackendInternal::ILayerSupportSharedPtr GetLayerSupport() const override
void AddUntouchedSubgraph(SubgraphView &&subgraph)
static const FactoryId & GetIdStatic()
std::unique_ptr< IBackendContext > IBackendContextPtr
std::shared_ptr< IMemoryManager > IMemoryManagerSharedPtr
void RegisterTensorHandleFactories(TensorHandleFactoryRegistry ®istry) override
IBackendInternal::Optimizations GetOptimizations() const override
std::shared_ptr< armnn::profiling::IBackendProfilingContext > IBackendProfilingContextPtr
std::unique_ptr< IMemoryManager > IMemoryManagerUniquePtr
IBackendInternal::IBackendContextPtr CreateBackendContext(const IRuntime::CreationOptions &) const override
std::shared_ptr< ILayerSupport > ILayerSupportSharedPtr
IBackendInternal::IWorkloadFactoryPtr CreateWorkloadFactory(const IBackendInternal::IMemoryManagerSharedPtr &memoryManager=nullptr) const override
void RegisterMemoryManager(std::shared_ptr< IMemoryManager > memoryManger)
Register a memory manager with shared ownership.
IBackendInternal::IMemoryManagerUniquePtr CreateMemoryManager() const override
armnn::Runtime::CreationOptions::ExternalProfilingOptions options
static const BackendId & GetIdStatic()
std::unique_ptr< armnn::profiling::IBackendProfiling > IBackendProfilingPtr
constexpr const char * ClBackendId()