IVGCVSW-5328-5329 Fuse Activation
* Added Fused Activation Optimization to both CL and Neon backends.
* Added Fused Activation support to all the CL and Neon workloads
that support it.
* Changed ProfilingTest network to be a Convolution layer
followed by an Abs layer rather than an Activation layer.
* Added IBackendInternal::OptimizeSubgraphView function that can accept a
ModelOptions.
* Network will now call OptimizeSubgraphView passing in the ModelOptions.
Signed-off-by: Keith Davis <keith.davis@arm.com>
Signed-off-by: Mike Kelly <mike.kelly@arm.com>
Signed-off-by: Teresa Charlin <teresa.charlinreyes@arm.com>
Change-Id: Ib536ac3cbafc7d9b35c139ad9a65b7735262cd9d
diff --git a/src/backends/backendsCommon/IBackendInternal.cpp b/src/backends/backendsCommon/IBackendInternal.cpp
index 81fc515..b08dff8 100644
--- a/src/backends/backendsCommon/IBackendInternal.cpp
+++ b/src/backends/backendsCommon/IBackendInternal.cpp
@@ -3,6 +3,7 @@
// SPDX-License-Identifier: MIT
//
+#include <armnn/BackendOptions.hpp>
#include <armnn/backends/IBackendInternal.hpp>
namespace armnn
@@ -135,6 +136,12 @@
return result;
}
+OptimizationViews IBackendInternal::OptimizeSubgraphView(const SubgraphView& subgraph,
+ const ModelOptions& /*modelOptions*/) const
+{
+ return OptimizeSubgraphView(subgraph);
+}
+
bool IBackendInternal::SupportsTensorAllocatorAPI() const
{
return !GetHandleFactoryPreferences().empty();