aboutsummaryrefslogtreecommitdiff
path: root/src/armnn/layers/ElementwiseUnaryLayer.cpp
diff options
context:
space:
mode:
authorTeresa Charlin <teresa.charlinreyes@arm.com>2022-01-07 09:47:29 +0000
committerTeresaARM <teresa.charlinreyes@arm.com>2022-01-18 13:15:41 +0000
commit611c7fb97412230d5cefee047081455fb60db06c (patch)
tree1244050b50a300f67285aef00d8b05c52865b89a /src/armnn/layers/ElementwiseUnaryLayer.cpp
parent53e06599a3af44db90c37d1cda34fc85ec9c27fa (diff)
downloadarmnn-611c7fb97412230d5cefee047081455fb60db06c.tar.gz
IVGCVSW-6641 Stabilize the IWorkloadFactory interface with unified strategy
Signed-off-by: Teresa Charlin <teresa.charlinreyes@arm.com> Change-Id: Ia941be9bf2c15fe56e49a9b9a2bbe943a8152438
Diffstat (limited to 'src/armnn/layers/ElementwiseUnaryLayer.cpp')
-rw-r--r--src/armnn/layers/ElementwiseUnaryLayer.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/armnn/layers/ElementwiseUnaryLayer.cpp b/src/armnn/layers/ElementwiseUnaryLayer.cpp
index 37d6084d5b..c50910bd32 100644
--- a/src/armnn/layers/ElementwiseUnaryLayer.cpp
+++ b/src/armnn/layers/ElementwiseUnaryLayer.cpp
@@ -23,13 +23,7 @@ ElementwiseUnaryLayer::ElementwiseUnaryLayer(const ElementwiseUnaryDescriptor& p
std::unique_ptr<IWorkload> ElementwiseUnaryLayer::CreateWorkload(const IWorkloadFactory& factory) const
{
ElementwiseUnaryQueueDescriptor descriptor;
-
- if (descriptor.m_Parameters.m_Operation == UnaryOperation::LogicalNot)
- {
- return factory.CreateLogicalUnary(descriptor, PrepInfoAndDesc(descriptor));
- }
-
- return factory.CreateElementwiseUnary(descriptor, PrepInfoAndDesc(descriptor));
+ return factory.CreateWorkload(LayerType::ElementwiseUnary, descriptor, PrepInfoAndDesc(descriptor));
}
ElementwiseUnaryLayer* ElementwiseUnaryLayer::Clone(Graph& graph) const