From 0f3e9a09a90664fc7c6479f1d7b312a4671d9659 Mon Sep 17 00:00:00 2001 From: Francis Murtagh Date: Fri, 28 Jul 2023 14:29:46 +0100 Subject: IVGCVSW-7635 Remove deprecated code due to be removed in 23.08 (SubgraphView) Signed-off-by: Francis Murtagh Signed-off-by: Kevin May Change-Id: I6686ad0a16ef763dbdc771c7ef792ae2890e0ab2 --- src/backends/cl/ClBackend.cpp | 8 ++++---- src/backends/neon/NeonBackend.cpp | 8 ++++---- src/backends/reference/RefBackend.cpp | 8 ++++---- src/backends/tosaReference/TosaRefBackend.cpp | 4 ++-- 4 files changed, 14 insertions(+), 14 deletions(-) (limited to 'src/backends') diff --git a/src/backends/cl/ClBackend.cpp b/src/backends/cl/ClBackend.cpp index 532892e0d0..1d8ae21e5d 100644 --- a/src/backends/cl/ClBackend.cpp +++ b/src/backends/cl/ClBackend.cpp @@ -295,18 +295,18 @@ OptimizationViews ClBackend::OptimizeSubgraphView(const SubgraphView& subgraph, { OptimizationViews optimizationViews(modelOptions); - auto it = subgraph.endIConnectable(); + auto it = subgraph.end(); bool isFastMathEnabled = false; std::map untouched; - while (it != subgraph.beginIConnectable()) + while (it != subgraph.begin()) { --it; Layer& base = *(PolymorphicDowncast(*it)); untouched.insert({base.GetGuid(), &base}); } - it = subgraph.endIConnectable(); + it = subgraph.end(); #if defined(ARMCOMPUTECL_ENABLED) IBackendInternal::IBackendSpecificModelContextPtr modelContextPtr = CreateBackendSpecificModelContext(modelOptions); @@ -319,7 +319,7 @@ OptimizationViews ClBackend::OptimizeSubgraphView(const SubgraphView& subgraph, } } #endif - while (it != subgraph.beginIConnectable()) + while (it != subgraph.begin()) { --it; Layer& base = *(PolymorphicDowncast(*it)); diff --git a/src/backends/neon/NeonBackend.cpp b/src/backends/neon/NeonBackend.cpp index 3a398e03e6..a5e9ab9a96 100644 --- a/src/backends/neon/NeonBackend.cpp +++ b/src/backends/neon/NeonBackend.cpp @@ -144,18 +144,18 @@ OptimizationViews NeonBackend::OptimizeSubgraphView(const SubgraphView& subgraph { OptimizationViews optimizationViews(modelOptions); - auto it = subgraph.endIConnectable(); + auto it = subgraph.end(); std::map untouched; - while (it != subgraph.beginIConnectable()) + while (it != subgraph.begin()) { --it; Layer& base = *(PolymorphicDowncast(*it)); untouched.insert({base.GetGuid(), &base}); } - it = subgraph.endIConnectable(); - while (it != subgraph.beginIConnectable()) + it = subgraph.end(); + while (it != subgraph.begin()) { --it; Layer& base = *(PolymorphicDowncast(*it)); diff --git a/src/backends/reference/RefBackend.cpp b/src/backends/reference/RefBackend.cpp index 02749af1f9..fe11fd259c 100644 --- a/src/backends/reference/RefBackend.cpp +++ b/src/backends/reference/RefBackend.cpp @@ -74,18 +74,18 @@ OptimizationViews RefBackend::OptimizeSubgraphView(const SubgraphView& subgraph, { OptimizationViews optimizationViews(modelOptions); - auto it = subgraph.endIConnectable(); + auto it = subgraph.end(); std::map untouched; - while (it != subgraph.beginIConnectable()) + while (it != subgraph.begin()) { --it; Layer& base = *(PolymorphicDowncast(*it)); untouched.insert({base.GetGuid(), &base}); } - it = subgraph.endIConnectable(); - while (it != subgraph.beginIConnectable()) + it = subgraph.end(); + while (it != subgraph.begin()) { --it; Layer& base = *(PolymorphicDowncast(*it)); diff --git a/src/backends/tosaReference/TosaRefBackend.cpp b/src/backends/tosaReference/TosaRefBackend.cpp index 554bb10f0f..bce3e2c1b8 100644 --- a/src/backends/tosaReference/TosaRefBackend.cpp +++ b/src/backends/tosaReference/TosaRefBackend.cpp @@ -92,8 +92,8 @@ OptimizationViews TosaRefBackend::OptimizeSubgraphView(const SubgraphView& subgr std::vector operators; std::vector tensors; - auto it = subgraph.endIConnectable(); - while (it != subgraph.beginIConnectable()) + auto it = subgraph.end(); + while (it != subgraph.begin()) { --it; Layer& base = *(PolymorphicDowncast(*it)); -- cgit v1.2.1