blob: aeebd4fd9e153e002d29d4fb7a80e83d1f263a24 [file] [log] [blame]
telsoa014fcda012018-03-09 14:13:49 +00001//
2// Copyright © 2017 Arm Ltd. All rights reserved.
David Beckecb56cd2018-09-05 12:52:57 +01003// SPDX-License-Identifier: MIT
telsoa014fcda012018-03-09 14:13:49 +00004//
telsoa014fcda012018-03-09 14:13:49 +00005
Aron Virginas-Tar56055192018-11-12 18:10:43 +00006#include "NeonWorkloadFactoryHelper.hpp"
7
Aron Virginas-Tarc9cc8042018-11-01 16:15:57 +00008#include <test/TensorHelpers.hpp>
9#include <test/UnitTests.hpp>
telsoa014fcda012018-03-09 14:13:49 +000010
Aron Virginas-Tarc9cc8042018-11-01 16:15:57 +000011#include <backendsCommon/CpuTensorHandle.hpp>
12#include <neon/NeonLayerSupport.hpp>
13#include <neon/NeonWorkloadFactory.hpp>
14#include <reference/RefWorkloadFactory.hpp>
15#include <backendsCommon/test/ActivationFixture.hpp>
16#include <backendsCommon/test/LayerTests.hpp>
Narumol Prangnawarat86bb4e12019-07-08 11:36:05 +010017#include <backendsCommon/test/PermuteTestImpl.hpp>
Aron Virginas-Tarc9cc8042018-11-01 16:15:57 +000018#include <backendsCommon/test/TensorCopyUtils.hpp>
19#include <backendsCommon/test/WorkloadTestUtils.hpp>
telsoa014fcda012018-03-09 14:13:49 +000020
arovir0143095f32018-10-09 18:04:24 +010021#include <boost/test/unit_test.hpp>
telsoa014fcda012018-03-09 14:13:49 +000022
23BOOST_AUTO_TEST_SUITE(Compute_ArmComputeNeon)
24using FactoryType = armnn::NeonWorkloadFactory;
25
26// ============================================================================
27// UNIT tests
28
29// Convolution
30ARMNN_AUTO_TEST_CASE(SimpleConvolution1d, Convolution1dTest, true)
31
jimfly010a088a62018-10-25 17:05:05 +010032ARMNN_AUTO_TEST_CASE(SimpleConvolution2d, SimpleConvolution2d3x5Test, true, armnn::DataLayout::NCHW)
33ARMNN_AUTO_TEST_CASE(SimpleConvolution2dNhwc, SimpleConvolution2d3x5Test, true, armnn::DataLayout::NHWC)
narpra015f703182018-10-26 16:24:58 +010034ARMNN_AUTO_TEST_CASE(SimpleConvolution2d3x3Uint8, SimpleConvolution2d3x3Uint8Test, true, armnn::DataLayout::NCHW)
35ARMNN_AUTO_TEST_CASE(SimpleConvolution2d3x3Uint8Nhwc, SimpleConvolution2d3x3Uint8Test, true, armnn::DataLayout::NHWC)
jimfly010a088a62018-10-25 17:05:05 +010036ARMNN_AUTO_TEST_CASE(UnbiasedConvolution2d, SimpleConvolution2d3x5Test, false, armnn::DataLayout::NCHW)
37ARMNN_AUTO_TEST_CASE(UnbiasedConvolution2dNhwc, SimpleConvolution2d3x5Test, false, armnn::DataLayout::NHWC)
Mike Kelly7332ed82018-12-20 17:03:06 +000038ARMNN_AUTO_TEST_CASE(UnbiasedConvolution2dStride2x2Nhwc,
39 SimpleConvolution2d3x3Stride2x2Test, false, armnn::DataLayout::NHWC)
jimfly010a088a62018-10-25 17:05:05 +010040
narpra015f703182018-10-26 16:24:58 +010041ARMNN_AUTO_TEST_CASE(UnbiasedConvolution2dSquare, SimpleConvolution2d3x3Test, false, armnn::DataLayout::NCHW)
42ARMNN_AUTO_TEST_CASE(SimpleConvolution2dAsymmetricPadding, Convolution2dAsymmetricPaddingTest, armnn::DataLayout::NCHW)
43
44ARMNN_AUTO_TEST_CASE(UnbiasedConvolution2dSquareNhwc, SimpleConvolution2d3x3Test, false, armnn::DataLayout::NHWC)
45ARMNN_AUTO_TEST_CASE(SimpleConvolution2dAsymmetricPaddingNhwc,
46 Convolution2dAsymmetricPaddingTest,
47 armnn::DataLayout::NHWC)
telsoa014fcda012018-03-09 14:13:49 +000048
Francis Murtaghd59116e2018-10-04 16:03:07 +010049ARMNN_AUTO_TEST_CASE(SimpleConvolution2dSquareNhwc, SimpleConvolution2d3x3NhwcTest, false)
telsoa014fcda012018-03-09 14:13:49 +000050
Jan Eilers59c66702019-07-11 10:22:36 +010051ARMNN_AUTO_TEST_CASE(Convolution2d3x3Dilation3x3,
52 Convolution2d3x3Dilation3x3Test<armnn::DataType::Float32, armnn::DataType::Float32>,
53 false,
54 armnn::DataLayout::NCHW)
55ARMNN_AUTO_TEST_CASE(Convolution2d3x3Dilation3x3Nhwc,
56 Convolution2d3x3Dilation3x3Test<armnn::DataType::Float32, armnn::DataType::Float32>,
57 false,
58 armnn::DataLayout::NHWC)
59ARMNN_AUTO_TEST_CASE(Convolution2d3x3Dilation3x3Uint8,
60 Convolution2d3x3Dilation3x3Test<armnn::DataType::QuantisedAsymm8, armnn::DataType::Signed32>,
61 false,
62 armnn::DataLayout::NCHW)
63ARMNN_AUTO_TEST_CASE(Convolution2d3x3Dilation3x3NhwcUint8,
64 Convolution2d3x3Dilation3x3Test<armnn::DataType::QuantisedAsymm8, armnn::DataType::Signed32>,
65 false,
66 armnn::DataLayout::NHWC)
67ARMNN_AUTO_TEST_CASE(Convolution2d2x3x3Dilation3x3,
68 Convolution2d2x3x3Dilation3x3Test<armnn::DataType::Float32, armnn::DataType::Float32>,
69 false,
70 armnn::DataLayout::NCHW)
71ARMNN_AUTO_TEST_CASE(Convolution2d2x3x3Dilation3x3Nhwc,
72 Convolution2d2x3x3Dilation3x3Test<armnn::DataType::Float32, armnn::DataType::Float32>,
73 false,
74 armnn::DataLayout::NHWC)
75ARMNN_AUTO_TEST_CASE(Convolution2d2x3x3Dilation3x3Uint8,
76 Convolution2d2x3x3Dilation3x3Test<armnn::DataType::QuantisedAsymm8, armnn::DataType::Signed32>,
77 false,
78 armnn::DataLayout::NCHW)
79ARMNN_AUTO_TEST_CASE(Convolution2d2x3x3Dilation3x3NhwcUint8,
80 Convolution2d2x3x3Dilation3x3Test<armnn::DataType::QuantisedAsymm8, armnn::DataType::Signed32>,
81 false,
82 armnn::DataLayout::NHWC)
83ARMNN_AUTO_TEST_CASE(Convolution2d2x2Dilation2x2Padding2x2Stride3x3,
84 Convolution2d2x2Dilation2x2Padding2x2Stride3x3Test
85 <armnn::DataType::Float32, armnn::DataType::Float32>,
86 false,
87 armnn::DataLayout::NCHW)
88ARMNN_AUTO_TEST_CASE(Convolution2d2x2Dilation2x2Padding2x2Stride3x3Nhwc,
89 Convolution2d2x2Dilation2x2Padding2x2Stride3x3Test
90 <armnn::DataType::Float32, armnn::DataType::Float32>,
91 false,
92 armnn::DataLayout::NHWC)
93ARMNN_AUTO_TEST_CASE(Convolution2d2x2Dilation2x2Padding2x2Stride3x3Uint8,
94 Convolution2d2x2Dilation2x2Padding2x2Stride3x3Test
95 <armnn::DataType::QuantisedAsymm8, armnn::DataType::Signed32>,
96 false,
97 armnn::DataLayout::NCHW)
98ARMNN_AUTO_TEST_CASE(Convolution2d2x2Dilation2x2Padding2x2Stride3x3NhwcUint8,
99 Convolution2d2x2Dilation2x2Padding2x2Stride3x3Test
100 <armnn::DataType::QuantisedAsymm8, armnn::DataType::Signed32>,
101 false,
102 armnn::DataLayout::NHWC)
103
telsoa014fcda012018-03-09 14:13:49 +0000104// Depthwise Convolution
jimfly01b9c89632018-10-26 16:50:13 +0100105ARMNN_AUTO_TEST_CASE(DepthwiseConvolution2dDepthMul1,
106 DepthwiseConvolution2dDepthMul1Test, true, armnn::DataLayout::NCHW)
107ARMNN_AUTO_TEST_CASE(UnbiasedDepthwiseConvolution2dDepthMul1,
108 DepthwiseConvolution2dDepthMul1Test, false, armnn::DataLayout::NCHW)
109ARMNN_AUTO_TEST_CASE(DepthwiseConvolution2dDepthMul1Uint8,
110 DepthwiseConvolution2dDepthMul1Uint8Test, true, armnn::DataLayout::NCHW)
111ARMNN_AUTO_TEST_CASE(UnbiasedDepthwiseConvolution2dDepthMul1Uint8,
112 DepthwiseConvolution2dDepthMul1Uint8Test, false, armnn::DataLayout::NCHW)
113
114// NHWC Depthwise Convolution
115ARMNN_AUTO_TEST_CASE(DepthwiseConvolution2dDepthMul1NHhwc,
116 DepthwiseConvolution2dDepthMul1Test, true, armnn::DataLayout::NHWC)
117ARMNN_AUTO_TEST_CASE(UnbiasedDepthwiseConvolution2dDepthMul1Nhwc,
118 DepthwiseConvolution2dDepthMul1Test, false, armnn::DataLayout::NHWC)
119ARMNN_AUTO_TEST_CASE(DepthwiseConvolution2dDepthMul1Uint8Nhwc,
120 DepthwiseConvolution2dDepthMul1Uint8Test, true, armnn::DataLayout::NHWC)
121ARMNN_AUTO_TEST_CASE(UnbiasedDepthwiseConvolution2dDepthMul1Uint8Nhwc,
122 DepthwiseConvolution2dDepthMul1Uint8Test, false, armnn::DataLayout::NHWC)
123
Nikhil Rajcec6b652018-10-12 13:51:57 +0100124ARMNN_AUTO_TEST_CASE(DepthwiseConvolution2dDepthNhwc, DepthwiseConvolution2dDepthNhwcTest, false)
Bruno Goncalves22972f02019-04-26 21:03:24 -0300125ARMNN_AUTO_TEST_CASE(SimpleDepthwiseConvolution2d3x3Dilation3x3Nhwc,
126 SimpleDepthwiseConvolution2d3x3Dilation3x3NhwcTest)
jimfly01b9c89632018-10-26 16:50:13 +0100127
telsoa014fcda012018-03-09 14:13:49 +0000128
jimfly01382a91d2018-10-26 15:55:50 +0100129ARMNN_AUTO_TEST_CASE(DepthwiseConvolution2dAsymmetric,
130 DepthwiseConvolution2dAsymmetricTest, true, armnn::DataLayout::NCHW)
131ARMNN_AUTO_TEST_CASE(UnbiasedDepthwiseConvolution2dAsymmetric,
132 DepthwiseConvolution2dAsymmetricTest, false, armnn::DataLayout::NCHW)
133ARMNN_AUTO_TEST_CASE(DepthwiseConvolution2dAsymmetricNhwc,
134 DepthwiseConvolution2dAsymmetricTest, true, armnn::DataLayout::NHWC)
135ARMNN_AUTO_TEST_CASE(UnbiasedDepthwiseConvolution2dAsymmetricNhwc,
136 DepthwiseConvolution2dAsymmetricTest, false, armnn::DataLayout::NHWC)
surmeh013537c2c2018-05-18 16:31:43 +0100137
telsoa014fcda012018-03-09 14:13:49 +0000138namespace
139{
140
141armnn::DepthwiseConvolution2dDescriptor MakeDepthwiseConv2dDesc(uint32_t strideX, uint32_t strideY,
142 uint32_t depthMultiplier = 1, uint32_t padLeft = 0, uint32_t padRight = 0,
143 uint32_t padTop = 0, uint32_t padBottom = 0)
144{
telsoa01c577f2c2018-08-31 09:22:23 +0100145 boost::ignore_unused(depthMultiplier);
146
telsoa014fcda012018-03-09 14:13:49 +0000147 armnn::DepthwiseConvolution2dDescriptor desc;
telsoa01c577f2c2018-08-31 09:22:23 +0100148
telsoa014fcda012018-03-09 14:13:49 +0000149 desc.m_PadLeft = padLeft;
150 desc.m_PadRight = padRight;
telsoa01c577f2c2018-08-31 09:22:23 +0100151
telsoa014fcda012018-03-09 14:13:49 +0000152 desc.m_PadTop = padTop;
153 desc.m_PadBottom = padBottom;
154 desc.m_StrideX = strideX;
155 desc.m_StrideY = strideY;
telsoa01c577f2c2018-08-31 09:22:23 +0100156 desc.m_BiasEnabled = false;
157
telsoa014fcda012018-03-09 14:13:49 +0000158 return desc;
159}
160
telsoa01c577f2c2018-08-31 09:22:23 +0100161armnn::TensorInfo CreateOutputTensorInfo(const armnn::TensorInfo& inputInfo,
162 const armnn::TensorInfo& weightsInfo,
163 const armnn::DepthwiseConvolution2dDescriptor& descriptor,
164 armnn::DataType dataType)
165{
166 const armnn::TensorShape& inputShape = inputInfo.GetShape();
167 const armnn::TensorShape& filterShape = weightsInfo.GetShape();
168
169 unsigned int inWidth = inputShape[3];
170 unsigned int inHeight = inputShape[2];
171 unsigned int inBatchSize = inputShape[0];
172
173 unsigned int filterWidth = filterShape[3];
174 unsigned int readWidth = (inWidth + descriptor.m_PadLeft + descriptor.m_PadRight) - (filterWidth);
175 unsigned int outWidth = 1u + (readWidth / descriptor.m_StrideX);
176
177 unsigned int filterHeight = filterShape[2];
178 unsigned int readHeight = (inHeight + descriptor.m_PadTop + descriptor.m_PadBottom) - (filterHeight);
179 unsigned int outHeight = 1u + (readHeight / descriptor.m_StrideY);
180 unsigned int depthMultiplier = filterShape[0];
181
182 unsigned int outChannels = filterShape[1] * depthMultiplier;
183 unsigned int outBatchSize = inBatchSize;
184
185 armnn::TensorShape outputShape({outBatchSize, outChannels, outHeight, outWidth});
186 return armnn::TensorInfo(outputShape, dataType);
187}
telsoa014fcda012018-03-09 14:13:49 +0000188}
189
190BOOST_AUTO_TEST_CASE(DepthwiseConv2dUtils)
191{
telsoa01c577f2c2018-08-31 09:22:23 +0100192 const armnn::DataType dataType = armnn::DataType::Float32;
193
194 armnn::TensorInfo inputInfo({1, 1, 10, 10 }, dataType);
195 armnn::TensorInfo outputInfo;
196 armnn::TensorInfo weightsInfo3x3({ 1, 1, 3, 3 }, dataType);
197 armnn::TensorInfo biasesInfo;
198
199 armnn::DepthwiseConvolution2dDescriptor descriptor;
Aron Virginas-Tarfc824312018-10-15 15:00:13 +0100200 armnn::NeonLayerSupport layerSupport;
telsoa014fcda012018-03-09 14:13:49 +0000201
202 // Strides supported: 1,2,3
telsoa01c577f2c2018-08-31 09:22:23 +0100203 descriptor = MakeDepthwiseConv2dDesc(1, 1);
204 outputInfo = CreateOutputTensorInfo(inputInfo, weightsInfo3x3, descriptor, dataType);
Aron Virginas-Tarfc824312018-10-15 15:00:13 +0100205 BOOST_TEST(layerSupport.IsDepthwiseConvolutionSupported(inputInfo, outputInfo, descriptor,
206 weightsInfo3x3, biasesInfo));
telsoa014fcda012018-03-09 14:13:49 +0000207
telsoa01c577f2c2018-08-31 09:22:23 +0100208 descriptor = MakeDepthwiseConv2dDesc(1, 2);
209 outputInfo = CreateOutputTensorInfo(inputInfo, weightsInfo3x3, descriptor, dataType);
Aron Virginas-Tarfc824312018-10-15 15:00:13 +0100210 BOOST_TEST(layerSupport.IsDepthwiseConvolutionSupported(inputInfo, outputInfo, descriptor,
211 weightsInfo3x3, biasesInfo));
telsoa01c577f2c2018-08-31 09:22:23 +0100212
213 descriptor = MakeDepthwiseConv2dDesc(1, 3);
214 outputInfo = CreateOutputTensorInfo(inputInfo, weightsInfo3x3, descriptor, dataType);
Aron Virginas-Tarfc824312018-10-15 15:00:13 +0100215 BOOST_TEST(layerSupport.IsDepthwiseConvolutionSupported(inputInfo, outputInfo, descriptor,
216 weightsInfo3x3, biasesInfo));
telsoa01c577f2c2018-08-31 09:22:23 +0100217
218 descriptor = MakeDepthwiseConv2dDesc(2, 1);
219 outputInfo = CreateOutputTensorInfo(inputInfo, weightsInfo3x3, descriptor, dataType);
Aron Virginas-Tarfc824312018-10-15 15:00:13 +0100220 BOOST_TEST(layerSupport.IsDepthwiseConvolutionSupported(inputInfo, outputInfo, descriptor,
221 weightsInfo3x3, biasesInfo));
telsoa01c577f2c2018-08-31 09:22:23 +0100222
223 descriptor = MakeDepthwiseConv2dDesc(2, 2);
224 outputInfo = CreateOutputTensorInfo(inputInfo, weightsInfo3x3, descriptor, dataType);
Aron Virginas-Tarfc824312018-10-15 15:00:13 +0100225 BOOST_TEST(layerSupport.IsDepthwiseConvolutionSupported(inputInfo, outputInfo, descriptor,
226 weightsInfo3x3, biasesInfo));
telsoa01c577f2c2018-08-31 09:22:23 +0100227
228 descriptor = MakeDepthwiseConv2dDesc(2, 3);
229 outputInfo = CreateOutputTensorInfo(inputInfo, weightsInfo3x3, descriptor, dataType);
Aron Virginas-Tarfc824312018-10-15 15:00:13 +0100230 BOOST_TEST(layerSupport.IsDepthwiseConvolutionSupported(inputInfo, outputInfo, descriptor,
231 weightsInfo3x3, biasesInfo));
telsoa01c577f2c2018-08-31 09:22:23 +0100232
233 descriptor = MakeDepthwiseConv2dDesc(3, 1);
234 outputInfo = CreateOutputTensorInfo(inputInfo, weightsInfo3x3, descriptor, dataType);
Aron Virginas-Tarfc824312018-10-15 15:00:13 +0100235 BOOST_TEST(layerSupport.IsDepthwiseConvolutionSupported(inputInfo, outputInfo, descriptor,
236 weightsInfo3x3, biasesInfo));
telsoa01c577f2c2018-08-31 09:22:23 +0100237
238 descriptor = MakeDepthwiseConv2dDesc(3, 2);
239 outputInfo = CreateOutputTensorInfo(inputInfo, weightsInfo3x3, descriptor, dataType);
Aron Virginas-Tarfc824312018-10-15 15:00:13 +0100240 BOOST_TEST(layerSupport.IsDepthwiseConvolutionSupported(inputInfo, outputInfo, descriptor,
241 weightsInfo3x3, biasesInfo));
telsoa01c577f2c2018-08-31 09:22:23 +0100242
243 descriptor = MakeDepthwiseConv2dDesc(3, 3);
244 outputInfo = CreateOutputTensorInfo(inputInfo, weightsInfo3x3, descriptor, dataType);
Aron Virginas-Tarfc824312018-10-15 15:00:13 +0100245 BOOST_TEST(layerSupport.IsDepthwiseConvolutionSupported(inputInfo, outputInfo, descriptor,
246 weightsInfo3x3, biasesInfo));
telsoa01c577f2c2018-08-31 09:22:23 +0100247
248 // Supported stride 4
249 descriptor = MakeDepthwiseConv2dDesc(4, 1);
250 outputInfo = CreateOutputTensorInfo(inputInfo, weightsInfo3x3, descriptor, dataType);
Aron Virginas-Tarfc824312018-10-15 15:00:13 +0100251 BOOST_TEST(layerSupport.IsDepthwiseConvolutionSupported(inputInfo, outputInfo, descriptor,
252 weightsInfo3x3, biasesInfo));
telsoa014fcda012018-03-09 14:13:49 +0000253
254 // Supported weights shape 1x1
255 armnn::TensorInfo weightsInfo1x1({ 1, 1, 1, 1 }, armnn::DataType::Float32);
telsoa01c577f2c2018-08-31 09:22:23 +0100256 descriptor = MakeDepthwiseConv2dDesc(1, 1);
257 outputInfo = CreateOutputTensorInfo(inputInfo, weightsInfo1x1, descriptor, dataType);
Aron Virginas-Tarfc824312018-10-15 15:00:13 +0100258 BOOST_TEST(layerSupport.IsDepthwiseConvolutionSupported(inputInfo, outputInfo, descriptor,
259 weightsInfo1x1, biasesInfo));
telsoa014fcda012018-03-09 14:13:49 +0000260
261 // Supported shape 2x2
262 armnn::TensorInfo weightsInfo2x2({ 1, 1, 2, 2 }, armnn::DataType::Float32);
telsoa01c577f2c2018-08-31 09:22:23 +0100263 descriptor = MakeDepthwiseConv2dDesc(1, 1);
264 outputInfo = CreateOutputTensorInfo(inputInfo, weightsInfo2x2, descriptor, dataType);
Aron Virginas-Tarfc824312018-10-15 15:00:13 +0100265 BOOST_TEST(layerSupport.IsDepthwiseConvolutionSupported(inputInfo, outputInfo, descriptor,
266 weightsInfo2x2, biasesInfo));
surmeh013537c2c2018-05-18 16:31:43 +0100267
268 // Asymmetric padding
telsoa01c577f2c2018-08-31 09:22:23 +0100269 descriptor = MakeDepthwiseConv2dDesc(1, 1, 1, 1, 2, 1, 2);
270 outputInfo = CreateOutputTensorInfo(inputInfo, weightsInfo3x3, descriptor, dataType);
Aron Virginas-Tarfc824312018-10-15 15:00:13 +0100271 BOOST_TEST(layerSupport.IsDepthwiseConvolutionSupported(inputInfo, outputInfo, descriptor,
272 weightsInfo3x3, biasesInfo));
telsoa014fcda012018-03-09 14:13:49 +0000273}
274
Narumol Prangnawarat01961a72019-05-30 16:47:12 +0100275// Dequantize
276ARMNN_AUTO_TEST_CASE(DequantizeSimpleUint8, DequantizeSimpleUint8Test)
277ARMNN_AUTO_TEST_CASE(DequantizeOffsetUint8, DequantizeOffsetUint8Test)
278
telsoa014fcda012018-03-09 14:13:49 +0000279// Pooling
280ARMNN_AUTO_TEST_CASE(SimpleMaxPooling2dSize3x3Stride2x4, SimpleMaxPooling2dSize3x3Stride2x4Test, true)
281ARMNN_AUTO_TEST_CASE(SimpleMaxPooling2dSize3x3Stride2x4Uint8, SimpleMaxPooling2dSize3x3Stride2x4Uint8Test, true)
James Conroy45a9b772018-10-31 11:47:53 +0000282
283ARMNN_AUTO_TEST_CASE(SimpleMaxPooling2d, SimpleMaxPooling2dTest, armnn::DataLayout::NCHW)
284ARMNN_AUTO_TEST_CASE(SimpleMaxPooling2dNhwc, SimpleMaxPooling2dTest, armnn::DataLayout::NHWC)
285ARMNN_AUTO_TEST_CASE(SimpleMaxPooling2dUint8, SimpleMaxPooling2dUint8Test, armnn::DataLayout::NCHW)
286ARMNN_AUTO_TEST_CASE(SimpleMaxPooling2dUint8Nhwc, SimpleMaxPooling2dUint8Test, armnn::DataLayout::NHWC)
287
288ARMNN_AUTO_TEST_CASE(SimpleAveragePooling2d, SimpleAveragePooling2dTest, armnn::DataLayout::NCHW)
289ARMNN_AUTO_TEST_CASE(SimpleAveragePooling2dNhwc, SimpleAveragePooling2dTest, armnn::DataLayout::NCHW)
290ARMNN_AUTO_TEST_CASE(SimpleAveragePooling2dUint8, SimpleAveragePooling2dUint8Test, armnn::DataLayout::NCHW)
291ARMNN_AUTO_TEST_CASE(SimpleAveragePooling2dUint8Nhwc, SimpleAveragePooling2dUint8Test, armnn::DataLayout::NHWC)
surmeh01bceff2f2018-03-29 16:29:27 +0100292
telsoa014fcda012018-03-09 14:13:49 +0000293ARMNN_AUTO_TEST_CASE(LargeTensorsAveragePooling2d, LargeTensorsAveragePooling2dTest)
294ARMNN_AUTO_TEST_CASE(LargeTensorsAveragePooling2dUint8, LargeTensorsAveragePooling2dUint8Test)
295
James Conroy45a9b772018-10-31 11:47:53 +0000296ARMNN_AUTO_TEST_CASE(SimpleL2Pooling2d, SimpleL2Pooling2dTest, armnn::DataLayout::NCHW)
297ARMNN_AUTO_TEST_CASE(SimpleL2Pooling2dNeon, SimpleL2Pooling2dTest, armnn::DataLayout::NHWC)
298ARMNN_AUTO_TEST_CASE(UNSUPPORTED_SimpleL2Pooling2dUint8, SimpleL2Pooling2dUint8Test, armnn::DataLayout::NCHW)
299
telsoa014fcda012018-03-09 14:13:49 +0000300ARMNN_AUTO_TEST_CASE(L2Pooling2dSize3Stride1, L2Pooling2dSize3Stride1Test)
301ARMNN_AUTO_TEST_CASE(UNSUPPORTED_L2Pooling2dSize3Stride1Uint8, L2Pooling2dSize3Stride1Uint8Test)
302ARMNN_AUTO_TEST_CASE(L2Pooling2dSize3Stride3, L2Pooling2dSize3Stride3Test)
303ARMNN_AUTO_TEST_CASE(UNSUPPORTED_L2Pooling2dSize3Stride3Uint8, L2Pooling2dSize3Stride3Uint8Test)
304ARMNN_AUTO_TEST_CASE(L2Pooling2dSize3Stride4, L2Pooling2dSize3Stride4Test)
305ARMNN_AUTO_TEST_CASE(UNSUPPORTED_L2Pooling2dSize3Stride4Uint8, L2Pooling2dSize3Stride4Uint8Test)
306ARMNN_AUTO_TEST_CASE(L2Pooling2dSize7, L2Pooling2dSize7Test)
307ARMNN_AUTO_TEST_CASE(UNSUPPORTED_L2Pooling2dSize7Uint8, L2Pooling2dSize7Uint8Test)
308ARMNN_AUTO_TEST_CASE(L2Pooling2dSize9, L2Pooling2dSize9Test)
309ARMNN_AUTO_TEST_CASE(UNSUPPORTED_L2Pooling2dSize9Uint8, L2Pooling2dSize9Uint8Test)
310
311// Ignore padding values for pooling but count padding fields into the divisor
312ARMNN_AUTO_TEST_CASE(IgnorePaddingSimpleMaxPooling2d, IgnorePaddingSimpleMaxPooling2dTest)
313ARMNN_AUTO_TEST_CASE(IgnorePaddingSimpleMaxPooling2dUint8, IgnorePaddingSimpleMaxPooling2dUint8Test)
314ARMNN_AUTO_TEST_CASE(IgnorePaddingMaxPooling2dSize3, IgnorePaddingMaxPooling2dSize3Test)
315ARMNN_AUTO_TEST_CASE(IgnorePaddingMaxPooling2dSize3Uint8, IgnorePaddingMaxPooling2dSize3Uint8Test)
316
317ARMNN_AUTO_TEST_CASE(IgnorePaddingSimpleAveragePooling2d, IgnorePaddingSimpleAveragePooling2dTest)
318ARMNN_AUTO_TEST_CASE(IgnorePaddingSimpleAveragePooling2dUint8, IgnorePaddingSimpleAveragePooling2dUint8Test)
319ARMNN_AUTO_TEST_CASE(IgnorePaddingSimpleAveragePooling2dNoPadding, IgnorePaddingSimpleAveragePooling2dNoPaddingTest)
320ARMNN_AUTO_TEST_CASE(IgnorePaddingSimpleAveragePooling2dNoPaddingUint8,
321 IgnorePaddingSimpleAveragePooling2dNoPaddingUint8Test)
322ARMNN_AUTO_TEST_CASE(IgnorePaddingAveragePooling2dSize3, IgnorePaddingAveragePooling2dSize3Test)
323ARMNN_AUTO_TEST_CASE(IgnorePaddingAveragePooling2dSize3Uint8, IgnorePaddingAveragePooling2dSize3Uint8Test)
surmeh01bceff2f2018-03-29 16:29:27 +0100324ARMNN_AUTO_TEST_CASE(IgnorePaddingAveragePooling2dSize3x2Stride2x2,
325 IgnorePaddingAveragePooling2dSize3x2Stride2x2Test, false)
326ARMNN_AUTO_TEST_CASE(IgnorePaddingAveragePooling2dSize3x2Stride2x2NoPadding,
327 IgnorePaddingAveragePooling2dSize3x2Stride2x2Test,
328 true)
telsoa014fcda012018-03-09 14:13:49 +0000329
330ARMNN_AUTO_TEST_CASE(IgnorePaddingSimpleL2Pooling2d, IgnorePaddingSimpleL2Pooling2dTest)
331ARMNN_AUTO_TEST_CASE(UNSUPPORTED_IgnorePaddingSimpleL2Pooling2dUint8, IgnorePaddingSimpleL2Pooling2dUint8Test)
332ARMNN_AUTO_TEST_CASE(IgnorePaddingL2Pooling2dSize3, IgnorePaddingL2Pooling2dSize3Test)
333ARMNN_AUTO_TEST_CASE(UNSUPPORTED_IgnorePaddingL2Pooling2dSize3Uint8, IgnorePaddingL2Pooling2dSize3Uint8Test)
334
335// Activation
336ARMNN_AUTO_TEST_CASE(ConstantLinearActivation, ConstantLinearActivationTest)
337
Narumol Prangnawarat65d30962019-03-14 11:55:03 +0000338// ReLu
339ARMNN_AUTO_TEST_CASE(ReLu1Uint8, BoundedReLuUint8UpperAndLowerBoundTest)
340ARMNN_AUTO_TEST_CASE(ReLu6Uint8, BoundedReLuUint8UpperBoundOnlyTest)
341
Narumol Prangnawaratb98bbcf2019-04-15 14:14:27 +0100342// Sigmoid
343ARMNN_AUTO_TEST_CASE(SimpleSigmoid, SimpleSigmoidTest)
344ARMNN_AUTO_TEST_CASE(SimpleSigmoidUint8, SimpleSigmoidUint8Test)
345
Narumol Prangnawarat65d30962019-03-14 11:55:03 +0000346// Softmax
telsoa014fcda012018-03-09 14:13:49 +0000347ARMNN_AUTO_TEST_CASE(SimpleSoftmaxBeta1, SimpleSoftmaxTest, 1.0f)
348ARMNN_AUTO_TEST_CASE(SimpleSoftmaxBeta2, SimpleSoftmaxTest, 2.0f)
telsoa014fcda012018-03-09 14:13:49 +0000349ARMNN_AUTO_TEST_CASE(SimpleSoftmaxBeta1Uint8, SimpleSoftmaxUint8Test, 1.0f)
350ARMNN_AUTO_TEST_CASE(SimpleSoftmaxBeta2Uint8, SimpleSoftmaxUint8Test, 2.0f)
351
Narumol Prangnawarat65d30962019-03-14 11:55:03 +0000352ARMNN_AUTO_TEST_CASE(Simple3dSoftmaxBeta1, Simple3dSoftmaxTest, 1.0f)
353ARMNN_AUTO_TEST_CASE(Simple3dSoftmaxBeta1Uint8, Simple3dSoftmaxUint8Test, 1.0f)
354
355ARMNN_AUTO_TEST_CASE(Simple4dSoftmaxBeta1, Simple4dSoftmaxTest, 1.0f)
356ARMNN_AUTO_TEST_CASE(Simple4dSoftmaxBeta1Uint8, Simple4dSoftmaxUint8Test, 1.0f)
telsoa014fcda012018-03-09 14:13:49 +0000357
Ellen Norris-Thompson29794572019-06-26 16:40:36 +0100358// SpaceToDepth
359ARMNN_AUTO_TEST_CASE(SpaceToDepthNCHWAsymmQ8, SpaceToDepthNCHWAsymmQ8Test)
360ARMNN_AUTO_TEST_CASE(SpaceToDepthNHWCAsymmQ8, SpaceToDepthNHWCAsymmQ8Test)
361
362ARMNN_AUTO_TEST_CASE(SpaceToDepthNHWC1Float32, SpaceToDepthNHWCFloat32Test1)
363ARMNN_AUTO_TEST_CASE(SpaceToDepthNCHW1Float32, SpaceToDepthNCHWFloat32Test1)
364
365ARMNN_AUTO_TEST_CASE(SpaceToDepthNHWC2Float32, SpaceToDepthNHWCFloat32Test2)
366ARMNN_AUTO_TEST_CASE(SpaceToDepthNCHW2Float32, SpaceToDepthNCHWFloat32Test2)
367
368ARMNN_AUTO_TEST_CASE(SpaceToDepthNHWCQSymm16, SpaceToDepthNHWCQSymm16Test)
369ARMNN_AUTO_TEST_CASE(SpaceToDepthNCHWQSymm16, SpaceToDepthNCHWQSymm16Test)
370
telsoa01c577f2c2018-08-31 09:22:23 +0100371// Splitter
372ARMNN_AUTO_TEST_CASE(SimpleSplitter, SplitterTest)
373ARMNN_AUTO_TEST_CASE(SimpleSplitterUint8, SplitterUint8Test)
telsoa014fcda012018-03-09 14:13:49 +0000374
375ARMNN_AUTO_TEST_CASE(CopyViaSplitter, CopyViaSplitterTest)
376ARMNN_AUTO_TEST_CASE(CopyViaSplitterUint8, CopyViaSplitterUint8Test)
377
Jim Flynn4ed6c832019-05-20 11:02:46 +0100378// Concat
379ARMNN_AUTO_TEST_CASE(SimpleConcat, ConcatTest)
380ARMNN_AUTO_TEST_CASE(ConcatUint8, ConcatUint8Test)
Narumol Prangnawarat71c80b12019-06-17 17:45:43 +0100381ARMNN_AUTO_TEST_CASE(ConcatUint8DifferentInputOutputQParam,
382 ConcatDifferentInputOutputQParamTest<armnn::DataType::QuantisedAsymm8>, false)
telsoa014fcda012018-03-09 14:13:49 +0000383
384// Fully Connected
385ARMNN_AUTO_TEST_CASE(SimpleFullyConnected, FullyConnectedFloat32Test, false, false)
386ARMNN_AUTO_TEST_CASE(SimpleFullyConnectedWithBias, FullyConnectedFloat32Test, true, false)
387ARMNN_AUTO_TEST_CASE(SimpleFullyConnectedWithTranspose, FullyConnectedFloat32Test, false, true)
388ARMNN_AUTO_TEST_CASE(FullyConnectedLarge, FullyConnectedLargeTest, false)
389ARMNN_AUTO_TEST_CASE(FullyConnectedLargeTransposed, FullyConnectedLargeTest, true)
Francis Murtagh46c09d02019-05-28 08:15:28 +0100390ARMNN_AUTO_TEST_CASE(FullyConnectedUint8, FullyConnectedTest<armnn::DataType::QuantisedAsymm8>, false)
391ARMNN_AUTO_TEST_CASE(FullyConnectedBiasedUint8, FullyConnectedTest<armnn::DataType::QuantisedAsymm8>, true)
telsoa014fcda012018-03-09 14:13:49 +0000392
393// Add
394ARMNN_AUTO_TEST_CASE(SimpleAdd, AdditionTest)
David Beckbc392452018-09-10 14:47:28 +0100395ARMNN_AUTO_TEST_CASE(AddBroadcast, AdditionBroadcastTest)
telsoa014fcda012018-03-09 14:13:49 +0000396ARMNN_AUTO_TEST_CASE(AddBroadcast1Element, AdditionBroadcast1ElementTest)
397
David Beckbc392452018-09-10 14:47:28 +0100398// Sub
399ARMNN_AUTO_TEST_CASE(SimpleSub, SubtractionTest)
Mohamed Nour Abouelseoud3d93bc42018-11-21 10:35:17 +0000400ARMNN_AUTO_TEST_CASE(SubBroadcast1Element, SubtractionBroadcast1ElementTest)
401ARMNN_AUTO_TEST_CASE(SubBroadcast, SubtractionBroadcastTest)
Conor Kennedyb99480b2019-03-08 08:24:41 +0000402ARMNN_AUTO_TEST_CASE(SubtractionUint8, SubtractionUint8Test)
403ARMNN_AUTO_TEST_CASE(SubBroadcastUint8, SubtractionBroadcastUint8Test)
404ARMNN_AUTO_TEST_CASE(SubBroadcast1ElementUint8, SubtractionBroadcast1ElementUint8Test)
David Beckbc392452018-09-10 14:47:28 +0100405
telsoa014fcda012018-03-09 14:13:49 +0000406// Mul
407ARMNN_AUTO_TEST_CASE(SimpleMultiplication, MultiplicationTest)
surmeh013537c2c2018-05-18 16:31:43 +0100408ARMNN_AUTO_TEST_CASE(MultiplicationBroadcast1Element, MultiplicationBroadcast1ElementTest)
409ARMNN_AUTO_TEST_CASE(MultiplicationBroadcast1DVector, MultiplicationBroadcast1DVectorTest)
Conor Kennedyb99480b2019-03-08 08:24:41 +0000410ARMNN_AUTO_TEST_CASE(MultiplicationUint8, MultiplicationUint8Test)
411ARMNN_AUTO_TEST_CASE(MultiplicationBroadcast1ElementUint8, MultiplicationBroadcast1ElementUint8Test)
412ARMNN_AUTO_TEST_CASE(MultiplicationBroadcast1DVectorUint8, MultiplicationBroadcast1DVectorUint8Test)
telsoa014fcda012018-03-09 14:13:49 +0000413
414// Batch Norm
415ARMNN_AUTO_TEST_CASE(BatchNorm, BatchNormTest)
Nikhil Rajd1340932018-10-18 14:27:50 +0100416ARMNN_AUTO_TEST_CASE(BatchNormNhwc, BatchNormNhwcTest)
telsoa014fcda012018-03-09 14:13:49 +0000417
418// Constant
419ARMNN_AUTO_TEST_CASE(Constant, ConstantTest)
Nina Drozd58ef2c62019-05-16 12:09:18 +0100420ARMNN_AUTO_TEST_CASE(ConstantUint8, ConstantUint8SimpleQuantizationScaleNoOffsetTest)
telsoa014fcda012018-03-09 14:13:49 +0000421
422// Concatenation
423ARMNN_AUTO_TEST_CASE(Concatenation1d, Concatenation1dTest)
424ARMNN_AUTO_TEST_CASE(Concatenation1dUint8, Concatenation1dUint8Test)
425
426ARMNN_AUTO_TEST_CASE(Concatenation2dDim0, Concatenation2dDim0Test)
427ARMNN_AUTO_TEST_CASE(Concatenation2dDim0Uint8, Concatenation2dDim0Uint8Test)
428ARMNN_AUTO_TEST_CASE(Concatenation2dDim1, Concatenation2dDim1Test)
429ARMNN_AUTO_TEST_CASE(Concatenation2dDim1Uint8, Concatenation2dDim1Uint8Test)
430
431ARMNN_AUTO_TEST_CASE(Concatenation2dDim0DiffInputDims, Concatenation2dDim0DiffInputDimsTest)
432ARMNN_AUTO_TEST_CASE(Concatenation2dDim0DiffInputDimsUint8, Concatenation2dDim0DiffInputDimsUint8Test)
433ARMNN_AUTO_TEST_CASE(Concatenation2dDim1DiffInputDims, Concatenation2dDim1DiffInputDimsTest)
434ARMNN_AUTO_TEST_CASE(Concatenation2dDim1DiffInputDimsUint8, Concatenation2dDim1DiffInputDimsUint8Test)
435
436ARMNN_AUTO_TEST_CASE(Concatenation3dDim0, Concatenation3dDim0Test)
437ARMNN_AUTO_TEST_CASE(Concatenation3dDim0Uint8, Concatenation3dDim0Uint8Test)
438ARMNN_AUTO_TEST_CASE(Concatenation3dDim1, Concatenation3dDim1Test)
439ARMNN_AUTO_TEST_CASE(Concatenation3dDim1Uint8, Concatenation3dDim1Uint8Test)
narpra015cdda352018-11-19 15:30:27 +0000440ARMNN_AUTO_TEST_CASE(Concatenation3dDim2, Concatenation3dDim2Test, false)
441ARMNN_AUTO_TEST_CASE(Concatenation3dDim2Uint8, Concatenation3dDim2Uint8Test, false)
telsoa014fcda012018-03-09 14:13:49 +0000442
443ARMNN_AUTO_TEST_CASE(Concatenation3dDim0DiffInputDims, Concatenation3dDim0DiffInputDimsTest)
444ARMNN_AUTO_TEST_CASE(Concatenation3dDim0DiffInputDimsUint8, Concatenation3dDim0DiffInputDimsUint8Test)
445ARMNN_AUTO_TEST_CASE(Concatenation3dDim1DiffInputDims, Concatenation3dDim1DiffInputDimsTest)
446ARMNN_AUTO_TEST_CASE(Concatenation3dDim1DiffInputDimsUint8, Concatenation3dDim1DiffInputDimsUint8Test)
narpra015cdda352018-11-19 15:30:27 +0000447ARMNN_AUTO_TEST_CASE(Concatenation3dDim2DiffInputDims, Concatenation3dDim2DiffInputDimsTest, false)
448ARMNN_AUTO_TEST_CASE(Concatenation3dDim2DiffInputDimsUint8, Concatenation3dDim2DiffInputDimsUint8Test, false)
telsoa014fcda012018-03-09 14:13:49 +0000449
narpra015cdda352018-11-19 15:30:27 +0000450ARMNN_AUTO_TEST_CASE(Concatenation4dDim0, Concatenation4dDim0Test)
451ARMNN_AUTO_TEST_CASE(Concatenation4dDim1, Concatenation4dDim1Test)
452ARMNN_AUTO_TEST_CASE(Concatenation4dDim3, Concatenation4dDim3Test, false)
453ARMNN_AUTO_TEST_CASE(Concatenation4dDim0Uint8, Concatenation4dDim0Uint8Test)
454ARMNN_AUTO_TEST_CASE(Concatenation4dDim1Uint8, Concatenation4dDim1Uint8Test)
455ARMNN_AUTO_TEST_CASE(Concatenation4dDim3Uint8, Concatenation4dDim3Uint8Test, false)
456
457ARMNN_AUTO_TEST_CASE(Concatenation4dDiffShapeDim0, Concatenation4dDiffShapeDim0Test)
458ARMNN_AUTO_TEST_CASE(Concatenation4dDiffShapeDim1, Concatenation4dDiffShapeDim1Test)
459ARMNN_AUTO_TEST_CASE(Concatenation4dDiffShapeDim3, Concatenation4dDiffShapeDim3Test, false)
460ARMNN_AUTO_TEST_CASE(Concatenation4dDiffShapeDim0Uint8, Concatenation4dDiffShapeDim0Uint8Test)
461ARMNN_AUTO_TEST_CASE(Concatenation4dDiffShapeDim1Uint8, Concatenation4dDiffShapeDim1Uint8Test)
462ARMNN_AUTO_TEST_CASE(Concatenation4dDiffShapeDim3Uint8, Concatenation4dDiffShapeDim3Uint8Test, false)
telsoa014fcda012018-03-09 14:13:49 +0000463// L2 Normalization
jimfly013aab7c32018-11-12 13:32:08 +0000464ARMNN_AUTO_TEST_CASE(L2Normalization1d, L2Normalization1dTest, armnn::DataLayout::NCHW)
465ARMNN_AUTO_TEST_CASE(L2Normalization2d, L2Normalization2dTest, armnn::DataLayout::NCHW)
466ARMNN_AUTO_TEST_CASE(L2Normalization3d, L2Normalization3dTest, armnn::DataLayout::NCHW)
467ARMNN_AUTO_TEST_CASE(L2Normalization4d, L2Normalization4dTest, armnn::DataLayout::NCHW)
Matteo Martincigh539b44d2018-10-01 09:26:39 +0100468
jimfly013aab7c32018-11-12 13:32:08 +0000469ARMNN_AUTO_TEST_CASE(L2Normalization1dNhwc, L2Normalization1dTest, armnn::DataLayout::NHWC)
470ARMNN_AUTO_TEST_CASE(L2Normalization2dNhwc, L2Normalization2dTest, armnn::DataLayout::NHWC)
471ARMNN_AUTO_TEST_CASE(L2Normalization3dNhwc, L2Normalization3dTest, armnn::DataLayout::NHWC)
472ARMNN_AUTO_TEST_CASE(L2Normalization4dNhwc, L2Normalization4dTest, armnn::DataLayout::NHWC)
telsoa014fcda012018-03-09 14:13:49 +0000473
Ferran Balaguer0c64f462019-06-18 16:32:30 +0100474ARMNN_AUTO_TEST_CASE(L2NormalizationDefaultEpsilon, L2NormalizationDefaultEpsilonTest, armnn::DataLayout::NCHW)
475ARMNN_AUTO_TEST_CASE(L2NormalizationNonDefaultEpsilon, L2NormalizationNonDefaultEpsilonTest, armnn::DataLayout::NCHW)
476
telsoa014fcda012018-03-09 14:13:49 +0000477// Floor
James Conroy83735b12019-05-30 16:36:59 +0100478ARMNN_AUTO_TEST_CASE(SimpleFloor, SimpleFloorTest<armnn::DataType::Float32>)
telsoa014fcda012018-03-09 14:13:49 +0000479
kevmay01eed85922019-01-28 08:37:25 +0000480// Greater
481ARMNN_AUTO_TEST_CASE(SimpleGreater, GreaterSimpleTest)
482ARMNN_AUTO_TEST_CASE(GreaterBroadcast1Element, GreaterBroadcast1ElementTest)
483ARMNN_AUTO_TEST_CASE(GreaterBroadcast1DVector, GreaterBroadcast1DVectorTest)
484ARMNN_AUTO_TEST_CASE(GreaterUint8, GreaterUint8Test)
485ARMNN_AUTO_TEST_CASE(GreaterBroadcast1ElementUint8, GreaterBroadcast1ElementUint8Test)
486ARMNN_AUTO_TEST_CASE(GreaterBroadcast1DVectorUint8, GreaterBroadcast1DVectorUint8Test)
487
telsoa014fcda012018-03-09 14:13:49 +0000488// Reshape
Nina Drozd8ed4b8c2019-05-29 10:41:04 +0100489ARMNN_AUTO_TEST_CASE(SimpleReshapeFloat32, SimpleReshapeTest<armnn::DataType::Float32>)
490ARMNN_AUTO_TEST_CASE(SimpleReshapeUint8, SimpleReshapeTest<armnn::DataType::QuantisedAsymm8>)
telsoa014fcda012018-03-09 14:13:49 +0000491
Éanna Ó Catháin12055742019-01-25 10:01:40 +0000492// Pad
493ARMNN_AUTO_TEST_CASE(PadFloat322d, PadFloat322dTest)
FinnWilliamsArma5b5bbf2019-07-08 14:11:33 +0100494ARMNN_AUTO_TEST_CASE(PadFloat322dCustomPadding, PadFloat322dCustomPaddingTest)
Éanna Ó Catháin12055742019-01-25 10:01:40 +0000495ARMNN_AUTO_TEST_CASE(PadFloat323d, PadFloat323dTest)
496ARMNN_AUTO_TEST_CASE(PadFloat324d, PadFloat324dTest)
497
Teresa Charlinec8e1982019-07-02 16:24:09 +0100498ARMNN_AUTO_TEST_CASE(PadUint82d, PadUint82dTest)
FinnWilliamsArma5b5bbf2019-07-08 14:11:33 +0100499ARMNN_AUTO_TEST_CASE(PadUint82dCustomPadding, PadUint82dCustomPaddingTest)
Teresa Charlinec8e1982019-07-02 16:24:09 +0100500ARMNN_AUTO_TEST_CASE(PadUint83d, PadUint83dTest)
501ARMNN_AUTO_TEST_CASE(PadUint84d, PadUint84dTest)
502
FinnWilliamsArm8b797a82019-07-09 16:01:41 +0100503ARMNN_AUTO_TEST_CASE(Pad2dQSymm16, Pad2dTestCommon<armnn::DataType::QuantisedSymm16>, 2.0f, 0, 0.0f)
504ARMNN_AUTO_TEST_CASE(Pad2dQSymm16CustomPadding, Pad2dTestCommon<armnn::DataType::QuantisedSymm16>, 2.0f, 0, 1.0f)
505ARMNN_AUTO_TEST_CASE(Pad3dQSymm16, Pad3dTestCommon<armnn::DataType::QuantisedSymm16>, 2.0f, 0)
506ARMNN_AUTO_TEST_CASE(Pad4dQSymm16, Pad4dTestCommon<armnn::DataType::QuantisedSymm16>, 2.0f, 0)
507
telsoa014fcda012018-03-09 14:13:49 +0000508// Permute
Narumol Prangnawarat86bb4e12019-07-08 11:36:05 +0100509ARMNN_AUTO_TEST_CASE(SimplePermuteFloat32, SimplePermuteTest<armnn::DataType::Float32>)
510ARMNN_AUTO_TEST_CASE(PermuteFloat32ValueSet1Test, PermuteValueSet1Test<armnn::DataType::Float32>)
511ARMNN_AUTO_TEST_CASE(PermuteFloat32ValueSet2Test, PermuteValueSet2Test<armnn::DataType::Float32>)
512ARMNN_AUTO_TEST_CASE(PermuteFloat32ValueSet3Test, PermuteValueSet3Test<armnn::DataType::Float32>)
513ARMNN_AUTO_TEST_CASE(SimplePermuteQASymm8, SimplePermuteTest<armnn::DataType::QuantisedAsymm8>)
514ARMNN_AUTO_TEST_CASE(PermuteQASymm8ValueSet1Test, PermuteValueSet1Test<armnn::DataType::QuantisedAsymm8>)
515ARMNN_AUTO_TEST_CASE(PermuteQASymm8ValueSet2Test, PermuteValueSet2Test<armnn::DataType::QuantisedAsymm8>)
516ARMNN_AUTO_TEST_CASE(PermuteQASymm8ValueSet3Test, PermuteValueSet3Test<armnn::DataType::QuantisedAsymm8>)
surmeh01bceff2f2018-03-29 16:29:27 +0100517
Les Bellde9011b2018-10-03 10:37:52 +0100518// Lstm
519ARMNN_AUTO_TEST_CASE(LstmLayerFloat32WithCifgWithPeepholeNoProjection,
520 LstmLayerFloat32WithCifgWithPeepholeNoProjectionTest)
521ARMNN_AUTO_TEST_CASE(LstmLayerFloat32NoCifgNoPeepholeNoProjection,
522 LstmLayerFloat32NoCifgNoPeepholeNoProjectionTest)
523ARMNN_AUTO_TEST_CASE(LstmLayerFloat32NoCifgWithPeepholeWithProjection,
524 LstmLayerFloat32NoCifgWithPeepholeWithProjectionTest)
Jan Eilersad5293a2019-07-08 09:57:55 +0100525ARMNN_AUTO_TEST_CASE(LstmLayerFloat32NoCifgWithPeepholeWithProjectionWithLayerNorm,
526 LstmLayerFloat32NoCifgWithPeepholeWithProjectionWithLayerNormTest)
Les Bellde9011b2018-10-03 10:37:52 +0100527
Matthew Benthamfd899962018-12-31 15:49:42 +0000528// Mean
James Conroy4d1ff582019-06-10 17:06:39 +0100529ARMNN_AUTO_TEST_CASE(MeanSimpleFloat32, MeanSimpleTest<armnn::DataType::Float32>)
530ARMNN_AUTO_TEST_CASE(MeanSimpleAxisFloat32, MeanSimpleAxisTest<armnn::DataType::Float32>)
531ARMNN_AUTO_TEST_CASE(MeanKeepDimsFloat32, MeanKeepDimsTest<armnn::DataType::Float32>)
532ARMNN_AUTO_TEST_CASE(MeanMultipleDimsFloat32, MeanMultipleDimsTest<armnn::DataType::Float32>)
533ARMNN_AUTO_TEST_CASE(MeanVts1Float32, MeanVts1Test<armnn::DataType::Float32>)
534ARMNN_AUTO_TEST_CASE(MeanVts2Float32, MeanVts2Test<armnn::DataType::Float32>)
535ARMNN_AUTO_TEST_CASE(MeanVts3Float32, MeanVts3Test<armnn::DataType::Float32>)
Matthew Benthamfd899962018-12-31 15:49:42 +0000536
James Conroy4d1ff582019-06-10 17:06:39 +0100537ARMNN_AUTO_TEST_CASE(MeanSimpleQuantisedAsymm8, MeanSimpleTest<armnn::DataType::QuantisedAsymm8>)
538ARMNN_AUTO_TEST_CASE(MeanSimpleAxisQuantisedAsymm8, MeanSimpleAxisTest<armnn::DataType::QuantisedAsymm8>)
539ARMNN_AUTO_TEST_CASE(MeanKeepDimsQuantisedAsymm8, MeanKeepDimsTest<armnn::DataType::QuantisedAsymm8>)
540ARMNN_AUTO_TEST_CASE(MeanMultipleDimsQuantisedAsymm8, MeanMultipleDimsTest<armnn::DataType::QuantisedAsymm8>)
541ARMNN_AUTO_TEST_CASE(MeanVts1QuantisedAsymm8, MeanVts1Test<armnn::DataType::QuantisedAsymm8>)
542ARMNN_AUTO_TEST_CASE(MeanVts2QuantisedAsymm8, MeanVts2Test<armnn::DataType::QuantisedAsymm8>)
543ARMNN_AUTO_TEST_CASE(MeanVts3QuantisedAsymm8, MeanVts3Test<armnn::DataType::QuantisedAsymm8>)
Matthew Benthamfd899962018-12-31 15:49:42 +0000544
Nattapat Chaimanowong4e6597a2018-12-20 14:14:06 +0000545// Max
546ARMNN_AUTO_TEST_CASE(SimpleMaximum, MaximumSimpleTest)
547ARMNN_AUTO_TEST_CASE(MaximumBroadcast1Element, MaximumBroadcast1ElementTest)
548ARMNN_AUTO_TEST_CASE(MaximumBroadcast1DVector, MaximumBroadcast1DVectorTest)
549ARMNN_AUTO_TEST_CASE(MaximumUint8, MaximumUint8Test)
550ARMNN_AUTO_TEST_CASE(MaximumBroadcast1ElementUint8, MaximumBroadcast1ElementUint8Test)
551ARMNN_AUTO_TEST_CASE(MaximumBroadcast1DVectorUint8, MaximumBroadcast1DVectorUint8Test)
552
Conor Kennedy54b21692019-01-09 07:57:38 +0000553// Min
554ARMNN_AUTO_TEST_CASE(SimpleMinimum1, MinimumBroadcast1ElementTest1)
555ARMNN_AUTO_TEST_CASE(SimpleMinimum2, MinimumBroadcast1ElementTest2)
556ARMNN_AUTO_TEST_CASE(Minimum1DVectorUint8, MinimumBroadcast1DVectorUint8Test)
557
narpra0155a97bc2018-10-02 14:35:53 +0100558// Normalization
559ARMNN_AUTO_TEST_CASE(SimpleNormalizationAcross, SimpleNormalizationAcrossTest)
560ARMNN_AUTO_TEST_CASE(SimpleNormalizationWithin, SimpleNormalizationWithinTest)
561ARMNN_AUTO_TEST_CASE(SimpleNormalizationAcrossNhwc, SimpleNormalizationAcrossNhwcTest)
562
Sadik Armaganc625f002018-12-17 11:32:16 +0000563// Resize Bilinear - NCHW data layout
Ellen Norris-Thompsonc4223d12019-06-10 14:15:12 +0100564ARMNN_AUTO_TEST_CASE(SimpleResizeBilinear, SimpleResizeBilinearTest<armnn::DataType::Float32>, armnn::DataLayout::NCHW)
565ARMNN_AUTO_TEST_CASE(ResizeBilinearNop, ResizeBilinearNopTest<armnn::DataType::Float32>, armnn::DataLayout::NCHW)
566ARMNN_AUTO_TEST_CASE(ResizeBilinearSqMin, ResizeBilinearSqMinTest<armnn::DataType::Float32>, armnn::DataLayout::NCHW)
567ARMNN_AUTO_TEST_CASE(ResizeBilinearMin, ResizeBilinearMinTest<armnn::DataType::Float32>, armnn::DataLayout::NCHW)
568ARMNN_AUTO_TEST_CASE(ResizeBilinearMag, ResizeBilinearMagTest<armnn::DataType::Float32>, armnn::DataLayout::NCHW)
Sadik Armaganc625f002018-12-17 11:32:16 +0000569
Ellen Norris-Thompsonc4223d12019-06-10 14:15:12 +0100570ARMNN_AUTO_TEST_CASE(SimpleResizeBilinearUint8,
571 SimpleResizeBilinearTest<armnn::DataType::QuantisedAsymm8>,
572 armnn::DataLayout::NCHW)
573ARMNN_AUTO_TEST_CASE(ResizeBilinearNopUint8,
574 ResizeBilinearNopTest<armnn::DataType::QuantisedAsymm8>,
575 armnn::DataLayout::NCHW)
576ARMNN_AUTO_TEST_CASE(ResizeBilinearSqMinUint8,
577 ResizeBilinearSqMinTest<armnn::DataType::QuantisedAsymm8>,
578 armnn::DataLayout::NCHW)
579ARMNN_AUTO_TEST_CASE(ResizeBilinearMinUint8,
580 ResizeBilinearMinTest<armnn::DataType::QuantisedAsymm8>,
581 armnn::DataLayout::NCHW)
582ARMNN_AUTO_TEST_CASE(ResizeBilinearMagUint8,
583 ResizeBilinearMagTest<armnn::DataType::QuantisedAsymm8>,
584 armnn::DataLayout::NCHW)
Conor Kennedydc1c0822019-02-01 07:23:17 +0000585
Sadik Armaganc625f002018-12-17 11:32:16 +0000586// Resize Bilinear - NHWC data layout
Ellen Norris-Thompsonc4223d12019-06-10 14:15:12 +0100587ARMNN_AUTO_TEST_CASE(ResizeBilinearNopNhwc,
588 ResizeBilinearNopTest<armnn::DataType::Float32>,
589 armnn::DataLayout::NHWC)
590ARMNN_AUTO_TEST_CASE(SimpleResizeBilinearNhwc,
591 SimpleResizeBilinearTest<armnn::DataType::Float32>,
592 armnn::DataLayout::NHWC)
593ARMNN_AUTO_TEST_CASE(ResizeBilinearSqMinNhwc,
594 ResizeBilinearSqMinTest<armnn::DataType::Float32>,
595 armnn::DataLayout::NHWC)
596ARMNN_AUTO_TEST_CASE(ResizeBilinearMinNhwc,
597 ResizeBilinearMinTest<armnn::DataType::Float32>,
598 armnn::DataLayout::NHWC)
599ARMNN_AUTO_TEST_CASE(ResizeBilinearMagNhwc,
600 ResizeBilinearMagTest<armnn::DataType::Float32>,
601 armnn::DataLayout::NHWC)
602
603ARMNN_AUTO_TEST_CASE(ResizeBilinearNopUint8Nhwc,
604 ResizeBilinearNopTest<armnn::DataType::QuantisedAsymm8>,
605 armnn::DataLayout::NHWC)
606ARMNN_AUTO_TEST_CASE(SimpleResizeBilinearUint8Nhwc,
607 SimpleResizeBilinearTest<armnn::DataType::QuantisedAsymm8>,
608 armnn::DataLayout::NHWC)
609ARMNN_AUTO_TEST_CASE(ResizeBilinearSqMinUint8Nhwc,
610 ResizeBilinearSqMinTest<armnn::DataType::QuantisedAsymm8>,
611 armnn::DataLayout::NHWC)
612ARMNN_AUTO_TEST_CASE(ResizeBilinearMinUint8Nhwc,
613 ResizeBilinearMinTest<armnn::DataType::QuantisedAsymm8>,
614 armnn::DataLayout::NHWC)
615ARMNN_AUTO_TEST_CASE(ResizeBilinearMagUint8Nhwc,
616 ResizeBilinearMagTest<armnn::DataType::QuantisedAsymm8>,
617 armnn::DataLayout::NHWC)
Sadik Armaganc625f002018-12-17 11:32:16 +0000618
Ellen Norris-Thompson37e68682019-07-15 14:23:30 +0100619// Resize NearestNeighbor - NCHW
620ARMNN_AUTO_TEST_CASE(SimpleResizeNearestNeighbor,
621 SimpleResizeNearestNeighborTest<armnn::DataType::Float32>,
622 armnn::DataLayout::NCHW)
623ARMNN_AUTO_TEST_CASE(ResizeNearestNeighborNop,
624 ResizeNearestNeighborNopTest<armnn::DataType::Float32>,
625 armnn::DataLayout::NCHW)
626ARMNN_AUTO_TEST_CASE(ResizeNearestNeighborSqMin,
627 ResizeNearestNeighborSqMinTest<armnn::DataType::Float32>,
628 armnn::DataLayout::NCHW)
629ARMNN_AUTO_TEST_CASE(ResizeNearestNeighborMin,
630 ResizeNearestNeighborMinTest<armnn::DataType::Float32>,
631 armnn::DataLayout::NCHW)
632ARMNN_AUTO_TEST_CASE(ResizeNearestNeighborMag,
633 ResizeNearestNeighborMagTest<armnn::DataType::Float32>,
634 armnn::DataLayout::NCHW, 0.1f, 50, 0.1f, 50)
635
636ARMNN_AUTO_TEST_CASE(SimpleResizeNearestNeighborUint8,
637 SimpleResizeNearestNeighborTest<armnn::DataType::QuantisedAsymm8>,
638 armnn::DataLayout::NCHW)
639ARMNN_AUTO_TEST_CASE(ResizeNearestNeighborNopUint8,
640 ResizeNearestNeighborNopTest<armnn::DataType::QuantisedAsymm8>,
641 armnn::DataLayout::NCHW)
642ARMNN_AUTO_TEST_CASE(ResizeNearestNeighborSqMinUint8,
643 ResizeNearestNeighborSqMinTest<armnn::DataType::QuantisedAsymm8>,
644 armnn::DataLayout::NCHW)
645ARMNN_AUTO_TEST_CASE(ResizeNearestNeighborMinUint8,
646 ResizeNearestNeighborMinTest<armnn::DataType::QuantisedAsymm8>,
647 armnn::DataLayout::NCHW)
648ARMNN_AUTO_TEST_CASE(ResizeNearestNeighborMagUint8,
649 ResizeNearestNeighborMagTest<armnn::DataType::QuantisedAsymm8>,
650 armnn::DataLayout::NCHW, 0.1f, 50, 0.1f, 50)
651
652// Resize NearestNeighbor - NHWC
653ARMNN_AUTO_TEST_CASE(ResizeNearestNeighborNopNhwc,
654 ResizeNearestNeighborNopTest<armnn::DataType::Float32>,
655 armnn::DataLayout::NHWC)
656ARMNN_AUTO_TEST_CASE(SimpleResizeNearestNeighborNhwc,
657 SimpleResizeNearestNeighborTest<armnn::DataType::Float32>,
658 armnn::DataLayout::NHWC)
659ARMNN_AUTO_TEST_CASE(ResizeNearestNeighborSqMinNhwc,
660 ResizeNearestNeighborSqMinTest<armnn::DataType::Float32>,
661 armnn::DataLayout::NHWC)
662ARMNN_AUTO_TEST_CASE(ResizeNearestNeighborMinNhwc,
663 ResizeNearestNeighborMinTest<armnn::DataType::Float32>,
664 armnn::DataLayout::NHWC)
665ARMNN_AUTO_TEST_CASE(ResizeNearestNeighborMagNhwc,
666 ResizeNearestNeighborMagTest<armnn::DataType::Float32>,
667 armnn::DataLayout::NHWC, 0.1f, 50, 0.1f, 50)
668
669ARMNN_AUTO_TEST_CASE(ResizeNearestNeighborNopUint8Nhwc,
670 ResizeNearestNeighborNopTest<armnn::DataType::QuantisedAsymm8>,
671 armnn::DataLayout::NHWC)
672ARMNN_AUTO_TEST_CASE(SimpleResizeNearestNeighborUint8Nhwc,
673 SimpleResizeNearestNeighborTest<armnn::DataType::QuantisedAsymm8>,
674 armnn::DataLayout::NHWC)
675ARMNN_AUTO_TEST_CASE(ResizeNearestNeighborSqMinUint8Nhwc,
676 ResizeNearestNeighborSqMinTest<armnn::DataType::QuantisedAsymm8>,
677 armnn::DataLayout::NHWC)
678ARMNN_AUTO_TEST_CASE(ResizeNearestNeighborMinUint8Nhwc,
679 ResizeNearestNeighborMinTest<armnn::DataType::QuantisedAsymm8>,
680 armnn::DataLayout::NHWC)
681ARMNN_AUTO_TEST_CASE(ResizeNearestNeighborMagUint8Nhwc,
682 ResizeNearestNeighborMagTest<armnn::DataType::QuantisedAsymm8>,
683 armnn::DataLayout::NHWC, 0.1f, 50, 0.1f, 50)
684
Sadik Armaganfabc2892019-05-31 09:05:11 +0100685// Quantize
686ARMNN_AUTO_TEST_CASE(QuantizeSimpleUint8, QuantizeSimpleUint8Test)
687ARMNN_AUTO_TEST_CASE(QuantizeClampUint8, QuantizeClampUint8Test)
688
Nikhil Raj9b461482019-07-03 15:58:31 +0100689// PReLU
690ARMNN_AUTO_TEST_CASE(PreluFloat32, PreluTest<armnn::DataType::Float32>)
691ARMNN_AUTO_TEST_CASE(PreluUint8, PreluTest<armnn::DataType::QuantisedAsymm8>)
692
telsoa014fcda012018-03-09 14:13:49 +0000693// ============================================================================
694// COMPARE tests
695
696ARMNN_COMPARE_REF_AUTO_TEST_CASE(CompareConv2dWithReference, CompareConvolution2dTest)
697
jimfly017af00da2018-10-31 14:43:53 +0000698ARMNN_COMPARE_REF_AUTO_TEST_CASE(CompareDepthwiseConv2dWithReferenceFloat32,
Nattapat Chaimanowong649dd952019-01-22 16:10:44 +0000699 CompareDepthwiseConvolution2dFloatTest,
jimfly017af00da2018-10-31 14:43:53 +0000700 armnn::DataLayout::NCHW)
701ARMNN_COMPARE_REF_AUTO_TEST_CASE(CompareDepthwiseConv2dWithReferenceUint8,
Nattapat Chaimanowong649dd952019-01-22 16:10:44 +0000702 CompareDepthwiseConvolution2dUint8Test,
jimfly017af00da2018-10-31 14:43:53 +0000703 armnn::DataLayout::NCHW)
704
705ARMNN_COMPARE_REF_AUTO_TEST_CASE(CompareDepthwiseConv2dWithReferenceFloat32Nhwc,
Nattapat Chaimanowong649dd952019-01-22 16:10:44 +0000706 CompareDepthwiseConvolution2dFloatTest,
jimfly017af00da2018-10-31 14:43:53 +0000707 armnn::DataLayout::NHWC)
708ARMNN_COMPARE_REF_AUTO_TEST_CASE(CompareDepthwiseConv2dWithReferenceUint8Nhwc,
Nattapat Chaimanowong649dd952019-01-22 16:10:44 +0000709 CompareDepthwiseConvolution2dUint8Test,
jimfly017af00da2018-10-31 14:43:53 +0000710 armnn::DataLayout::NHWC)
telsoa014fcda012018-03-09 14:13:49 +0000711
712ARMNN_COMPARE_REF_AUTO_TEST_CASE(CompareNormalizationWithinWithReference, CompareNormalizationTest,
713 armnn::NormalizationAlgorithmChannel::Within,
714 armnn::NormalizationAlgorithmMethod::LocalBrightness)
715ARMNN_COMPARE_REF_AUTO_TEST_CASE(CompareNormalizationAcrossWithReference, CompareNormalizationTest,
716 armnn::NormalizationAlgorithmChannel::Across,
717 armnn::NormalizationAlgorithmMethod::LocalBrightness)
718
719ARMNN_COMPARE_REF_AUTO_TEST_CASE(CompareMaxPooling2dWithReference, ComparePooling2dTest, armnn::PoolingAlgorithm::Max)
720ARMNN_COMPARE_REF_AUTO_TEST_CASE(CompareMaxPooling2dWithReferenceUint8, ComparePooling2dUint8Test,
721 armnn::PoolingAlgorithm::Max)
722ARMNN_COMPARE_REF_AUTO_TEST_CASE(CompareAveragePooling2dWithReference, ComparePooling2dTest,
723 armnn::PoolingAlgorithm::Average)
724ARMNN_COMPARE_REF_AUTO_TEST_CASE(CompareAveragePooling2dWithReferenceUint8, ComparePooling2dUint8Test,
725 armnn::PoolingAlgorithm::Average)
726ARMNN_COMPARE_REF_AUTO_TEST_CASE(CompareL2Pooling2dWithReference, ComparePooling2dTest, armnn::PoolingAlgorithm::L2)
727ARMNN_COMPARE_REF_AUTO_TEST_CASE(UNSUPPORTED_CompareL2Pooling2dWithReferenceUint8, ComparePooling2dUint8Test,
728 armnn::PoolingAlgorithm::L2)
729
730ARMNN_COMPARE_REF_AUTO_TEST_CASE(CompareSoftmaxBeta1WithReference, CompareSoftmaxTest, 1.0f)
731ARMNN_COMPARE_REF_AUTO_TEST_CASE(CompareSoftmaxBeta2WithReference, CompareSoftmaxTest, 2.0f)
732
733ARMNN_COMPARE_REF_AUTO_TEST_CASE(CompareSoftmaxUint8Beta1WithReference, CompareSoftmaxUint8Test, 1.0f)
734ARMNN_COMPARE_REF_AUTO_TEST_CASE(CompareSoftmaxUint8Beta2WithReference, CompareSoftmaxUint8Test, 2.0f)
735
736ARMNN_COMPARE_REF_AUTO_TEST_CASE(CompareAddition, CompareAdditionTest)
737
738ARMNN_COMPARE_REF_AUTO_TEST_CASE(CompareMultiplicationWithReference, CompareMultiplicationTest)
739
740ARMNN_COMPARE_REF_AUTO_TEST_CASE(CompareBatchNorm, CompareBatchNormTest)
741
742ARMNN_COMPARE_REF_AUTO_TEST_CASE(ReLu1, CompareBoundedReLuTest, 1.0f, -1.0f)
743ARMNN_COMPARE_REF_AUTO_TEST_CASE(ReLu6, CompareBoundedReLuTest, 6.0f, 0.0f)
744
745// ============================================================================
746// FIXTURE tests
747
748ARMNN_COMPARE_REF_FIXTURE_TEST_CASE(CompareSigmoidActivationWithReference, ActivationFixture,
749 CompareActivationTest, armnn::ActivationFunction::Sigmoid, 5u)
750
751ARMNN_COMPARE_REF_FIXTURE_TEST_CASE(CompareTanhActivationWithReference, ActivationFixture,
752 CompareActivationTest, armnn::ActivationFunction::TanH, 5u)
753
754ARMNN_COMPARE_REF_FIXTURE_TEST_CASE(CompareLinearActivationWithReference, ActivationFixture,
755 CompareActivationTest, armnn::ActivationFunction::Linear, 5u)
756
757ARMNN_COMPARE_REF_FIXTURE_TEST_CASE(CompareReLuActivationWithReference, ActivationFixture,
758 CompareActivationTest, armnn::ActivationFunction::ReLu, 5u)
759
760ARMNN_COMPARE_REF_FIXTURE_TEST_CASE(CompareBoundedReLuActivationWithReference, ActivationFixture,
761 CompareActivationTest, armnn::ActivationFunction::BoundedReLu, 5u)
762ARMNN_COMPARE_REF_FIXTURE_TEST_CASE(CompareBoundedReLuActivationWithReferenceUint8, ActivationFixture,
763 CompareActivationUint8Test, armnn::ActivationFunction::BoundedReLu)
764
765ARMNN_COMPARE_REF_FIXTURE_TEST_CASE(CompareSoftReLuActivationWithReference, ActivationFixture,
766 CompareActivationTest, armnn::ActivationFunction::SoftReLu, 1u)
767
768ARMNN_COMPARE_REF_FIXTURE_TEST_CASE(CompareLeakyReLuActivationWithReference, ActivationFixture,
769 CompareActivationTest, armnn::ActivationFunction::LeakyReLu, 5u)
770
771ARMNN_COMPARE_REF_FIXTURE_TEST_CASE(CompareAbsActivationWithReference, ActivationFixture,
772 CompareActivationTest, armnn::ActivationFunction::Abs, 5u)
773
774ARMNN_COMPARE_REF_FIXTURE_TEST_CASE(CompareSqrtActivationWithReference, PositiveActivationFixture,
775 CompareActivationTest, armnn::ActivationFunction::Sqrt, 5u)
776
777ARMNN_COMPARE_REF_FIXTURE_TEST_CASE(CompareSquareActivationWithReference, ActivationFixture,
778 CompareActivationTest, armnn::ActivationFunction::Square, 5u)
telsoa014fcda012018-03-09 14:13:49 +0000779BOOST_AUTO_TEST_SUITE_END()