36 m_SuccesfulOptimizations.emplace_back(substitution);
41 m_FailedOptimizations.emplace_back(subgraph);
46 m_UntouchedSubgraphs.emplace_back(subgraph);
Subgraphs & GetUntouchedSubgraphs()
void AddSubstitution(SubstitutionPair &&substitution)
std::vector< BackendOptions > NetworkOptions
std::vector< SubgraphView > Subgraphs
OptimizationViews & operator=(const OptimizationViews &)=delete
std::vector< SubstitutionPair > Substitutions
Copyright (c) 2021 ARM Limited and Contributors.
SubgraphView m_SubstitutableSubgraph
Subgraph of Layers from the original graph which should be replaced.
OptimizationViews(NetworkOptions networkOptions={})
The SubgraphView class represents a subgraph of a Graph.
const Subgraphs & GetUntouchedSubgraphs() const
const Subgraphs & GetFailedSubgraphs() const
void AddFailedSubgraph(SubgraphView &&subgraph)
ARMNN_NO_DEPRECATE_WARN_BEGIN struct ARMNN_DEPRECATED_MSG_REMOVAL_DATE("ResizeBilinearQueueDescriptor is deprecated use ResizeQueueDescriptor instead", "22.08") ResizeBilinearQueueDescriptor
SubgraphView m_ReplacementSubgraph
A subgraph of new layers which will replace layers in m_SubstitutableSubgraph.
INetworkPtr & GetINetwork()
bool Validate(const SubgraphView &originalSubgraph) const
void AddUntouchedSubgraph(SubgraphView &&subgraph)
const Substitutions & GetSubstitutions() const
Substitutions & GetSubstitutions()
std::unique_ptr< INetwork, void(*)(INetwork *network)> INetworkPtr
Subgraphs & GetFailedSubgraphs()
static INetworkPtr Create(NetworkOptions networkOptions={})