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