24.08
|
Go to the documentation of this file.
18 class IConnectableLayer;
31 class 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")
158 struct SubgraphViewWorkingCopy;
164 std::shared_ptr<SubgraphViewWorkingCopy> ptr);
166 void CheckSubgraph();
169 void ArrangeBySortOrder();
190 std::shared_ptr<SubgraphViewWorkingCopy> p_WorkingCopyImpl;
std::vector< IOutputSlot * > IOutputSlots
const IInputSlot * GetIInputSlot(unsigned int index) const
Layers::const_iterator ConstIterator
OutputSlot * GetOutputSlot(unsigned int index)
std::list< Layer * > Layers
ConstIConnectableIterator cbegin() const
const IOutputSlot * GetIOutputSlot(unsigned int index) const
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.
unsigned int GetNumInputSlots() const
IConnectableLayers::iterator IConnectableLayerIterator
Layers::iterator Iterator
std::vector< InputSlot * > InputSlots
ConstIConnectableIterator cend() const
std::list< IConnectableLayer * > IConnectableLayers
IConnectableLayers::const_iterator ConstIConnectableIterator
An output connection slot for a layer.
const IConnectableLayers & GetIConnectableLayers() const
IConnectableLayerIterator begin()
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
std::vector< IInputSlot * > IInputSlots
The SubgraphView class represents a subgraph of a Graph.
SubgraphView GetWorkingCopy() const
This method returns a copy of the original SubgraphView provided by OptimizeSubgraphView with a separ...
OutputSlots Layers && layers
void ForEachLayer(Func func) const
unsigned int GetNumOutputSlots() const
const IInputSlots & GetIInputSlots() const
IConnectableLayerIterator end()
std::vector< OutputSlot * > OutputSlots
Copyright (c) 2021 ARM Limited and Contributors.
void ForEachIConnectableLayer(Func func) const
Interface for a layer that is connectable to other layers via InputSlots and OutputSlots.
const IOutputSlots & GetIOutputSlots() const
void SubstituteSubgraph(SubgraphView &, IConnectableLayer *)
These methods should be called on a working copy subgraph created from GetWorkingCopy.
const IOutputSlots & GetOriginalOutputSlots() const
SubgraphView(Graph &graph)
Constructs a sub-graph from the entire given graph.
const IInputSlots & GetOriginalInputSlots() const
These methods should be called on a working copy subgraph created from GetWorkingCopy.