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/_arg_min_max_tests_8cpp.xhtml | 180 ++++++++++++++++++++++++++++++++++++ 1 file changed, 180 insertions(+) create mode 100644 20.02/_arg_min_max_tests_8cpp.xhtml (limited to '20.02/_arg_min_max_tests_8cpp.xhtml') diff --git a/20.02/_arg_min_max_tests_8cpp.xhtml b/20.02/_arg_min_max_tests_8cpp.xhtml new file mode 100644 index 0000000000..04fe53dc39 --- /dev/null +++ b/20.02/_arg_min_max_tests_8cpp.xhtml @@ -0,0 +1,180 @@ + + + + + + + + + + + + + +ArmNN: src/backends/reference/test/ArgMinMaxTests.cpp File Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
ArgMinMaxTests.cpp File Reference
+
+
+
#include <reference/workloads/ArgMinMax.hpp>
+#include <boost/test/unit_test.hpp>
+
+

Go to the source code of this file.

+ + + + + + +

+Functions

 BOOST_AUTO_TEST_CASE (ArgMinTest)
 
 BOOST_AUTO_TEST_CASE (ArgMaxTest)
 
+

Function Documentation

+ +

◆ BOOST_AUTO_TEST_CASE() [1/2]

+ +
+
+ + + + + + + + +
BOOST_AUTO_TEST_CASE (ArgMinTest )
+
+ +

Definition at line 12 of file ArgMinMaxTests.cpp.

+ +

References armnn::ArgMinMax(), armnn::Float32, and armnn::Min.

+
13 {
14  const armnn::TensorInfo inputInfo({ 1, 2, 3 } , armnn::DataType::Float32);
15  const armnn::TensorInfo outputInfo({ 1, 3 }, armnn::DataType::Float32);
16 
17  std::vector<float> inputValues({ 1.0f, 5.0f, 3.0f, 4.0f, 2.0f, 6.0f});
18  std::vector<int32_t> outputValues(outputInfo.GetNumElements());
19  std::vector<int32_t> expectedValues({ 0, 1, 0 });
20 
21  ArgMinMax(*armnn::MakeDecoder<float>(inputInfo, inputValues.data()),
22  outputValues.data(),
23  inputInfo,
24  outputInfo,
26  -2);
27 
28  BOOST_CHECK_EQUAL_COLLECTIONS(outputValues.begin(),
29  outputValues.end(),
30  expectedValues.begin(),
31  expectedValues.end());
32 
33 }
void ArgMinMax(Decoder< float > &in, int32_t *out, const TensorInfo &inputTensorInfo, const TensorInfo &outputTensorInfo, ArgMinMaxFunction function, int axis)
Definition: ArgMinMax.cpp:15
+ + + +
+
+
+ +

◆ BOOST_AUTO_TEST_CASE() [2/2]

+ +
+
+ + + + + + + + +
BOOST_AUTO_TEST_CASE (ArgMaxTest )
+
+ +

Definition at line 35 of file ArgMinMaxTests.cpp.

+ +

References armnn::ArgMinMax(), BOOST_AUTO_TEST_SUITE_END(), armnn::Float32, and armnn::Max.

+
36 {
37  const armnn::TensorInfo inputInfo({ 1, 2, 3 } , armnn::DataType::Float32);
38  const armnn::TensorInfo outputInfo({ 1, 3 }, armnn::DataType::Float32);
39 
40  std::vector<float> inputValues({ 1.0f, 5.0f, 3.0f, 4.0f, 2.0f, 6.0f });
41  std::vector<int32_t> outputValues(outputInfo.GetNumElements());
42  std::vector<int32_t> expectedValues({ 1, 0, 1 });
43 
44  ArgMinMax(*armnn::MakeDecoder<float>(inputInfo, inputValues.data()),
45  outputValues.data(),
46  inputInfo,
47  outputInfo,
49  -2);
50 
51  BOOST_CHECK_EQUAL_COLLECTIONS(outputValues.begin(),
52  outputValues.end(),
53  expectedValues.begin(),
54  expectedValues.end());
55 
56 }
void ArgMinMax(Decoder< float > &in, int32_t *out, const TensorInfo &inputTensorInfo, const TensorInfo &outputTensorInfo, ArgMinMaxFunction function, int axis)
Definition: ArgMinMax.cpp:15
+ + + +
+
+
+
+
+ + + + -- cgit v1.2.1