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/_quantize_helper_test_8cpp_source.xhtml | 120 ++++++++++++++++++++++++++ 1 file changed, 120 insertions(+) create mode 100644 20.02/_quantize_helper_test_8cpp_source.xhtml (limited to '20.02/_quantize_helper_test_8cpp_source.xhtml') diff --git a/20.02/_quantize_helper_test_8cpp_source.xhtml b/20.02/_quantize_helper_test_8cpp_source.xhtml new file mode 100644 index 0000000000..7108ce16b5 --- /dev/null +++ b/20.02/_quantize_helper_test_8cpp_source.xhtml @@ -0,0 +1,120 @@ + + + + + + + + + + + + + +ArmNN: src/armnnUtils/test/QuantizeHelperTest.cpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.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 
6 #include <QuantizeHelper.hpp>
8 
9 #include <boost/test/unit_test.hpp>
10 
11 #include <vector>
12 
13 BOOST_AUTO_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 BOOST_AUTO_TEST_CASE(IsFloatIterFuncTest)
28 {
29  std::vector<float> fArray;
30  BOOST_TEST(IsFloatIterFunc(fArray.begin()) == true);
31  BOOST_TEST(IsFloatIterFunc(fArray.cbegin()) == true);
32 
33  std::vector<double> dArray;
34  BOOST_TEST(IsFloatIterFunc(dArray.begin()) == true);
35 
36  std::vector<int> iArray;
37  BOOST_TEST(IsFloatIterFunc(iArray.begin()) == false);
38 
39  float floats[5];
40  BOOST_TEST(IsFloatIterFunc(&floats[0]) == true);
41 
42  int ints[5];
43  BOOST_TEST(IsFloatIterFunc(&ints[0]) == false);
44 }
45 
BOOST_AUTO_TEST_SUITE(TensorflowLiteParser)
+ +
BOOST_AUTO_TEST_CASE(IsFloatIterFuncTest)
+ +
void IgnoreUnused(Ts &&...)
+ +
BOOST_AUTO_TEST_SUITE_END()
+
+
+ + + + -- cgit v1.2.1