From de36e4a9c299028e792c3a5bd99ad0816d806077 Mon Sep 17 00:00:00 2001 From: Ryan OShea Date: Fri, 13 Mar 2020 16:26:19 +0000 Subject: IVGCVSW-3726 Upload ArmNN Doxygen files * Upload current ArmNN Doxygen files Signed-off-by: Ryan OShea Change-Id: I8989ed16ee40a99a4495b100bd009cf3e24a7285 --- Documentation/_layer_test_result_8hpp_source.html | 110 ++++++++++++++++++++++ 1 file changed, 110 insertions(+) create mode 100644 Documentation/_layer_test_result_8hpp_source.html (limited to 'Documentation/_layer_test_result_8hpp_source.html') diff --git a/Documentation/_layer_test_result_8hpp_source.html b/Documentation/_layer_test_result_8hpp_source.html new file mode 100644 index 0000000000..f577d3dd68 --- /dev/null +++ b/Documentation/_layer_test_result_8hpp_source.html @@ -0,0 +1,110 @@ + + + + + + + +ArmNN: src/backends/backendsCommon/test/layerTests/LayerTestResult.hpp Source File + + + + + + + + + + + + + + +
+
+ + + + + + +
+
ArmNN +  NotReleased +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
LayerTestResult.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/Tensor.hpp>
9 
10 #include <boost/multi_array.hpp>
11 
12 #include <cstddef>
13 
14 template <std::size_t n>
15 boost::array<unsigned int, n> GetTensorShapeAsArray(const armnn::TensorInfo& tensorInfo)
16 {
17  BOOST_ASSERT_MSG(n == tensorInfo.GetNumDimensions(),
18  "Attempting to construct a shape array of mismatching size");
19 
20  boost::array<unsigned int, n> shape;
21  for (unsigned int i = 0; i < n; i++)
22  {
23  shape[i] = tensorInfo.GetShape()[i];
24  }
25  return shape;
26 }
27 
28 template <typename T, std::size_t n>
30 {
32  {
33  auto shape( GetTensorShapeAsArray<n>(outputInfo) );
34  output.resize(shape);
35  outputExpected.resize(shape);
36  supported = true;
37  compareBoolean = false;
38  }
39 
40  boost::multi_array<T, n> output;
41  boost::multi_array<T, n> outputExpected;
42  bool supported;
44 };
unsigned int GetNumDimensions() const
Definition: Tensor.hpp:92
+ + + +
boost::multi_array< T, n > output
+ +
boost::multi_array< T, n > outputExpected
+
LayerTestResult(const armnn::TensorInfo &outputInfo)
+ +
boost::array< unsigned int, n > GetTensorShapeAsArray(const armnn::TensorInfo &tensorInfo)
+
const TensorShape & GetShape() const
Definition: Tensor.hpp:88
+
+
+ + + + -- cgit v1.2.1