aboutsummaryrefslogtreecommitdiff
path: root/src/armnn/Graph.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/armnn/Graph.hpp')
-rw-r--r--src/armnn/Graph.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/armnn/Graph.hpp b/src/armnn/Graph.hpp
index c5b1b045a7..47e0e3b317 100644
--- a/src/armnn/Graph.hpp
+++ b/src/armnn/Graph.hpp
@@ -36,7 +36,7 @@ public:
}
template <typename Func>
- void ForEachLayerInGraph(Func func)
+ void ForEachLayer(Func func) const
{
for (auto it = m_Layers.begin(); it != m_Layers.end(); )
{
@@ -110,7 +110,7 @@ public:
m_LayersInOrder = std::move(other.m_LayersInOrder);
m_Views = std::move(other.m_Views);
- other.ForEachLayerInGraph([this](Layer* otherLayer)
+ other.ForEachLayer([this](Layer* otherLayer)
{
otherLayer->Reparent(*this, m_Layers.end());
});
@@ -123,7 +123,7 @@ public:
~Graph()
{
- ForEachLayerInGraph([](Layer* layer)
+ ForEachLayer([](Layer* layer)
{
delete layer;
});