ArmNN
 20.02
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 "BFloat16.hpp"
10 #include "Half.hpp"
11 
12 namespace armnn
13 {
14 
15 template<DataType DT>
17 
18 template <>
20 {
21  using Type = Half;
22 };
23 
24 template<>
26 {
27  using Type = float;
28 };
29 
30 template<>
32 {
33  using Type = uint8_t;
34 };
35 
36 template<>
38 {
39  using Type = int8_t;
40 };
41 
42 template<>
44 {
45  using Type = int8_t;
46 };
47 
48 template<>
50 {
51  using Type = int16_t;
52 };
53 
54 template<>
56 {
57  using Type = int32_t;
58 };
59 
60 template<>
62 {
63  using Type = uint8_t;
64 };
65 
66 template<>
68 {
69  using Type = BFloat16;
70 };
71 
72 template<DataType DT>
74 
75 } //namespace armnn
typename ResolveTypeImpl< DT >::Type ResolveType
Definition: ResolveType.hpp:73
Copyright (c) 2020 ARM Limited.
DataType
Definition: Types.hpp:32
half_float::half Half
Definition: Half.hpp:16