From fd627ffaec8fd8801d980b4c91ee7c0607ab6aaf Mon Sep 17 00:00:00 2001 From: Jan Eilers Date: Thu, 25 Feb 2021 17:44:00 +0000 Subject: IVGCVSW-5687 Update Doxygen Docu * Update Doxygen Documentation for 21.02 release Signed-off-by: Jan Eilers Change-Id: I9ed2f9caab038836ea99d7b378d7899fe431a4e5 --- ..._space_to_depth_end_to_end_test_impl_8cpp.xhtml | 259 +++++++++++++++++++++ 1 file changed, 259 insertions(+) create mode 100644 21.02/_space_to_depth_end_to_end_test_impl_8cpp.xhtml (limited to '21.02/_space_to_depth_end_to_end_test_impl_8cpp.xhtml') diff --git a/21.02/_space_to_depth_end_to_end_test_impl_8cpp.xhtml b/21.02/_space_to_depth_end_to_end_test_impl_8cpp.xhtml new file mode 100644 index 0000000000..34c34d3f2f --- /dev/null +++ b/21.02/_space_to_depth_end_to_end_test_impl_8cpp.xhtml @@ -0,0 +1,259 @@ + + + + + + + + + + + + + +ArmNN: src/backends/backendsCommon/test/SpaceToDepthEndToEndTestImpl.cpp File Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  21.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
SpaceToDepthEndToEndTestImpl.cpp File Reference
+
+
+
#include "SpaceToDepthEndToEndTestImpl.hpp"
+#include "ResolveType.hpp"
+#include "EndToEndTestImpl.hpp"
+#include <armnn/INetwork.hpp>
+#include <armnnUtils/Permute.hpp>
+#include <armnnUtils/DataLayoutIndexed.hpp>
+#include <backendsCommon/test/DataLayoutUtils.hpp>
+#include <test/TestUtils.hpp>
+#include <boost/test/unit_test.hpp>
+
+

Go to the source code of this file.

+ + + + + + + + + + +

+Functions

void SpaceToDepthNhwcEndToEndTest1 (const std::vector< armnn::BackendId > &defaultBackends)
 
void SpaceToDepthNchwEndToEndTest1 (const std::vector< armnn::BackendId > &defaultBackends)
 
void SpaceToDepthNhwcEndToEndTest2 (const std::vector< armnn::BackendId > &defaultBackends)
 
void SpaceToDepthNchwEndToEndTest2 (const std::vector< armnn::BackendId > &defaultBackends)
 
+

Function Documentation

+ +

◆ SpaceToDepthNchwEndToEndTest1()

+ +
+
+ + + + + + + + +
void SpaceToDepthNchwEndToEndTest1 (const std::vector< armnn::BackendId > & defaultBackends)
+
+ +

Definition at line 129 of file SpaceToDepthEndToEndTestImpl.cpp.

+ +

References armnn::Float32, and armnn::NCHW.

+ +

Referenced by BOOST_AUTO_TEST_CASE().

+
130 {
131  using namespace armnn;
132 
133  const unsigned int blockSize = 2;
134 
135  TensorShape inputShape{1, 2, 2, 1};
136  TensorInfo inputTensorInfo(inputShape, DataType::Float32);
137 
138  TensorShape outputShape{1, 1, 1, 4};
139  TensorInfo outputTensorInfo(outputShape, DataType::Float32);
140 
141  std::vector<float> inputData = std::vector<float>(
142  {
143  1.0f, 2.0f, 3.0f, 4.0f
144  });
145 
146  std::vector<float> expectedOutputData = std::vector<float>(
147  {
148  1.0f, 2.0f, 3.0f, 4.0f
149  });
150 
151  SpaceToDepthEndToEnd(defaultBackends,
153  inputTensorInfo,
154  outputTensorInfo,
155  inputData,
156  expectedOutputData,
157  blockSize);
158 }
+
Copyright (c) 2021 ARM Limited and Contributors.
+ +
std::vector< armnn::BackendId > defaultBackends
+ + +
+
+
+ +

◆ SpaceToDepthNchwEndToEndTest2()

+ +
+
+ + + + + + + + +
void SpaceToDepthNchwEndToEndTest2 (const std::vector< armnn::BackendId > & defaultBackends)
+
+ +

Definition at line 191 of file SpaceToDepthEndToEndTestImpl.cpp.

+ +

References armnn::Float32, and armnn::NCHW.

+ +

