aboutsummaryrefslogtreecommitdiff
path: root/src/armnnUtils/Half.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/armnnUtils/Half.hpp')
-rw-r--r--src/armnnUtils/Half.hpp8
1 files changed, 6 insertions, 2 deletions
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 <type_traits>
// 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"