25 SampleDynamicBackend() =
default;
26 ~SampleDynamicBackend() =
default;
38 return std::make_unique<SampleMemoryManager>();
42 const IMemoryManagerSharedPtr& memoryManager)
const override
44 return std::make_unique<SampleDynamicWorkloadFactory>(
45 armnn::PolymorphicPointerDowncast<SampleMemoryManager>(memoryManager));
51 auto memoryManager = std::make_shared<SampleMemoryManager>();
54 tensorHandleFactoryRegistry.
RegisterFactory(std::make_unique<SampleDynamicTensorHandleFactory>(memoryManager));
56 return std::make_unique<SampleDynamicWorkloadFactory>(
57 armnn::PolymorphicPointerDowncast<SampleMemoryManager>(memoryManager));
60 IBackendInternal::IBackendProfilingContextPtr CreateBackendProfilingContext(
72 std::vector<armnn::ITensorHandleFactory::FactoryId> GetHandleFactoryPreferences()
const override
88 return optimizationViews;
93 auto memoryManager = std::make_shared<SampleMemoryManager>();
96 registry.
RegisterFactory(std::make_unique<SampleDynamicTensorHandleFactory>(memoryManager));
105 return sdb::SampleDynamicBackend::GetIdStatic().Get().c_str();
110 if (!outMajor || !outMinor)
117 *outMajor = apiVersion.
m_Major;
118 *outMinor = apiVersion.
m_Minor;
123 return new sdb::SampleDynamicBackend();