aboutsummaryrefslogtreecommitdiff
path: root/src/armnn/SubGraph.hpp
diff options
context:
space:
mode:
authorMatteo Martincigh <matteo.martincigh@arm.com>2019-01-11 13:25:59 +0000
committerMatteo Martincigh <matteo.martincigh@arm.com>2019-01-15 08:59:50 +0000
commit4912402497a51c6afe0898b3900f87feefa006a6 (patch)
tree4e9b5161781d2b0be041aec17227193da5977443 /src/armnn/SubGraph.hpp
parentd0a1608e2c41639d8f3e3f9305d79c5f92c9cff8 (diff)
downloadarmnn-4912402497a51c6afe0898b3900f87feefa006a6.tar.gz
IVGCVSW-2454 Merge together the pluggable backends work (was in a
separate branch) and master * Brings in all the changes done for the pluggable backends * Added sub-graph support and tests * Added precompiled layer support and tests * Moved BackendSettings to a separate file * Removed the backend-specific code * Ported DebugLayer and associated functionality * Included fixes to make those changes work with master Change-Id: Id7028fa7917527b844628d5aff5732e3d94c0488
Diffstat (limited to 'src/armnn/SubGraph.hpp')
-rw-r--r--src/armnn/SubGraph.hpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/armnn/SubGraph.hpp b/src/armnn/SubGraph.hpp
index 312bb115eb..d22377daff 100644
--- a/src/armnn/SubGraph.hpp
+++ b/src/armnn/SubGraph.hpp
@@ -8,7 +8,7 @@
#include "Layer.hpp"
#include <vector>
-#include <unordered_set>
+#include <list>
namespace armnn
{
@@ -24,7 +24,7 @@ class SubGraph final
public:
using InputSlots = std::vector<InputSlot *>;
using OutputSlots = std::vector<OutputSlot *>;
- using Layers = std::unordered_set<Layer *>;
+ using Layers = std::list<Layer*>;
SubGraph();
SubGraph(InputSlots && inputs,
@@ -44,6 +44,15 @@ public:
unsigned int GetNumInputSlots() const;
unsigned int GetNumOutputSlots() const;
+ Layers::iterator begin();
+ Layers::iterator end();
+
+ Layers::const_iterator begin() const;
+ Layers::const_iterator end() const;
+
+ Layers::const_iterator cbegin() const;
+ Layers::const_iterator cend() const;
+
private:
InputSlots m_InputSlots;
OutputSlots m_OutputSlots;