From f86be93b7492b381370cae7bf71eca8572a0cbae Mon Sep 17 00:00:00 2001 From: Matthew Sloyan Date: Tue, 24 Aug 2021 16:27:15 +0100 Subject: IVGCVSW-5924 Update 21.08 Doxygen Documents * Also updated latest symlink. Signed-off-by: Matthew Sloyan Change-Id: If9b4e0e52464abdf797b9eb858ae19bcc64c2aea --- 21.08/_compatible_types_8hpp_source.xhtml | 138 ++++++++++++++++++++++++++++++ 1 file changed, 138 insertions(+) create mode 100644 21.08/_compatible_types_8hpp_source.xhtml (limited to '21.08/_compatible_types_8hpp_source.xhtml') diff --git a/21.08/_compatible_types_8hpp_source.xhtml b/21.08/_compatible_types_8hpp_source.xhtml new file mode 100644 index 0000000000..2b99dd8de7 --- /dev/null +++ b/21.08/_compatible_types_8hpp_source.xhtml @@ -0,0 +1,138 @@ + + + + + + + + + + + + + +ArmNN: src/armnn/CompatibleTypes.hpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  21.08 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
CompatibleTypes.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 
10 #include <BFloat16.hpp>
11 #include <Half.hpp>
12 
13 namespace armnn
14 {
15 
16 template<typename T>
18 {
19  return false;
20 }
21 
22 template<>
23 inline bool CompatibleTypes<float>(DataType dataType)
24 {
25  return dataType == DataType::Float32;
26 }
27 
28 template<>
29 inline bool CompatibleTypes<Half>(DataType dataType)
30 {
31  return dataType == DataType::Float16;
32 }
33 
34 template<>
35 inline bool CompatibleTypes<BFloat16>(DataType dataType)
36 {
37  return dataType == DataType::BFloat16;
38 }
39 
40 template<>
41 inline bool CompatibleTypes<uint8_t>(DataType dataType)
42 {
43  return dataType == DataType::Boolean || dataType == DataType::QAsymmU8;
44 }
45 
46 template<>
47 inline bool CompatibleTypes<int8_t>(DataType dataType)
48 {
50  return dataType == DataType::QSymmS8
51  || dataType == DataType::QuantizedSymm8PerAxis
52  || dataType == DataType::QAsymmS8;
54 }
55 
56 template<>
57 inline bool CompatibleTypes<int16_t>(DataType dataType)
58 {
59  return dataType == DataType::QSymmS16;
60 }
61 
62 template<>
63 inline bool CompatibleTypes<int32_t>(DataType dataType)
64 {
65  return dataType == DataType::Signed32;
66 }
67 
68 } //namespace armnn
+
bool CompatibleTypes< Half >(DataType dataType)
+
#define ARMNN_NO_DEPRECATE_WARN_BEGIN
Definition: Deprecated.hpp:33
+ + +
bool CompatibleTypes< int32_t >(DataType dataType)
+ + +
Copyright (c) 2021 ARM Limited and Contributors.
+
bool CompatibleTypes< int16_t >(DataType dataType)
+
DataType
Definition: Types.hpp:35
+
#define ARMNN_NO_DEPRECATE_WARN_END
Definition: Deprecated.hpp:34
+
bool CompatibleTypes< int8_t >(DataType dataType)
+ + + +
bool CompatibleTypes(DataType)
+ +
bool CompatibleTypes< float >(DataType dataType)
+ + + + +
bool CompatibleTypes< BFloat16 >(DataType dataType)
+
bool CompatibleTypes< uint8_t >(DataType dataType)
+
+
+ + + + -- cgit v1.2.1