diff options
author | Matteo Martincigh <matteo.martincigh@arm.com> | 2019-05-22 14:28:16 +0100 |
---|---|---|
committer | Matteo Martincigh <matteo.martincigh@arm.com> | 2019-05-22 16:00:33 +0100 |
commit | c3ba50e5e6e96ae057ccdb3761bf41a5691a53f0 (patch) | |
tree | d5750497300baf12f5958a021e887d375771d436 /src/backends/neon | |
parent | 38a92584d5ac242e47a2fe1b6fee1cb136d51279 (diff) | |
download | armnn-c3ba50e5e6e96ae057ccdb3761bf41a5691a53f0.tar.gz |
IVGCVSW-3132 Reintroduce SubGraph definition, but deprecated
* Restored old SubGraph class definition as an alias of SubgraphView
for backward compatibility
* Restored SubGraphUniquePtr
* Restored CreateSubGraphConverter method (and the corresponding
ISubGraphConverterPtr type) as a deprecated method that's been
removed from the backend interface
* Chaged the defautl implementation of OptimizeSubgraphView to call
the deprecated OptimizeSubGraph
* Changed the default implementation of OptimizeSubgraphView in the
backends
Change-Id: If69903926bf5ff2aae52c9b64b4572b355662757
Signed-off-by: Matteo Martincigh <matteo.martincigh@arm.com>
Diffstat (limited to 'src/backends/neon')
-rw-r--r-- | src/backends/neon/NeonBackend.cpp | 10 | ||||
-rw-r--r-- | src/backends/neon/NeonBackend.hpp | 3 |
2 files changed, 6 insertions, 7 deletions
diff --git a/src/backends/neon/NeonBackend.cpp b/src/backends/neon/NeonBackend.cpp index 8defac1e60..d7be844c21 100644 --- a/src/backends/neon/NeonBackend.cpp +++ b/src/backends/neon/NeonBackend.cpp @@ -74,13 +74,13 @@ IBackendInternal::ILayerSupportSharedPtr NeonBackend::GetLayerSupport() const return layerSupport; } -IBackendInternal::SubgraphViewUniquePtr NeonBackend::OptimizeSubgraphView(const SubgraphView& subgraph, - bool& optimizationAttempted) const +OptimizationViews NeonBackend::OptimizeSubgraphView(const SubgraphView& subgraph) const { - // Not trying to optimize the given sub-graph - optimizationAttempted = false; + OptimizationViews optimizationViews; - return SubgraphViewUniquePtr{}; + optimizationViews.AddUntouchedSubgraph(SubgraphView(subgraph)); + + return optimizationViews; } } // namespace armnn diff --git a/src/backends/neon/NeonBackend.hpp b/src/backends/neon/NeonBackend.hpp index 0d03c2565e..398337f775 100644 --- a/src/backends/neon/NeonBackend.hpp +++ b/src/backends/neon/NeonBackend.hpp @@ -28,8 +28,7 @@ public: IBackendInternal::Optimizations GetOptimizations() const override; IBackendInternal::ILayerSupportSharedPtr GetLayerSupport() const override; - IBackendInternal::SubgraphViewUniquePtr OptimizeSubgraphView(const SubgraphView& subgraph, - bool& optimizationAttempted) const override; + OptimizationViews OptimizeSubgraphView(const SubgraphView& subgraph) const override; }; } // namespace armnn |