20.11
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>
16
struct
ResolveTypeImpl
;
17
18
template
<>
19
struct
ResolveTypeImpl
<
DataType
::
Float16
>
20
{
21
using
Type
=
Half
;
22
};
23
24
template
<>
25
struct
ResolveTypeImpl
<
DataType
::
Float32
>
26
{
27
using
Type
= float;
28
};
29
30
template
<>
31
struct
ResolveTypeImpl
<
DataType
::
QAsymmU8
>
32
{
33
using
Type
= uint8_t;
34
};
35
36
template
<>
37
struct
ResolveTypeImpl
<
DataType
::
QAsymmS8
>
38
{
39
using
Type
= int8_t;
40
};
41
42
template
<>
43
struct
ResolveTypeImpl
<
DataType
::
QSymmS8
>
44
{
45
using
Type
= int8_t;
46
};
47
48
template
<>
49
struct
ResolveTypeImpl
<
DataType
::
QSymmS16
>
50
{
51
using
Type
= int16_t;
52
};
53
54
template
<>
55
struct
ResolveTypeImpl
<
DataType
::
Signed32
>
56
{
57
using
Type
= int32_t;
58
};
59
60
template
<>
61
struct
ResolveTypeImpl
<
DataType
::
Boolean
>
62
{
63
using
Type
= uint8_t;
64
};
65
66
template
<>
67
struct
ResolveTypeImpl
<
DataType
::
BFloat16
>
68
{
69
using
Type
=
BFloat16
;
70
};
71
72
template
<DataType DT>
73
using
ResolveType
=
typename
ResolveTypeImpl<DT>::Type
;
74
75
}
//namespace armnn
armnn::DataType::Boolean
armnn::DataType::Signed32
armnn::BFloat16
Definition:
BFloat16.hpp:14
armnn::ResolveTypeImpl< DataType::QSymmS8 >::Type
int8_t Type
Definition:
ResolveType.hpp:45
armnn::ResolveType
typename ResolveTypeImpl< DT >::Type ResolveType
Definition:
ResolveType.hpp:73
armnn::DataType::QAsymmS8
armnn::DataType::QSymmS16
armnn::ResolveTypeImpl< DataType::Signed32 >::Type
int32_t Type
Definition:
ResolveType.hpp:57
armnn
Copyright (c) 2020 ARM Limited.
Definition:
00_introduction.dox:25
armnn::ResolveTypeImpl< DataType::Float16 >::Type
Half Type
Definition:
ResolveType.hpp:21
armnn::ResolveTypeImpl< DataType::Boolean >::Type
uint8_t Type
Definition:
ResolveType.hpp:63
armnn::ResolveTypeImpl< DataType::QAsymmS8 >::Type
int8_t Type
Definition:
ResolveType.hpp:39
armnn::DataType
DataType
Definition:
Types.hpp:32
armnn::ResolveTypeImpl< DataType::QSymmS16 >::Type
int16_t Type
Definition:
ResolveType.hpp:51
armnn::ResolveTypeImpl
Definition:
ResolveType.hpp:16
armnn::DataType::QAsymmU8
Types.hpp
armnn::DataType::Float16
armnn::DataType::BFloat16
Half.hpp
armnn::ResolveTypeImpl< DataType::Float32 >::Type
float Type
Definition:
ResolveType.hpp:27
armnn::ResolveTypeImpl< DataType::QAsymmU8 >::Type
uint8_t Type
Definition:
ResolveType.hpp:33
BFloat16.hpp
armnn::DataType::Float32
armnn::DataType::QSymmS8
armnn::Half
half_float::half Half
Definition:
Half.hpp:16
src
armnn
ResolveType.hpp
Generated on Wed Nov 25 2020 09:59:10 for ArmNN by
1.8.13