ArmNN
 24.02
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 #ifndef HALF_ROUND_STYLE
12  #define HALF_ROUND_STYLE 1
13 #endif
14 #ifndef HALF_ROUND_TIES_TO_EVEN
15  #define HALF_ROUND_TIES_TO_EVEN 1
16 #endif
17 
18 #include "half/half.hpp"
19 
20 namespace armnn
21 {
22  using Half = half_float::half; //import half float implementation
23 } //namespace armnn
24 
25 
26 namespace std
27 {
28 
29 template<>
30 struct is_floating_point<armnn::Half>
31  : integral_constant< bool, true >
32 {};
33 
34 template<>
35 struct is_floating_point<const armnn::Half>
36  : integral_constant< bool, true >
37 {};
38 
39 template<>
40 struct is_floating_point<volatile armnn::Half>
41  : integral_constant< bool, true >
42 {};
43 
44 } //namespace std
armnn::Half
half_float::half Half
Definition: Half.hpp:22
std
Definition: BackendId.hpp:149
armnn
Copyright (c) 2021 ARM Limited and Contributors.
Definition: 01_00_quick_start.dox:6