ArmNN  NotReleased
ResolveType.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 "armnn/Types.hpp"
9 #include "Half.hpp"
10 
11 namespace armnn
12 {
13 
14 template<DataType DT>
16 
17 template <>
19 {
20  using Type = Half;
21 };
22 
23 template<>
25 {
26  using Type = float;
27 };
28 
29 template<>
31 {
32  using Type = uint8_t;
33 };
34 
35 template<>
37 {
38  using Type = int8_t;
39 };
40 
41 template<>
43 {
44  using Type = int8_t;
45 };
46 
47 template<>
49 {
50  using Type = int16_t;
51 };
52 
53 template<>
55 {
56  using Type = int32_t;
57 };
58 
59 template<>
61 {
62  using Type = uint8_t;
63 };
64 
65 template<DataType DT>
67 
68 } //namespace armnn
half_float::half Half
Definition: Half.hpp:16
typename ResolveTypeImpl< DT >::Type ResolveType
Definition: ResolveType.hpp:66
DataType
Definition: Types.hpp:32