From f4019872c1134c6fcc1d6993e5746f55c1e79208 Mon Sep 17 00:00:00 2001 From: Nikhil Raj Date: Tue, 8 Mar 2022 20:01:38 +0000 Subject: IVGCVSW-6819 Fix the directory structure and broken link to latest docu Signed-off-by: Nikhil Raj Change-Id: I05b559d15faf92c76ff536719693b361316be4f3 --- 22.02/_quantize_helper_test_8cpp_source.xhtml | 118 ++++++++++++++++++++++++++ 1 file changed, 118 insertions(+) create mode 100644 22.02/_quantize_helper_test_8cpp_source.xhtml (limited to '22.02/_quantize_helper_test_8cpp_source.xhtml') diff --git a/22.02/_quantize_helper_test_8cpp_source.xhtml b/22.02/_quantize_helper_test_8cpp_source.xhtml new file mode 100644 index 0000000000..7d993b1cac --- /dev/null +++ b/22.02/_quantize_helper_test_8cpp_source.xhtml @@ -0,0 +1,118 @@ + + + + + + + + + + + + + +ArmNN: src/armnnUtils/test/QuantizeHelperTest.cpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  22.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
QuantizeHelperTest.cpp
+
+
+Go to the documentation of this file.
1 //
2 // Copyright © 2019 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
8 
9 #include <doctest/doctest.h>
10 
11 #include <vector>
12 
13 TEST_SUITE("QuantizeHelper")
14 {
15 namespace
16 {
17 
18 template<typename T>
19 bool IsFloatIterFunc(T iter)
20 {
21  armnn::IgnoreUnused(iter);
23 }
24 
25 } // anonymous namespace
26 
27 TEST_CASE("IsFloatIterFuncTest")
28 {
29  std::vector<float> fArray;
30  CHECK(IsFloatIterFunc(fArray.begin()) == true);
31  CHECK(IsFloatIterFunc(fArray.cbegin()) == true);
32 
33  std::vector<double> dArray;
34  CHECK(IsFloatIterFunc(dArray.begin()) == true);
35 
36  std::vector<int> iArray;
37  CHECK(IsFloatIterFunc(iArray.begin()) == false);
38 
39  float floats[5];
40  CHECK(IsFloatIterFunc(&floats[0]) == true);
41 
42  int ints[5];
43  CHECK(IsFloatIterFunc(&ints[0]) == false);
44 }
45 
46 }
+ +
void IgnoreUnused(Ts &&...)
+
TEST_SUITE("QuantizeHelper")
+ +
+
+ + + + -- cgit v1.2.1