ArmNN
 22.05.01
Half.hpp
Go to the documentation of this file.
1 //
2 // Copyright © 2017 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
6 #pragma once
7 
8 #include <type_traits>
9 
10 // Set style to round to nearest
11 #define HALF_ROUND_STYLE 1
12 #define HALF_ROUND_TIES_TO_EVEN 1
13 
14 #include "half/half.hpp"
15 
16 namespace armnn
17 {
18  using Half = half_float::half; //import half float implementation
19 } //namespace armnn
20 
21 
22 namespace std
23 {
24 
25 template<>
26 struct is_floating_point<armnn::Half>
27  : integral_constant< bool, true >
28 {};
29 
30 template<>
31 struct is_floating_point<const armnn::Half>
32  : integral_constant< bool, true >
33 {};
34 
35 template<>
36 struct is_floating_point<volatile armnn::Half>
37  : integral_constant< bool, true >
38 {};
39 
40 } //namespace std
Copyright (c) 2021 ARM Limited and Contributors.
half_float::half Half
Definition: Half.hpp:18