From 9aed8fb43441228343b925b42464a55042c47ca0 Mon Sep 17 00:00:00 2001 From: Nikhil Raj Date: Wed, 17 Nov 2021 13:16:45 +0000 Subject: IVGCVSW-6040 Update 21.11 Doxygen Documents Signed-off-by: Nikhil Raj Change-Id: Ia36ec98c4bebc27a69103911ea3409cd7db587a5 --- ..._space_to_depth_end_to_end_test_impl_8cpp.xhtml | 255 +++++++++++++++++++++ 1 file changed, 255 insertions(+) create mode 100644 21.11/_space_to_depth_end_to_end_test_impl_8cpp.xhtml (limited to '21.11/_space_to_depth_end_to_end_test_impl_8cpp.xhtml') diff --git a/21.11/_space_to_depth_end_to_end_test_impl_8cpp.xhtml b/21.11/_space_to_depth_end_to_end_test_impl_8cpp.xhtml new file mode 100644 index 0000000000..a21dbea66c --- /dev/null +++ b/21.11/_space_to_depth_end_to_end_test_impl_8cpp.xhtml @@ -0,0 +1,255 @@ + + + + + + + + + + + + + +ArmNN: src/backends/backendsCommon/test/SpaceToDepthEndToEndTestImpl.cpp File Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  21.11 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
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 <doctest/doctest.h>
+
+

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 TEST_SUITE().

+
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, 0.0f, 0, true);
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.
+ + + +
+
+
+ +

◆ 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 TEST_SUITE().

+
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, 0.0f, 0, true);
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.
+ + + +
+
+
+ +

◆ 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 TEST_SUITE().

+
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, 0.0f, 0, true);
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.
+ + + +
+
+
+ +

◆ 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 TEST_SUITE().

+
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, 0.0f, 0, true);
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.
+ + + +
+
+
+
+
+ + + + -- cgit v1.2.1