24.02
|
Go to the documentation of this file.
40 m_SuccesfulOptimizations.emplace_back(substitution);
45 m_FailedOptimizations.emplace_back(subgraph);
50 m_UntouchedSubgraphs.emplace_back(subgraph);
55 m_DeletedSubgraphs.emplace_back(subgraph);
std::unique_ptr< INetwork, void(*)(INetwork *network)> INetworkPtr
OptimizationViews & operator=(const OptimizationViews &)=delete
void AddUntouchedSubgraph(SubgraphView &&subgraph)
const Subgraphs & GetUntouchedSubgraphs() const
const Subgraphs & GetFailedSubgraphs() const
std::vector< SubgraphView > Subgraphs
SubgraphView m_SubstitutableSubgraph
Subgraph of Layers from the original graph which should be replaced.
OptimizationViews(const NetworkOptions &networkOptions={})
Subgraphs & GetUntouchedSubgraphs()
std::vector< BackendOptions > NetworkOptions
The SubgraphView class represents a subgraph of a Graph.
void AddSubstitution(SubstitutionPair &&substitution)
Subgraphs & GetFailedSubgraphs()
bool Validate(const SubgraphView &originalSubgraph) const
void AddFailedSubgraph(SubgraphView &&subgraph)
INetwork & GetINetworkRef()
SubgraphView m_ReplacementSubgraph
A subgraph of new layers which will replace layers in m_SubstitutableSubgraph.
void AddDeletedSubgraph(SubgraphView &&subgraph)
const Substitutions & GetSubstitutions() const
const Subgraphs & GetDeletedSubgraphs() const
std::vector< SubstitutionPair > Substitutions
Copyright (c) 2021 ARM Limited and Contributors.
Substitutions & GetSubstitutions()
static INetworkPtr Create(const NetworkOptions &networkOptions={})
Main network class which provides the interface for building up a neural network.