From 6940dd720ebb6b3d1df8ca203ab696daefe58189 Mon Sep 17 00:00:00 2001 From: Jim Flynn Date: Fri, 20 Mar 2020 12:25:56 +0000 Subject: renamed Documentation folder 20.02 and added .nojekyll file Signed-off-by: Jim Flynn --- 20.02/_compatible_types_8hpp_source.xhtml | 135 ++++++++++++++++++++++++++++++ 1 file changed, 135 insertions(+) create mode 100644 20.02/_compatible_types_8hpp_source.xhtml (limited to '20.02/_compatible_types_8hpp_source.xhtml') diff --git a/20.02/_compatible_types_8hpp_source.xhtml b/20.02/_compatible_types_8hpp_source.xhtml new file mode 100644 index 0000000000..e814bf4a2d --- /dev/null +++ b/20.02/_compatible_types_8hpp_source.xhtml @@ -0,0 +1,135 @@ + + + + + + + + + + + + + +ArmNN: src/armnn/CompatibleTypes.hpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
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 #include "Half.hpp"
10 
11 namespace armnn
12 {
13 
14 template<typename T>
16 {
17  return false;
18 }
19 
20 template<>
21 inline bool CompatibleTypes<float>(DataType dataType)
22 {
23  return dataType == DataType::Float32;
24 }
25 
26 template<>
27 inline bool CompatibleTypes<Half>(DataType dataType)
28 {
29  return dataType == DataType::Float16;
30 }
31 
32 template<>
33 inline bool CompatibleTypes<uint8_t>(DataType dataType)
34 {
35  return dataType == DataType::Boolean || dataType == DataType::QAsymmU8;
36 }
37 
38 template<>
39 inline bool CompatibleTypes<int8_t>(DataType dataType)
40 {
42  return dataType == DataType::QSymmS8
43  || dataType == DataType::QuantizedSymm8PerAxis
44  || dataType == DataType::QAsymmS8;
46 }
47 
48 template<>
49 inline bool CompatibleTypes<int16_t>(DataType dataType)
50 {
51  return dataType == DataType::QSymmS16;
52 }
53 
54 template<>
55 inline bool CompatibleTypes<int32_t>(DataType dataType)
56 {
57  return dataType == DataType::Signed32;
58 }
59 
60 } //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) 2020 ARM Limited.
+
bool CompatibleTypes< int16_t >(DataType dataType)
+
DataType
Definition: Types.hpp:32
+
#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< uint8_t >(DataType dataType)
+
+
+ + + + -- cgit v1.2.1