diff options
author | Teresa Charlin <teresa.charlinreyes@arm.com> | 2021-12-03 16:07:42 +0000 |
---|---|---|
committer | Mike Kelly <mike.kelly@arm.com> | 2023-03-14 18:30:34 +0000 |
commit | ee5872d95455351458ad4373176360200594daa1 (patch) | |
tree | 63207fa1e397e1c3cf87072d93c490a234935a8c /1.1/HalPolicy.hpp | |
parent | de547168f108ec1494f18b3ab1ea50bd09f370c1 (diff) | |
download | android-nn-driver-ee5872d95455351458ad4373176360200594daa1.tar.gz |
IVGCVSW-3809 Refactor Elementwise Binary ops to use ElementwiseBinaryLayer
!armnn:9319
* Refactored all functions to convert Add, Div, Maximum, Minimum, Mul
and Sub to use ElementwiseBinary layers instead.
Signed-off-by: Teresa Charlin <teresa.charlinreyes@arm.com>
Signed-off-by: Mike Kelly <mike.kelly@arm.com>
Change-Id: Ic05885cd8692e7f1b7032862fb4a395af70e0bcd
Signed-off-by: Mike Kelly <mike.kelly@arm.com>
Change-Id: If9717d6ab236d97c76f6cd39b96bde86c81e4382
Diffstat (limited to '1.1/HalPolicy.hpp')
-rw-r--r-- | 1.1/HalPolicy.hpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/1.1/HalPolicy.hpp b/1.1/HalPolicy.hpp index 18bb705c..e1feb830 100644 --- a/1.1/HalPolicy.hpp +++ b/1.1/HalPolicy.hpp @@ -1,5 +1,5 @@ // -// Copyright © 2017 Arm Ltd. All rights reserved. +// Copyright © 2017-2021,2023 Arm Ltd and Contributors. All rights reserved. // SPDX-License-Identifier: MIT // @@ -31,8 +31,11 @@ public: static bool ConvertOperation(const Operation& operation, const Model& model, ConversionData& data); private: - static bool ConvertDiv(const Operation& operation, const Model& model, ConversionData& data); - static bool ConvertSub(const Operation& operation, const Model& model, ConversionData& data); + static bool ConvertElementwiseBinary(const Operation& operation, + const Model& model, + ConversionData& data, + armnn::BinaryOperation binaryOperation); + static bool ConvertMean(const Operation& operation, const Model& model, ConversionData& data); static bool ConvertPad(const Operation& operation, const Model& model, ConversionData& data); static bool ConvertSpaceToBatchNd(const Operation& operation, const Model& model, ConversionData& data); |