Referenced by BOOST_AUTO_TEST_CASE().

+
192 {
193  using namespace armnn;
194 
195  const unsigned int blockSize = 2;
196 
197  TensorShape inputShape{1, 2, 2, 2};
198  TensorShape outputShape{1, 1, 1, 8};
199 
200  TensorInfo inputTensorInfo(inputShape, DataType::Float32);
201  TensorInfo outputTensorInfo(outputShape, DataType::Float32);
202 
203 
204  std::vector<float> inputData = std::vector<float>(
205  {
206  1.4f, 2.3f, 3.2f, 4.1f, 5.4f, 6.3f, 7.2f, 8.1f
207  });
208 
209  std::vector<float> expectedOutputData = std::vector<float>(
210  {
211  1.4f, 2.3f, 3.2f, 4.1f, 5.4f, 6.3f, 7.2f, 8.1f
212  });
213 
214  SpaceToDepthEndToEnd(defaultBackends,
216  inputTensorInfo,
217  outputTensorInfo,
218  inputData,
219  expectedOutputData,
220  blockSize);
221 }
+
Copyright (c) 2021 ARM Limited and Contributors.
+ +
std::vector< armnn::BackendId > defaultBackends
+ + +
+
+
+ +

◆ SpaceToDepthNhwcEndToEndTest1()

+ +
+
+ + + + + + + + +
void SpaceToDepthNhwcEndToEndTest1 (const std::vector< armnn::BackendId > & defaultBackends)
+
+ +

Definition at line 98 of file SpaceToDepthEndToEndTestImpl.cpp.

+ +

References armnn::Float32, and armnn::NHWC.

+ +

Referenced by BOOST_AUTO_TEST_CASE().

+
99 {
100  using namespace armnn;
101 
102  const unsigned int blockSize = 2;
103 
104  TensorShape inputShape{1, 2, 2, 1};
105  TensorInfo inputTensorInfo(inputShape, DataType::Float32);
106 
107  TensorShape outputShape{1, 1, 1, 4};
108  TensorInfo outputTensorInfo(outputShape, DataType::Float32);
109 
110  std::vector<float> inputData = std::vector<float>(
111  {
112  1.0f, 2.0f, 3.0f, 4.0f
113  });
114 
115  std::vector<float> expectedOutputData = std::vector<float>(
116  {
117  1.0f, 2.0f, 3.0f, 4.0f
118  });
119 
120  SpaceToDepthEndToEnd(defaultBackends,
122  inputTensorInfo,
123  outputTensorInfo,
124  inputData,
125  expectedOutputData,
126  blockSize);
127 }
+
Copyright (c) 2021 ARM Limited and Contributors.
+ +
std::vector< armnn::BackendId > defaultBackends
+ + +
+
+
+ +

◆ SpaceToDepthNhwcEndToEndTest2()

+ +
+
+ + + + + + + + +
void SpaceToDepthNhwcEndToEndTest2 (const std::vector< armnn::BackendId > & defaultBackends)
+
+ +

Definition at line 160 of file SpaceToDepthEndToEndTestImpl.cpp.

+ +

References armnn::Float32, and armnn::NHWC.

+ +

Referenced by BOOST_AUTO_TEST_CASE().

+
161 {
162  using namespace armnn;
163 
164  const unsigned int blockSize = 2;
165 
166  TensorShape inputShape{1, 2, 2, 2};
167  TensorShape outputShape{1, 1, 1, 8};
168 
169  TensorInfo outputTensorInfo(outputShape, DataType::Float32);
170  TensorInfo inputTensorInfo(inputShape, DataType::Float32);
171 
172  std::vector<float> inputData = std::vector<float>(
173  {
174  1.4f, 2.3f, 3.2f, 4.1f, 5.4f, 6.3f, 7.2f, 8.1f
175  });
176 
177  std::vector<float> expectedOutputData = std::vector<float>(
178  {
179  1.4f, 2.3f, 3.2f, 4.1f, 5.4f, 6.3f, 7.2f, 8.1f
180  });
181 
182  SpaceToDepthEndToEnd(defaultBackends,
184  inputTensorInfo,
185  outputTensorInfo,
186  inputData,
187  expectedOutputData,
188  blockSize);
189 }
+
Copyright (c) 2021 ARM Limited and Contributors.
+ +
std::vector< armnn::BackendId > defaultBackends
+ + +
+
+
+
+
+ + + + -- cgit v1.2.1