26 template <
typename Func>
29 for (
auto it = m_Layers.begin(); it != m_Layers.end(); )
31 auto next = std::next(it);
Interface for a layer that is connectable to other layers via InputSlots and OutputSlots.
Layers::iterator Iterator
SubgraphView & operator=(SubgraphView &&other)
Move-assignment operator.
std::vector< OutputSlot * > OutputSlots
unsigned int GetNumInputSlots() const
Copyright (c) 2020 ARM Limited.
The SubgraphView class represents a subgraph of a Graph.
std::unique_ptr< SubgraphView > SubgraphViewPtr
const OutputSlot * GetOutputSlot(unsigned int index) const
std::vector< InputSlot * > InputSlots
SubgraphView(Graph &graph)
Constructs a sub-graph from the entire given graph.
const InputSlots & GetInputSlots() const
ConstIterator cend() const
const InputSlot * GetInputSlot(unsigned int index) const
const OutputSlots & GetOutputSlots() const
const Layers & GetLayers() const
#define ARMNN_DEPRECATED_MSG(message)
ConstIterator cbegin() const
void ForEachLayer(Func func) const
std::list< Layer * > Layers
Layers::const_iterator ConstIterator
unsigned int GetNumOutputSlots() const