31class SubgraphView final :
public std::enable_shared_from_this<SubgraphView>
34 template <
typename Func>
37 for (
auto it = m_Layers.begin(); it != m_Layers.end(); )
39 auto next = std::next(it);
45 template <
typename Func>
48 for (
auto it = m_IConnectableLayers.begin(); it != m_IConnectableLayers.end(); )
50 auto next = std::next(it);
73 "IConnectableLayers, IInputSlots and IOutputSlots",
"23.08")
110 "begin() returning public IConnectableIterator",
"24.05")
114 "end() returning public IConnectableLayerIterator",
"24.05")
119 "begin() returning public ConstIConnectableIterator",
"24.05")
123 "end() returning public ConstIConnectableIterator",
"24.05")
128 "cbegin() returning public ConstIterator",
"24.05")
133 "cend() returning public ConstIConnectableIterator",
"24.05")
158 struct SubgraphViewWorkingCopy;
164 std::shared_ptr<SubgraphViewWorkingCopy> ptr);
166 void CheckSubgraph();
169 void ArrangeBySortOrder();
190 std::shared_ptr<SubgraphViewWorkingCopy> p_WorkingCopyImpl;
Interface for a layer that is connectable to other layers via InputSlots and OutputSlots.
An output connection slot for a layer.
OutputSlot * GetOutputSlot(unsigned int index)
const IOutputSlots & GetOriginalOutputSlots() const
IConnectableLayers::iterator IConnectableLayerIterator
IConnectableLayers::const_iterator ConstIConnectableIterator
IConnectableLayerIterator begin()
Layers::const_iterator ConstIterator
std::vector< IOutputSlot * > IOutputSlots
SubgraphView(Graph &graph)
Constructs a sub-graph from the entire given graph.
ConstIConnectableIterator cend() const
std::vector< IInputSlot * > IInputSlots
unsigned int GetNumOutputSlots() const
SubgraphView GetWorkingCopy() const
This method returns a copy of the original SubgraphView provided by OptimizeSubgraphView with a separ...
OutputSlots Layers && layers
std::vector< InputSlot * > InputSlots
unsigned int GetNumInputSlots() const
std::list< Layer * > Layers
ConstIConnectableIterator cbegin() const
std::vector< OutputSlot * > OutputSlots
const IInputSlot * GetIInputSlot(unsigned int index) const
const IConnectableLayers & GetIConnectableLayers() const
void ForEachIConnectableLayer(Func func) const
const IOutputSlot * GetIOutputSlot(unsigned int index) const
const IInputSlots & GetOriginalInputSlots() const
These methods should be called on a working copy subgraph created from GetWorkingCopy.
ARMNN_DEPRECATED_MSG_REMOVAL_DATE("This function has been deprecated, please use constructor with arguments: " "IConnectableLayers, IInputSlots and IOutputSlots", "23.08") SubgraphView(InputSlots &&inputs
Constructs a sub-graph with the given arguments.
ARMNN_DEPRECATED_MSG_CHANGE_DATE("This function is deprecated and will be removed; please use " "begin() returning public IConnectableIterator", "24.05") IConnectableLayerIterator beginIConnectable()
std::shared_ptr< SubgraphView > SubgraphViewPtr
void ForEachLayer(Func func) const
std::list< IConnectableLayer * > IConnectableLayers
const IInputSlots & GetIInputSlots() const
const IOutputSlots & GetIOutputSlots() const
void SubstituteSubgraph(SubgraphView &, IConnectableLayer *)
These methods should be called on a working copy subgraph created from GetWorkingCopy.
Layers::iterator Iterator
IConnectableLayerIterator end()
Copyright (c) 2021 ARM Limited and Contributors.