13 const std::shared_ptr<SubGraph>& )
const 15 return ISubGraphConverterPtr{};
24 bool& optimizationAttempted)
const 26 optimizationAttempted =
false;
57 bool optimizationAttempted =
false;
60 SubGraphUniquePtr optSubgraph =
OptimizeSubGraph(subgraph, optimizationAttempted);
64 if (!optimizationAttempted)
70 result.AddSubstitution({subgraph,
SubgraphView(*optSubgraph.get())});
88 if (favorites.empty())
98 return std::vector<ITensorHandleFactory::FactoryId>();
std::unique_ptr< IWorkloadFactory > IWorkloadFactoryPtr
std::vector< OptimizationPtr > Optimizations
#define ARMNN_NO_DEPRECATE_WARN_BEGIN
virtual IBackendContextPtr CreateBackendContext(const IRuntime::CreationOptions &) const
Create the runtime context of the backend.
Copyright (c) 2020 ARM Limited.
std::unique_ptr< IMemoryManager > IMemoryManagerUniquePtr
ITensorHandleFactory::FactoryId GetBackwardCompatibleFavoriteHandleFactory()
virtual std::vector< ITensorHandleFactory::FactoryId > GetHandleFactoryPreferences() const
(Optional) Returns a vector of supported TensorHandleFactory ids in preference order.
virtual IWorkloadFactoryPtr CreateWorkloadFactory(const IMemoryManagerSharedPtr &memoryManager=nullptr) const =0
The SubgraphView class represents a subgraph of a Graph.
std::unique_ptr< armnn::profiling::IBackendProfiling > IBackendProfilingPtr
#define ARMNN_NO_DEPRECATE_WARN_END
bool SupportsTensorAllocatorAPI() const
virtual Optimizations GetOptimizations() const
void AddUntouchedSubgraph(SubgraphView &&subgraph)
virtual IBackendProfilingContextPtr CreateBackendProfilingContext(const IRuntime::CreationOptions &creationOptions, IBackendProfilingPtr &backendProfiling)
Create context specifically used for profiling interaction from backends.
virtual OptimizationViews OptimizeSubgraphView(const SubgraphView &subgraph) const
virtual SubGraphUniquePtr OptimizeSubGraph(const SubGraph &subGraph, bool &optimizationAttempted) const
virtual ARMNN_NO_DEPRECATE_WARN_END IMemoryManagerUniquePtr CreateMemoryManager() const
virtual ISubGraphConverterPtr CreateSubGraphConverter(const std::shared_ptr< SubGraph > &subGraph) const
static const FactoryId LegacyFactoryId
std::shared_ptr< armnn::profiling::IBackendProfilingContext > IBackendProfilingContextPtr
This is the bridge between backend and backend profiling we'll keep it in the backend namespace...
std::unique_ptr< IBackendContext > IBackendContextPtr