23.02
|
Go to the documentation of this file.
27 if (!modelOptions.empty())
29 for (
auto optionsGroup : modelOptions)
31 if (optionsGroup.GetBackendId() ==
GetId())
45 if (!modelOptions.empty())
47 for (
auto optionsGroup : modelOptions)
49 if (optionsGroup.GetBackendId() ==
GetId())
89 if (!modelOptions.empty())
91 for (
auto optionsGroup : modelOptions)
93 if (optionsGroup.GetBackendId() ==
GetId())
134 if (favorites.empty())
144 return std::vector<ITensorHandleFactory::FactoryId>();
virtual IBackendSpecificModelContextPtr CreateBackendSpecificModelContext(const ModelOptions &modelOptions) const
virtual OptimizationViews OptimizeSubgraphView(const SubgraphView &subgraph) const
virtual IMemoryManagerUniquePtr CreateMemoryManager() const
static const FactoryId LegacyFactoryId
std::unique_ptr< IWorkloadFactory > IWorkloadFactoryPtr
std::vector< BackendOptions > ModelOptions
void IgnoreUnused(Ts &&...)
virtual const BackendId & GetId() const =0
std::shared_ptr< IMemoryManager > IMemoryManagerSharedPtr
Copyright (c) 2021 ARM Limited and Contributors.
std::unique_ptr< IMemoryManager > IMemoryManagerUniquePtr
ITensorHandleFactory::FactoryId GetBackwardCompatibleFavoriteHandleFactory()
bool SupportsTensorAllocatorAPI() const
std::shared_ptr< IBackendModelContext > IBackendSpecificModelContextPtr
void AddUntouchedSubgraph(SubgraphView &&subgraph)
virtual std::vector< ITensorHandleFactory::FactoryId > GetHandleFactoryPreferences() const
(Optional) Returns a vector of supported TensorHandleFactory ids in preference order.
virtual IBackendProfilingContextPtr CreateBackendProfilingContext(const IRuntime::CreationOptions &creationOptions, IBackendProfilingPtr &backendProfiling)
Create context specifically used for profiling interaction from backends.
The SubgraphView class represents a subgraph of a Graph.
virtual IWorkloadFactoryPtr CreateWorkloadFactory(const IMemoryManagerSharedPtr &memoryManager=nullptr) const =0
std::shared_ptr< arm::pipe::IBackendProfilingContext > IBackendProfilingContextPtr
This is the bridge between backend and backend profiling we'll keep it in the backend namespace.
std::shared_ptr< ILayerSupport > ILayerSupportSharedPtr
std::unique_ptr< IBackendContext > IBackendContextPtr
std::unique_ptr< arm::pipe::IBackendProfiling > IBackendProfilingPtr
virtual void RegisterTensorHandleFactories(class TensorHandleFactoryRegistry &)
(Optional) Register TensorHandleFactories Either this method or CreateMemoryManager() and IWorkloadFa...
virtual ILayerSupportSharedPtr GetLayerSupport() const =0
unsigned int MemorySourceFlags
virtual IBackendContextPtr CreateBackendContext(const IRuntime::CreationOptions &) const
Create the runtime context of the backend.