From 164bf4f29f6f1b2a3e6714ef4f5a21fc0fd16c2b Mon Sep 17 00:00:00 2001 From: Matthew Sloyan Date: Fri, 28 Oct 2022 18:02:17 +0100 Subject: IVGCVSW-7164 Implement TosaRefBackend::OptimizeSubgraphView * Added TosaRefBackend::OptimizeSubgraphView implementation. * Generalised TosaRefLayerSupport::IsLayerSupported to work with any operator. * Changed TosaCommon.hpp utils to inline functions. * Added source files for TosaMappings.hpp and AdditionOperator.hpp. * Fixed multiple defines issue with HALF_ROUND_STYLE and HALF_ROUND_TIES_TO_EVEN. Signed-off-by: Matthew Sloyan Change-Id: Ib2576ec3fb97faa3a2256b2fb93ec16ac8745760 --- src/armnnUtils/Half.hpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/armnnUtils') diff --git a/src/armnnUtils/Half.hpp b/src/armnnUtils/Half.hpp index d55c2f9ecd..e39968f54d 100644 --- a/src/armnnUtils/Half.hpp +++ b/src/armnnUtils/Half.hpp @@ -8,8 +8,12 @@ #include // Set style to round to nearest -#define HALF_ROUND_STYLE 1 -#define HALF_ROUND_TIES_TO_EVEN 1 +#ifndef HALF_ROUND_STYLE + #define HALF_ROUND_STYLE 1 +#endif +#ifndef HALF_ROUND_TIES_TO_EVEN + #define HALF_ROUND_TIES_TO_EVEN 1 +#endif #include "half/half.hpp" -- cgit v1.2.1