ArmNN
 24.02
ResolveType.hpp
Go to the documentation of this file.
1 //
2 // Copyright © 2017 Arm Ltd and Contributors. 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 = int64_t;
64 };
65 
66 template<>
68 {
69  using Type = uint8_t;
70 };
71 
72 template<>
74 {
75  using Type = BFloat16;
76 };
77 
78 template<DataType DT>
80 
81 } //namespace armnn
armnn::DataType::Boolean
@ Boolean
armnn::ResolveTypeImpl
Definition: ResolveType.hpp:16
armnn::ResolveTypeImpl< DataType::Signed32 >::Type
int32_t Type
Definition: ResolveType.hpp:57
armnn::ResolveTypeImpl< DataType::Boolean >::Type
uint8_t Type
Definition: ResolveType.hpp:69
armnn::ResolveTypeImpl< DataType::QSymmS16 >::Type
int16_t Type
Definition: ResolveType.hpp:51
armnn::ResolveTypeImpl< DataType::QAsymmS8 >::Type
int8_t Type
Definition: ResolveType.hpp:39
armnn::DataType::Float32
@ Float32
armnn::DataType::QAsymmU8
@ QAsymmU8
armnn::DataType::QSymmS8
@ QSymmS8
armnn::Half
half_float::half Half
Definition: Half.hpp:22
armnn::DataType::QSymmS16
@ QSymmS16
armnn::DataType::Float16
@ Float16
armnn::DataType
DataType
Definition: Types.hpp:48
armnn::ResolveType
typename ResolveTypeImpl< DT >::Type ResolveType
Definition: ResolveType.hpp:79
armnn::DataType::Signed32
@ Signed32
armnn::DataType::QAsymmS8
@ QAsymmS8
Half.hpp
armnn::ResolveTypeImpl< DataType::Float16 >::Type
Half Type
Definition: ResolveType.hpp:21
armnn::ResolveTypeImpl< DataType::Float32 >::Type
float Type
Definition: ResolveType.hpp:27
armnn::BFloat16
Definition: BFloat16.hpp:15
armnn::ResolveTypeImpl< DataType::QSymmS8 >::Type
int8_t Type
Definition: ResolveType.hpp:45
armnn::ResolveTypeImpl< DataType::Signed64 >::Type
int64_t Type
Definition: ResolveType.hpp:63
armnn
Copyright (c) 2021 ARM Limited and Contributors.
Definition: 01_00_quick_start.dox:6
Types.hpp
armnn::ResolveTypeImpl< DataType::QAsymmU8 >::Type
uint8_t Type
Definition: ResolveType.hpp:33
BFloat16.hpp
armnn::DataType::Signed64
@ Signed64