ArmNN
 20.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 // Set style to round to nearest
9 #define HALF_ROUND_STYLE 1
10 
11 #include <type_traits>
12 #include <half/half.hpp>
13 
14 namespace armnn
15 {
16  using Half = half_float::half; //import half float implementation
17 } //namespace armnn
18 
19 
20 namespace std
21 {
22 
23 template<>
24 struct is_floating_point<armnn::Half>
25  : integral_constant< bool, true >
26 {};
27 
28 template<>
29 struct is_floating_point<const armnn::Half>
30  : integral_constant< bool, true >
31 {};
32 
33 template<>
34 struct is_floating_point<volatile armnn::Half>
35  : integral_constant< bool, true >
36 {};
37 
38 } //namespace std
Copyright (c) 2020 ARM Limited.
half_float::half Half
Definition: Half.hpp:16