diff options
Diffstat (limited to 'src/armnn/layers/ElementwiseUnaryLayer.cpp')
-rw-r--r-- | src/armnn/layers/ElementwiseUnaryLayer.cpp | 8 |
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 |