blob: ed99461b31b682d60fb479da78231cc9fdcca6cf [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
Matthew Jackson99107922019-07-25 12:58:56 +0100138ARMNN_AUTO_TEST_CASE(DepthwiseConvolution2dDepthMul64, DepthwiseConvolution2dDepthMul64Test);
139
telsoa014fcda012018-03-09 14:13:49 +0000140namespace
141{
142
143armnn::DepthwiseConvolution2dDescriptor MakeDepthwiseConv2dDesc(uint32_t strideX, uint32_t strideY,
144 uint32_t depthMultiplier = 1, uint32_t padLeft = 0, uint32_t padRight = 0,
145 uint32_t padTop = 0, uint32_t padBottom = 0)
146{
telsoa01c577f2c2018-08-31 09:22:23 +0100147 boost::ignore_unused(depthMultiplier);
148
telsoa014fcda012018-03-09 14:13:49 +0000149 armnn::DepthwiseConvolution2dDescriptor desc;
telsoa01c577f2c2018-08-31 09:22:23 +0100150
telsoa014fcda012018-03-09 14:13:49 +0000151 desc.m_PadLeft = padLeft;
152 desc.m_PadRight = padRight;
telsoa01c577f2c2018-08-31 09:22:23 +0100153
telsoa014fcda012018-03-09 14:13:49 +0000154 desc.m_PadTop = padTop;
155 desc.m_PadBottom = padBottom;
156 desc.m_StrideX = strideX;
157 desc.m_StrideY = strideY;
telsoa01c577f2c2018-08-31 09:22:23 +0100158 desc.m_BiasEnabled = false;
159
telsoa014fcda012018-03-09 14:13:49 +0000160 return desc;
161}
162
telsoa01c577f2c2018-08-31 09:22:23 +0100163armnn::TensorInfo CreateOutputTensorInfo(const armnn::TensorInfo& inputInfo,
164 const armnn::TensorInfo& weightsInfo,
165 const armnn::DepthwiseConvolution2dDescriptor& descriptor,
166 armnn::DataType dataType)
167{
168 const armnn::TensorShape& inputShape = inputInfo.GetShape();
169 const armnn::TensorShape& filterShape = weightsInfo.GetShape();
170
171 unsigned int inWidth = inputShape[3];
172 unsigned int inHeight = inputShape[2];
173 unsigned int inBatchSize = inputShape[0];
174
175 unsigned int filterWidth = filterShape[3];
176 unsigned int readWidth = (inWidth + descriptor.m_PadLeft + descriptor.m_PadRight) - (filterWidth);
177 unsigned int outWidth = 1u + (readWidth / descriptor.m_StrideX);
178
179 unsigned int filterHeight = filterShape[2];
180 unsigned int readHeight = (inHeight + descriptor.m_PadTop + descriptor.m_PadBottom) - (filterHeight);
181 unsigned int outHeight = 1u + (readHeight / descriptor.m_StrideY);
182 unsigned int depthMultiplier = filterShape[0];
183
184 unsigned int outChannels = filterShape[1] * depthMultiplier;
185 unsigned int outBatchSize = inBatchSize;
186
187 armnn::TensorShape outputShape({outBatchSize, outChannels, outHeight, outWidth});
188 return armnn::TensorInfo(outputShape, dataType);
189}
telsoa014fcda012018-03-09 14:13:49 +0000190}
191
192BOOST_AUTO_TEST_CASE(DepthwiseConv2dUtils)
193{
telsoa01c577f2c2018-08-31 09:22:23 +0100194 const armnn::DataType dataType = armnn::DataType::Float32;
195
196 armnn::TensorInfo inputInfo({1, 1, 10, 10 }, dataType);
197 armnn::TensorInfo outputInfo;
198 armnn::TensorInfo weightsInfo3x3({ 1, 1, 3, 3 }, dataType);
199 armnn::TensorInfo biasesInfo;
200
201 armnn::DepthwiseConvolution2dDescriptor descriptor;
Aron Virginas-Tarfc824312018-10-15 15:00:13 +0100202 armnn::NeonLayerSupport layerSupport;
telsoa014fcda012018-03-09 14:13:49 +0000203
204 // Strides supported: 1,2,3
telsoa01c577f2c2018-08-31 09:22:23 +0100205 descriptor = MakeDepthwiseConv2dDesc(1, 1);
206 outputInfo = CreateOutputTensorInfo(inputInfo, weightsInfo3x3, descriptor, dataType);
Aron Virginas-Tarfc824312018-10-15 15:00:13 +0100207 BOOST_TEST(layerSupport.IsDepthwiseConvolutionSupported(inputInfo, outputInfo, descriptor,
208 weightsInfo3x3, biasesInfo));
telsoa014fcda012018-03-09 14:13:49 +0000209
telsoa01c577f2c2018-08-31 09:22:23 +0100210 descriptor = MakeDepthwiseConv2dDesc(1, 2);
211 outputInfo = CreateOutputTensorInfo(inputInfo, weightsInfo3x3, descriptor, dataType);
Aron Virginas-Tarfc824312018-10-15 15:00:13 +0100212 BOOST_TEST(layerSupport.IsDepthwiseConvolutionSupported(inputInfo, outputInfo, descriptor,
213 weightsInfo3x3, biasesInfo));
telsoa01c577f2c2018-08-31 09:22:23 +0100214
215 descriptor = MakeDepthwiseConv2dDesc(1, 3);
216 outputInfo = CreateOutputTensorInfo(inputInfo, weightsInfo3x3, descriptor, dataType);
Aron Virginas-Tarfc824312018-10-15 15:00:13 +0100217 BOOST_TEST(layerSupport.IsDepthwiseConvolutionSupported(inputInfo, outputInfo, descriptor,
218 weightsInfo3x3, biasesInfo));
telsoa01c577f2c2018-08-31 09:22:23 +0100219
220 descriptor = MakeDepthwiseConv2dDesc(2, 1);
221 outputInfo = CreateOutputTensorInfo(inputInfo, weightsInfo3x3, descriptor, dataType);
Aron Virginas-Tarfc824312018-10-15 15:00:13 +0100222 BOOST_TEST(layerSupport.IsDepthwiseConvolutionSupported(inputInfo, outputInfo, descriptor,
223 weightsInfo3x3, biasesInfo));
telsoa01c577f2c2018-08-31 09:22:23 +0100224
225 descriptor = MakeDepthwiseConv2dDesc(2, 2);
226 outputInfo = CreateOutputTensorInfo(inputInfo, weightsInfo3x3, descriptor, dataType);
Aron Virginas-Tarfc824312018-10-15 15:00:13 +0100227 BOOST_TEST(layerSupport.IsDepthwiseConvolutionSupported(inputInfo, outputInfo, descriptor,
228 weightsInfo3x3, biasesInfo));
telsoa01c577f2c2018-08-31 09:22:23 +0100229
230 descriptor = MakeDepthwiseConv2dDesc(2, 3);
231 outputInfo = CreateOutputTensorInfo(inputInfo, weightsInfo3x3, descriptor, dataType);
Aron Virginas-Tarfc824312018-10-15 15:00:13 +0100232 BOOST_TEST(layerSupport.IsDepthwiseConvolutionSupported(inputInfo, outputInfo, descriptor,
233 weightsInfo3x3, biasesInfo));
telsoa01c577f2c2018-08-31 09:22:23 +0100234
235 descriptor = MakeDepthwiseConv2dDesc(3, 1);
236 outputInfo = CreateOutputTensorInfo(inputInfo, weightsInfo3x3, descriptor, dataType);
Aron Virginas-Tarfc824312018-10-15 15:00:13 +0100237 BOOST_TEST(layerSupport.IsDepthwiseConvolutionSupported(inputInfo, outputInfo, descriptor,
238 weightsInfo3x3, biasesInfo));
telsoa01c577f2c2018-08-31 09:22:23 +0100239
240 descriptor = MakeDepthwiseConv2dDesc(3, 2);
241 outputInfo = CreateOutputTensorInfo(inputInfo, weightsInfo3x3, descriptor, dataType);
Aron Virginas-Tarfc824312018-10-15 15:00:13 +0100242 BOOST_TEST(layerSupport.IsDepthwiseConvolutionSupported(inputInfo, outputInfo, descriptor,
243 weightsInfo3x3, biasesInfo));
telsoa01c577f2c2018-08-31 09:22:23 +0100244
245 descriptor = MakeDepthwiseConv2dDesc(3, 3);
246 outputInfo = CreateOutputTensorInfo(inputInfo, weightsInfo3x3, descriptor, dataType);
Aron Virginas-Tarfc824312018-10-15 15:00:13 +0100247 BOOST_TEST(layerSupport.IsDepthwiseConvolutionSupported(inputInfo, outputInfo, descriptor,
248 weightsInfo3x3, biasesInfo));
telsoa01c577f2c2018-08-31 09:22:23 +0100249
250 // Supported stride 4
251 descriptor = MakeDepthwiseConv2dDesc(4, 1);
252 outputInfo = CreateOutputTensorInfo(inputInfo, weightsInfo3x3, descriptor, dataType);
Aron Virginas-Tarfc824312018-10-15 15:00:13 +0100253 BOOST_TEST(layerSupport.IsDepthwiseConvolutionSupported(inputInfo, outputInfo, descriptor,
254 weightsInfo3x3, biasesInfo));
telsoa014fcda012018-03-09 14:13:49 +0000255
256 // Supported weights shape 1x1
257 armnn::TensorInfo weightsInfo1x1({ 1, 1, 1, 1 }, armnn::DataType::Float32);
telsoa01c577f2c2018-08-31 09:22:23 +0100258 descriptor = MakeDepthwiseConv2dDesc(1, 1);
259 outputInfo = CreateOutputTensorInfo(inputInfo, weightsInfo1x1, descriptor, dataType);
Aron Virginas-Tarfc824312018-10-15 15:00:13 +0100260 BOOST_TEST(layerSupport.IsDepthwiseConvolutionSupported(inputInfo, outputInfo, descriptor,
261 weightsInfo1x1, biasesInfo));
telsoa014fcda012018-03-09 14:13:49 +0000262
263 // Supported shape 2x2
264 armnn::TensorInfo weightsInfo2x2({ 1, 1, 2, 2 }, armnn::DataType::Float32);
telsoa01c577f2c2018-08-31 09:22:23 +0100265 descriptor = MakeDepthwiseConv2dDesc(1, 1);
266 outputInfo = CreateOutputTensorInfo(inputInfo, weightsInfo2x2, descriptor, dataType);
Aron Virginas-Tarfc824312018-10-15 15:00:13 +0100267 BOOST_TEST(layerSupport.IsDepthwiseConvolutionSupported(inputInfo, outputInfo, descriptor,
268 weightsInfo2x2, biasesInfo));
surmeh013537c2c2018-05-18 16:31:43 +0100269
270 // Asymmetric padding
telsoa01c577f2c2018-08-31 09:22:23 +0100271 descriptor = MakeDepthwiseConv2dDesc(1, 1, 1, 1, 2, 1, 2);
272 outputInfo = CreateOutputTensorInfo(inputInfo, weightsInfo3x3, descriptor, dataType);
Aron Virginas-Tarfc824312018-10-15 15:00:13 +0100273 BOOST_TEST(layerSupport.IsDepthwiseConvolutionSupported(inputInfo, outputInfo, descriptor,
274 weightsInfo3x3, biasesInfo));
telsoa014fcda012018-03-09 14:13:49 +0000275}
276
Narumol Prangnawarat01961a72019-05-30 16:47:12 +0100277// Dequantize
278ARMNN_AUTO_TEST_CASE(DequantizeSimpleUint8, DequantizeSimpleUint8Test)
279ARMNN_AUTO_TEST_CASE(DequantizeOffsetUint8, DequantizeOffsetUint8Test)
280
telsoa014fcda012018-03-09 14:13:49 +0000281// Pooling
282ARMNN_AUTO_TEST_CASE(SimpleMaxPooling2dSize3x3Stride2x4, SimpleMaxPooling2dSize3x3Stride2x4Test, true)
283ARMNN_AUTO_TEST_CASE(SimpleMaxPooling2dSize3x3Stride2x4Uint8, SimpleMaxPooling2dSize3x3Stride2x4Uint8Test, true)
James Conroy45a9b772018-10-31 11:47:53 +0000284
285ARMNN_AUTO_TEST_CASE(SimpleMaxPooling2d, SimpleMaxPooling2dTest, armnn::DataLayout::NCHW)
286ARMNN_AUTO_TEST_CASE(SimpleMaxPooling2dNhwc, SimpleMaxPooling2dTest, armnn::DataLayout::NHWC)
287ARMNN_AUTO_TEST_CASE(SimpleMaxPooling2dUint8, SimpleMaxPooling2dUint8Test, armnn::DataLayout::NCHW)
288ARMNN_AUTO_TEST_CASE(SimpleMaxPooling2dUint8Nhwc, SimpleMaxPooling2dUint8Test, armnn::DataLayout::NHWC)
289
290ARMNN_AUTO_TEST_CASE(SimpleAveragePooling2d, SimpleAveragePooling2dTest, armnn::DataLayout::NCHW)
291ARMNN_AUTO_TEST_CASE(SimpleAveragePooling2dNhwc, SimpleAveragePooling2dTest, armnn::DataLayout::NCHW)
292ARMNN_AUTO_TEST_CASE(SimpleAveragePooling2dUint8, SimpleAveragePooling2dUint8Test, armnn::DataLayout::NCHW)
293ARMNN_AUTO_TEST_CASE(SimpleAveragePooling2dUint8Nhwc, SimpleAveragePooling2dUint8Test, armnn::DataLayout::NHWC)
surmeh01bceff2f2018-03-29 16:29:27 +0100294
telsoa014fcda012018-03-09 14:13:49 +0000295ARMNN_AUTO_TEST_CASE(LargeTensorsAveragePooling2d, LargeTensorsAveragePooling2dTest)
296ARMNN_AUTO_TEST_CASE(LargeTensorsAveragePooling2dUint8, LargeTensorsAveragePooling2dUint8Test)
297
James Conroy45a9b772018-10-31 11:47:53 +0000298ARMNN_AUTO_TEST_CASE(SimpleL2Pooling2d, SimpleL2Pooling2dTest, armnn::DataLayout::NCHW)
299ARMNN_AUTO_TEST_CASE(SimpleL2Pooling2dNeon, SimpleL2Pooling2dTest, armnn::DataLayout::NHWC)
300ARMNN_AUTO_TEST_CASE(UNSUPPORTED_SimpleL2Pooling2dUint8, SimpleL2Pooling2dUint8Test, armnn::DataLayout::NCHW)
301
telsoa014fcda012018-03-09 14:13:49 +0000302ARMNN_AUTO_TEST_CASE(L2Pooling2dSize3Stride1, L2Pooling2dSize3Stride1Test)
303ARMNN_AUTO_TEST_CASE(UNSUPPORTED_L2Pooling2dSize3Stride1Uint8, L2Pooling2dSize3Stride1Uint8Test)
304ARMNN_AUTO_TEST_CASE(L2Pooling2dSize3Stride3, L2Pooling2dSize3Stride3Test)
305ARMNN_AUTO_TEST_CASE(UNSUPPORTED_L2Pooling2dSize3Stride3Uint8, L2Pooling2dSize3Stride3Uint8Test)
306ARMNN_AUTO_TEST_CASE(L2Pooling2dSize3Stride4, L2Pooling2dSize3Stride4Test)
307ARMNN_AUTO_TEST_CASE(UNSUPPORTED_L2Pooling2dSize3Stride4Uint8, L2Pooling2dSize3Stride4Uint8Test)
308ARMNN_AUTO_TEST_CASE(L2Pooling2dSize7, L2Pooling2dSize7Test)
309ARMNN_AUTO_TEST_CASE(UNSUPPORTED_L2Pooling2dSize7Uint8, L2Pooling2dSize7Uint8Test)
310ARMNN_AUTO_TEST_CASE(L2Pooling2dSize9, L2Pooling2dSize9Test)
311ARMNN_AUTO_TEST_CASE(UNSUPPORTED_L2Pooling2dSize9Uint8, L2Pooling2dSize9Uint8Test)
312
313// Ignore padding values for pooling but count padding fields into the divisor
314ARMNN_AUTO_TEST_CASE(IgnorePaddingSimpleMaxPooling2d, IgnorePaddingSimpleMaxPooling2dTest)
315ARMNN_AUTO_TEST_CASE(IgnorePaddingSimpleMaxPooling2dUint8, IgnorePaddingSimpleMaxPooling2dUint8Test)
316ARMNN_AUTO_TEST_CASE(IgnorePaddingMaxPooling2dSize3, IgnorePaddingMaxPooling2dSize3Test)
317ARMNN_AUTO_TEST_CASE(IgnorePaddingMaxPooling2dSize3Uint8, IgnorePaddingMaxPooling2dSize3Uint8Test)
318
319ARMNN_AUTO_TEST_CASE(IgnorePaddingSimpleAveragePooling2d, IgnorePaddingSimpleAveragePooling2dTest)
320ARMNN_AUTO_TEST_CASE(IgnorePaddingSimpleAveragePooling2dUint8, IgnorePaddingSimpleAveragePooling2dUint8Test)
321ARMNN_AUTO_TEST_CASE(IgnorePaddingSimpleAveragePooling2dNoPadding, IgnorePaddingSimpleAveragePooling2dNoPaddingTest)
322ARMNN_AUTO_TEST_CASE(IgnorePaddingSimpleAveragePooling2dNoPaddingUint8,
323 IgnorePaddingSimpleAveragePooling2dNoPaddingUint8Test)
324ARMNN_AUTO_TEST_CASE(IgnorePaddingAveragePooling2dSize3, IgnorePaddingAveragePooling2dSize3Test)
325ARMNN_AUTO_TEST_CASE(IgnorePaddingAveragePooling2dSize3Uint8, IgnorePaddingAveragePooling2dSize3Uint8Test)
surmeh01bceff2f2018-03-29 16:29:27 +0100326ARMNN_AUTO_TEST_CASE(IgnorePaddingAveragePooling2dSize3x2Stride2x2,
327 IgnorePaddingAveragePooling2dSize3x2Stride2x2Test, false)
328ARMNN_AUTO_TEST_CASE(IgnorePaddingAveragePooling2dSize3x2Stride2x2NoPadding,
329 IgnorePaddingAveragePooling2dSize3x2Stride2x2Test,
330 true)
telsoa014fcda012018-03-09 14:13:49 +0000331
332ARMNN_AUTO_TEST_CASE(IgnorePaddingSimpleL2Pooling2d, IgnorePaddingSimpleL2Pooling2dTest)
333ARMNN_AUTO_TEST_CASE(UNSUPPORTED_IgnorePaddingSimpleL2Pooling2dUint8, IgnorePaddingSimpleL2Pooling2dUint8Test)
334ARMNN_AUTO_TEST_CASE(IgnorePaddingL2Pooling2dSize3, IgnorePaddingL2Pooling2dSize3Test)
335ARMNN_AUTO_TEST_CASE(UNSUPPORTED_IgnorePaddingL2Pooling2dSize3Uint8, IgnorePaddingL2Pooling2dSize3Uint8Test)
336
337// Activation
338ARMNN_AUTO_TEST_CASE(ConstantLinearActivation, ConstantLinearActivationTest)
339
Narumol Prangnawarat65d30962019-03-14 11:55:03 +0000340// ReLu
341ARMNN_AUTO_TEST_CASE(ReLu1Uint8, BoundedReLuUint8UpperAndLowerBoundTest)
342ARMNN_AUTO_TEST_CASE(ReLu6Uint8, BoundedReLuUint8UpperBoundOnlyTest)
343
Narumol Prangnawaratb98bbcf2019-04-15 14:14:27 +0100344// Sigmoid
345ARMNN_AUTO_TEST_CASE(SimpleSigmoid, SimpleSigmoidTest)
346ARMNN_AUTO_TEST_CASE(SimpleSigmoidUint8, SimpleSigmoidUint8Test)
347
Narumol Prangnawarat65d30962019-03-14 11:55:03 +0000348// Softmax
telsoa014fcda012018-03-09 14:13:49 +0000349ARMNN_AUTO_TEST_CASE(SimpleSoftmaxBeta1, SimpleSoftmaxTest, 1.0f)
350ARMNN_AUTO_TEST_CASE(SimpleSoftmaxBeta2, SimpleSoftmaxTest, 2.0f)
telsoa014fcda012018-03-09 14:13:49 +0000351ARMNN_AUTO_TEST_CASE(SimpleSoftmaxBeta1Uint8, SimpleSoftmaxUint8Test, 1.0f)
352ARMNN_AUTO_TEST_CASE(SimpleSoftmaxBeta2Uint8, SimpleSoftmaxUint8Test, 2.0f)
353
Narumol Prangnawarat65d30962019-03-14 11:55:03 +0000354ARMNN_AUTO_TEST_CASE(Simple3dSoftmaxBeta1, Simple3dSoftmaxTest, 1.0f)
355ARMNN_AUTO_TEST_CASE(Simple3dSoftmaxBeta1Uint8, Simple3dSoftmaxUint8Test, 1.0f)
356
357ARMNN_AUTO_TEST_CASE(Simple4dSoftmaxBeta1, Simple4dSoftmaxTest, 1.0f)
358ARMNN_AUTO_TEST_CASE(Simple4dSoftmaxBeta1Uint8, Simple4dSoftmaxUint8Test, 1.0f)
telsoa014fcda012018-03-09 14:13:49 +0000359
Ellen Norris-Thompson29794572019-06-26 16:40:36 +0100360// SpaceToDepth
361ARMNN_AUTO_TEST_CASE(SpaceToDepthNCHWAsymmQ8, SpaceToDepthNCHWAsymmQ8Test)
362ARMNN_AUTO_TEST_CASE(SpaceToDepthNHWCAsymmQ8, SpaceToDepthNHWCAsymmQ8Test)
363
364ARMNN_AUTO_TEST_CASE(SpaceToDepthNHWC1Float32, SpaceToDepthNHWCFloat32Test1)
365ARMNN_AUTO_TEST_CASE(SpaceToDepthNCHW1Float32, SpaceToDepthNCHWFloat32Test1)
366
367ARMNN_AUTO_TEST_CASE(SpaceToDepthNHWC2Float32, SpaceToDepthNHWCFloat32Test2)
368ARMNN_AUTO_TEST_CASE(SpaceToDepthNCHW2Float32, SpaceToDepthNCHWFloat32Test2)
369
370ARMNN_AUTO_TEST_CASE(SpaceToDepthNHWCQSymm16, SpaceToDepthNHWCQSymm16Test)
371ARMNN_AUTO_TEST_CASE(SpaceToDepthNCHWQSymm16, SpaceToDepthNCHWQSymm16Test)
372
telsoa01c577f2c2018-08-31 09:22:23 +0100373// Splitter
374ARMNN_AUTO_TEST_CASE(SimpleSplitter, SplitterTest)
375ARMNN_AUTO_TEST_CASE(SimpleSplitterUint8, SplitterUint8Test)
telsoa014fcda012018-03-09 14:13:49 +0000376
377ARMNN_AUTO_TEST_CASE(CopyViaSplitter, CopyViaSplitterTest)
378ARMNN_AUTO_TEST_CASE(CopyViaSplitterUint8, CopyViaSplitterUint8Test)
379
Jim Flynn4ed6c832019-05-20 11:02:46 +0100380// Concat
381ARMNN_AUTO_TEST_CASE(SimpleConcat, ConcatTest)
382ARMNN_AUTO_TEST_CASE(ConcatUint8, ConcatUint8Test)
Narumol Prangnawarat71c80b12019-06-17 17:45:43 +0100383ARMNN_AUTO_TEST_CASE(ConcatUint8DifferentInputOutputQParam,
384 ConcatDifferentInputOutputQParamTest<armnn::DataType::QuantisedAsymm8>, false)
telsoa014fcda012018-03-09 14:13:49 +0000385
386// Fully Connected
387ARMNN_AUTO_TEST_CASE(SimpleFullyConnected, FullyConnectedFloat32Test, false, false)
388ARMNN_AUTO_TEST_CASE(SimpleFullyConnectedWithBias, FullyConnectedFloat32Test, true, false)
389ARMNN_AUTO_TEST_CASE(SimpleFullyConnectedWithTranspose, FullyConnectedFloat32Test, false, true)
390ARMNN_AUTO_TEST_CASE(FullyConnectedLarge, FullyConnectedLargeTest, false)
391ARMNN_AUTO_TEST_CASE(FullyConnectedLargeTransposed, FullyConnectedLargeTest, true)
Francis Murtagh46c09d02019-05-28 08:15:28 +0100392ARMNN_AUTO_TEST_CASE(FullyConnectedUint8, FullyConnectedTest<armnn::DataType::QuantisedAsymm8>, false)
393ARMNN_AUTO_TEST_CASE(FullyConnectedBiasedUint8, FullyConnectedTest<armnn::DataType::QuantisedAsymm8>, true)
telsoa014fcda012018-03-09 14:13:49 +0000394
395// Add
396ARMNN_AUTO_TEST_CASE(SimpleAdd, AdditionTest)
David Beckbc392452018-09-10 14:47:28 +0100397ARMNN_AUTO_TEST_CASE(AddBroadcast, AdditionBroadcastTest)
telsoa014fcda012018-03-09 14:13:49 +0000398ARMNN_AUTO_TEST_CASE(AddBroadcast1Element, AdditionBroadcast1ElementTest)
399
David Beckbc392452018-09-10 14:47:28 +0100400// Sub
401ARMNN_AUTO_TEST_CASE(SimpleSub, SubtractionTest)
Mohamed Nour Abouelseoud3d93bc42018-11-21 10:35:17 +0000402ARMNN_AUTO_TEST_CASE(SubBroadcast1Element, SubtractionBroadcast1ElementTest)
403ARMNN_AUTO_TEST_CASE(SubBroadcast, SubtractionBroadcastTest)
Conor Kennedyb99480b2019-03-08 08:24:41 +0000404ARMNN_AUTO_TEST_CASE(SubtractionUint8, SubtractionUint8Test)
405ARMNN_AUTO_TEST_CASE(SubBroadcastUint8, SubtractionBroadcastUint8Test)
406ARMNN_AUTO_TEST_CASE(SubBroadcast1ElementUint8, SubtractionBroadcast1ElementUint8Test)
David Beckbc392452018-09-10 14:47:28 +0100407
telsoa014fcda012018-03-09 14:13:49 +0000408// Mul
409ARMNN_AUTO_TEST_CASE(SimpleMultiplication, MultiplicationTest)
surmeh013537c2c2018-05-18 16:31:43 +0100410ARMNN_AUTO_TEST_CASE(MultiplicationBroadcast1Element, MultiplicationBroadcast1ElementTest)
411ARMNN_AUTO_TEST_CASE(MultiplicationBroadcast1DVector, MultiplicationBroadcast1DVectorTest)
Conor Kennedyb99480b2019-03-08 08:24:41 +0000412ARMNN_AUTO_TEST_CASE(MultiplicationUint8, MultiplicationUint8Test)
413ARMNN_AUTO_TEST_CASE(MultiplicationBroadcast1ElementUint8, MultiplicationBroadcast1ElementUint8Test)
414ARMNN_AUTO_TEST_CASE(MultiplicationBroadcast1DVectorUint8, MultiplicationBroadcast1DVectorUint8Test)
telsoa014fcda012018-03-09 14:13:49 +0000415
416// Batch Norm
417ARMNN_AUTO_TEST_CASE(BatchNorm, BatchNormTest)
Nikhil Rajd1340932018-10-18 14:27:50 +0100418ARMNN_AUTO_TEST_CASE(BatchNormNhwc, BatchNormNhwcTest)
telsoa014fcda012018-03-09 14:13:49 +0000419
420// Constant
421ARMNN_AUTO_TEST_CASE(Constant, ConstantTest)
Nina Drozd58ef2c62019-05-16 12:09:18 +0100422ARMNN_AUTO_TEST_CASE(ConstantUint8, ConstantUint8SimpleQuantizationScaleNoOffsetTest)
telsoa014fcda012018-03-09 14:13:49 +0000423
424// Concatenation
425ARMNN_AUTO_TEST_CASE(Concatenation1d, Concatenation1dTest)
426ARMNN_AUTO_TEST_CASE(Concatenation1dUint8, Concatenation1dUint8Test)
427
428ARMNN_AUTO_TEST_CASE(Concatenation2dDim0, Concatenation2dDim0Test)
429ARMNN_AUTO_TEST_CASE(Concatenation2dDim0Uint8, Concatenation2dDim0Uint8Test)
430ARMNN_AUTO_TEST_CASE(Concatenation2dDim1, Concatenation2dDim1Test)
431ARMNN_AUTO_TEST_CASE(Concatenation2dDim1Uint8, Concatenation2dDim1Uint8Test)
432
433ARMNN_AUTO_TEST_CASE(Concatenation2dDim0DiffInputDims, Concatenation2dDim0DiffInputDimsTest)
434ARMNN_AUTO_TEST_CASE(Concatenation2dDim0DiffInputDimsUint8, Concatenation2dDim0DiffInputDimsUint8Test)
435ARMNN_AUTO_TEST_CASE(Concatenation2dDim1DiffInputDims, Concatenation2dDim1DiffInputDimsTest)
436ARMNN_AUTO_TEST_CASE(Concatenation2dDim1DiffInputDimsUint8, Concatenation2dDim1DiffInputDimsUint8Test)
437
438ARMNN_AUTO_TEST_CASE(Concatenation3dDim0, Concatenation3dDim0Test)
439ARMNN_AUTO_TEST_CASE(Concatenation3dDim0Uint8, Concatenation3dDim0Uint8Test)
440ARMNN_AUTO_TEST_CASE(Concatenation3dDim1, Concatenation3dDim1Test)
441ARMNN_AUTO_TEST_CASE(Concatenation3dDim1Uint8, Concatenation3dDim1Uint8Test)
narpra015cdda352018-11-19 15:30:27 +0000442ARMNN_AUTO_TEST_CASE(Concatenation3dDim2, Concatenation3dDim2Test, false)
443ARMNN_AUTO_TEST_CASE(Concatenation3dDim2Uint8, Concatenation3dDim2Uint8Test, false)
telsoa014fcda012018-03-09 14:13:49 +0000444
445ARMNN_AUTO_TEST_CASE(Concatenation3dDim0DiffInputDims, Concatenation3dDim0DiffInputDimsTest)
446ARMNN_AUTO_TEST_CASE(Concatenation3dDim0DiffInputDimsUint8, Concatenation3dDim0DiffInputDimsUint8Test)
447ARMNN_AUTO_TEST_CASE(Concatenation3dDim1DiffInputDims, Concatenation3dDim1DiffInputDimsTest)
448ARMNN_AUTO_TEST_CASE(Concatenation3dDim1DiffInputDimsUint8, Concatenation3dDim1DiffInputDimsUint8Test)
narpra015cdda352018-11-19 15:30:27 +0000449ARMNN_AUTO_TEST_CASE(Concatenation3dDim2DiffInputDims, Concatenation3dDim2DiffInputDimsTest, false)
450ARMNN_AUTO_TEST_CASE(Concatenation3dDim2DiffInputDimsUint8, Concatenation3dDim2DiffInputDimsUint8Test, false)
telsoa014fcda012018-03-09 14:13:49 +0000451
narpra015cdda352018-11-19 15:30:27 +0000452ARMNN_AUTO_TEST_CASE(Concatenation4dDim0, Concatenation4dDim0Test)
453ARMNN_AUTO_TEST_CASE(Concatenation4dDim1, Concatenation4dDim1Test)
454ARMNN_AUTO_TEST_CASE(Concatenation4dDim3, Concatenation4dDim3Test, false)
455ARMNN_AUTO_TEST_CASE(Concatenation4dDim0Uint8, Concatenation4dDim0Uint8Test)
456ARMNN_AUTO_TEST_CASE(Concatenation4dDim1Uint8, Concatenation4dDim1Uint8Test)
457ARMNN_AUTO_TEST_CASE(Concatenation4dDim3Uint8, Concatenation4dDim3Uint8Test, false)
458
459ARMNN_AUTO_TEST_CASE(Concatenation4dDiffShapeDim0, Concatenation4dDiffShapeDim0Test)
460ARMNN_AUTO_TEST_CASE(Concatenation4dDiffShapeDim1, Concatenation4dDiffShapeDim1Test)
461ARMNN_AUTO_TEST_CASE(Concatenation4dDiffShapeDim3, Concatenation4dDiffShapeDim3Test, false)
462ARMNN_AUTO_TEST_CASE(Concatenation4dDiffShapeDim0Uint8, Concatenation4dDiffShapeDim0Uint8Test)
463ARMNN_AUTO_TEST_CASE(Concatenation4dDiffShapeDim1Uint8, Concatenation4dDiffShapeDim1Uint8Test)
464ARMNN_AUTO_TEST_CASE(Concatenation4dDiffShapeDim3Uint8, Concatenation4dDiffShapeDim3Uint8Test, false)
telsoa014fcda012018-03-09 14:13:49 +0000465// L2 Normalization
jimfly013aab7c32018-11-12 13:32:08 +0000466ARMNN_AUTO_TEST_CASE(L2Normalization1d, L2Normalization1dTest, armnn::DataLayout::NCHW)
467ARMNN_AUTO_TEST_CASE(L2Normalization2d, L2Normalization2dTest, armnn::DataLayout::NCHW)
468ARMNN_AUTO_TEST_CASE(L2Normalization3d, L2Normalization3dTest, armnn::DataLayout::NCHW)
469ARMNN_AUTO_TEST_CASE(L2Normalization4d, L2Normalization4dTest, armnn::DataLayout::NCHW)
Matteo Martincigh539b44d2018-10-01 09:26:39 +0100470
jimfly013aab7c32018-11-12 13:32:08 +0000471ARMNN_AUTO_TEST_CASE(L2Normalization1dNhwc, L2Normalization1dTest, armnn::DataLayout::NHWC)
472ARMNN_AUTO_TEST_CASE(L2Normalization2dNhwc, L2Normalization2dTest, armnn::DataLayout::NHWC)
473ARMNN_AUTO_TEST_CASE(L2Normalization3dNhwc, L2Normalization3dTest, armnn::DataLayout::NHWC)
474ARMNN_AUTO_TEST_CASE(L2Normalization4dNhwc, L2Normalization4dTest, armnn::DataLayout::NHWC)
telsoa014fcda012018-03-09 14:13:49 +0000475
Matthew Jackson82b15ed2019-07-25 16:14:30 +0100476ARMNN_AUTO_TEST_CASE(L2Normalization2dShape, L2Normalization2dShapeTest);
477
Ferran Balaguer0c64f462019-06-18 16:32:30 +0100478ARMNN_AUTO_TEST_CASE(L2NormalizationDefaultEpsilon, L2NormalizationDefaultEpsilonTest, armnn::DataLayout::NCHW)
479ARMNN_AUTO_TEST_CASE(L2NormalizationNonDefaultEpsilon, L2NormalizationNonDefaultEpsilonTest, armnn::DataLayout::NCHW)
480
telsoa014fcda012018-03-09 14:13:49 +0000481// Floor
James Conroy83735b12019-05-30 16:36:59 +0100482ARMNN_AUTO_TEST_CASE(SimpleFloor, SimpleFloorTest<armnn::DataType::Float32>)
telsoa014fcda012018-03-09 14:13:49 +0000483
kevmay01eed85922019-01-28 08:37:25 +0000484// Greater
485ARMNN_AUTO_TEST_CASE(SimpleGreater, GreaterSimpleTest)
486ARMNN_AUTO_TEST_CASE(GreaterBroadcast1Element, GreaterBroadcast1ElementTest)
487ARMNN_AUTO_TEST_CASE(GreaterBroadcast1DVector, GreaterBroadcast1DVectorTest)
488ARMNN_AUTO_TEST_CASE(GreaterUint8, GreaterUint8Test)
489ARMNN_AUTO_TEST_CASE(GreaterBroadcast1ElementUint8, GreaterBroadcast1ElementUint8Test)
490ARMNN_AUTO_TEST_CASE(GreaterBroadcast1DVectorUint8, GreaterBroadcast1DVectorUint8Test)
491
telsoa014fcda012018-03-09 14:13:49 +0000492// Reshape
Nina Drozd8ed4b8c2019-05-29 10:41:04 +0100493ARMNN_AUTO_TEST_CASE(SimpleReshapeFloat32, SimpleReshapeTest<armnn::DataType::Float32>)
494ARMNN_AUTO_TEST_CASE(SimpleReshapeUint8, SimpleReshapeTest<armnn::DataType::QuantisedAsymm8>)
telsoa014fcda012018-03-09 14:13:49 +0000495
Éanna Ó Catháin12055742019-01-25 10:01:40 +0000496// Pad
497ARMNN_AUTO_TEST_CASE(PadFloat322d, PadFloat322dTest)
FinnWilliamsArma5b5bbf2019-07-08 14:11:33 +0100498ARMNN_AUTO_TEST_CASE(PadFloat322dCustomPadding, PadFloat322dCustomPaddingTest)
Éanna Ó Catháin12055742019-01-25 10:01:40 +0000499ARMNN_AUTO_TEST_CASE(PadFloat323d, PadFloat323dTest)
500ARMNN_AUTO_TEST_CASE(PadFloat324d, PadFloat324dTest)
501
Teresa Charlinec8e1982019-07-02 16:24:09 +0100502ARMNN_AUTO_TEST_CASE(PadUint82d, PadUint82dTest)
FinnWilliamsArma5b5bbf2019-07-08 14:11:33 +0100503ARMNN_AUTO_TEST_CASE(PadUint82dCustomPadding, PadUint82dCustomPaddingTest)
Teresa Charlinec8e1982019-07-02 16:24:09 +0100504ARMNN_AUTO_TEST_CASE(PadUint83d, PadUint83dTest)
505ARMNN_AUTO_TEST_CASE(PadUint84d, PadUint84dTest)
506
FinnWilliamsArm8b797a82019-07-09 16:01:41 +0100507ARMNN_AUTO_TEST_CASE(Pad2dQSymm16, Pad2dTestCommon<armnn::DataType::QuantisedSymm16>, 2.0f, 0, 0.0f)
508ARMNN_AUTO_TEST_CASE(Pad2dQSymm16CustomPadding, Pad2dTestCommon<armnn::DataType::QuantisedSymm16>, 2.0f, 0, 1.0f)
509ARMNN_AUTO_TEST_CASE(Pad3dQSymm16, Pad3dTestCommon<armnn::DataType::QuantisedSymm16>, 2.0f, 0)
510ARMNN_AUTO_TEST_CASE(Pad4dQSymm16, Pad4dTestCommon<armnn::DataType::QuantisedSymm16>, 2.0f, 0)
511
telsoa014fcda012018-03-09 14:13:49 +0000512// Permute
Narumol Prangnawarat86bb4e12019-07-08 11:36:05 +0100513ARMNN_AUTO_TEST_CASE(SimplePermuteFloat32, SimplePermuteTest<armnn::DataType::Float32>)
514ARMNN_AUTO_TEST_CASE(PermuteFloat32ValueSet1Test, PermuteValueSet1Test<armnn::DataType::Float32>)
515ARMNN_AUTO_TEST_CASE(PermuteFloat32ValueSet2Test, PermuteValueSet2Test<armnn::DataType::Float32>)
516ARMNN_AUTO_TEST_CASE(PermuteFloat32ValueSet3Test, PermuteValueSet3Test<armnn::DataType::Float32>)
517ARMNN_AUTO_TEST_CASE(SimplePermuteQASymm8, SimplePermuteTest<armnn::DataType::QuantisedAsymm8>)
518ARMNN_AUTO_TEST_CASE(PermuteQASymm8ValueSet1Test, PermuteValueSet1Test<armnn::DataType::QuantisedAsymm8>)
519ARMNN_AUTO_TEST_CASE(PermuteQASymm8ValueSet2Test, PermuteValueSet2Test<armnn::DataType::QuantisedAsymm8>)
520ARMNN_AUTO_TEST_CASE(PermuteQASymm8ValueSet3Test, PermuteValueSet3Test<armnn::DataType::QuantisedAsymm8>)
surmeh01bceff2f2018-03-29 16:29:27 +0100521
Les Bellde9011b2018-10-03 10:37:52 +0100522// Lstm
523ARMNN_AUTO_TEST_CASE(LstmLayerFloat32WithCifgWithPeepholeNoProjection,
524 LstmLayerFloat32WithCifgWithPeepholeNoProjectionTest)
525ARMNN_AUTO_TEST_CASE(LstmLayerFloat32NoCifgNoPeepholeNoProjection,
526 LstmLayerFloat32NoCifgNoPeepholeNoProjectionTest)
527ARMNN_AUTO_TEST_CASE(LstmLayerFloat32NoCifgWithPeepholeWithProjection,
528 LstmLayerFloat32NoCifgWithPeepholeWithProjectionTest)
Jan Eilersad5293a2019-07-08 09:57:55 +0100529ARMNN_AUTO_TEST_CASE(LstmLayerFloat32NoCifgWithPeepholeWithProjectionWithLayerNorm,
530 LstmLayerFloat32NoCifgWithPeepholeWithProjectionWithLayerNormTest)
Les Bellde9011b2018-10-03 10:37:52 +0100531
Francis Murtagh4fc3c482019-08-02 13:20:54 +0100532ARMNN_AUTO_TEST_CASE(QuantizedLstm, QuantizedLstmTest)
533
Matthew Benthamfd899962018-12-31 15:49:42 +0000534// Mean
James Conroy4d1ff582019-06-10 17:06:39 +0100535ARMNN_AUTO_TEST_CASE(MeanSimpleFloat32, MeanSimpleTest<armnn::DataType::Float32>)
536ARMNN_AUTO_TEST_CASE(MeanSimpleAxisFloat32, MeanSimpleAxisTest<armnn::DataType::Float32>)
537ARMNN_AUTO_TEST_CASE(MeanKeepDimsFloat32, MeanKeepDimsTest<armnn::DataType::Float32>)
538ARMNN_AUTO_TEST_CASE(MeanMultipleDimsFloat32, MeanMultipleDimsTest<armnn::DataType::Float32>)
539ARMNN_AUTO_TEST_CASE(MeanVts1Float32, MeanVts1Test<armnn::DataType::Float32>)
540ARMNN_AUTO_TEST_CASE(MeanVts2Float32, MeanVts2Test<armnn::DataType::Float32>)
541ARMNN_AUTO_TEST_CASE(MeanVts3Float32, MeanVts3Test<armnn::DataType::Float32>)
Matthew Benthamfd899962018-12-31 15:49:42 +0000542
James Conroy4d1ff582019-06-10 17:06:39 +0100543ARMNN_AUTO_TEST_CASE(MeanSimpleQuantisedAsymm8, MeanSimpleTest<armnn::DataType::QuantisedAsymm8>)
544ARMNN_AUTO_TEST_CASE(MeanSimpleAxisQuantisedAsymm8, MeanSimpleAxisTest<armnn::DataType::QuantisedAsymm8>)
545ARMNN_AUTO_TEST_CASE(MeanKeepDimsQuantisedAsymm8, MeanKeepDimsTest<armnn::DataType::QuantisedAsymm8>)
546ARMNN_AUTO_TEST_CASE(MeanMultipleDimsQuantisedAsymm8, MeanMultipleDimsTest<armnn::DataType::QuantisedAsymm8>)
547ARMNN_AUTO_TEST_CASE(MeanVts1QuantisedAsymm8, MeanVts1Test<armnn::DataType::QuantisedAsymm8>)
548ARMNN_AUTO_TEST_CASE(MeanVts2QuantisedAsymm8, MeanVts2Test<armnn::DataType::QuantisedAsymm8>)
549ARMNN_AUTO_TEST_CASE(MeanVts3QuantisedAsymm8, MeanVts3Test<armnn::DataType::QuantisedAsymm8>)
Matthew Benthamfd899962018-12-31 15:49:42 +0000550
Nattapat Chaimanowong4e6597a2018-12-20 14:14:06 +0000551// Max
552ARMNN_AUTO_TEST_CASE(SimpleMaximum, MaximumSimpleTest)
553ARMNN_AUTO_TEST_CASE(MaximumBroadcast1Element, MaximumBroadcast1ElementTest)
554ARMNN_AUTO_TEST_CASE(MaximumBroadcast1DVector, MaximumBroadcast1DVectorTest)
555ARMNN_AUTO_TEST_CASE(MaximumUint8, MaximumUint8Test)
556ARMNN_AUTO_TEST_CASE(MaximumBroadcast1ElementUint8, MaximumBroadcast1ElementUint8Test)
557ARMNN_AUTO_TEST_CASE(MaximumBroadcast1DVectorUint8, MaximumBroadcast1DVectorUint8Test)
558
Conor Kennedy54b21692019-01-09 07:57:38 +0000559// Min
560ARMNN_AUTO_TEST_CASE(SimpleMinimum1, MinimumBroadcast1ElementTest1)
561ARMNN_AUTO_TEST_CASE(SimpleMinimum2, MinimumBroadcast1ElementTest2)
562ARMNN_AUTO_TEST_CASE(Minimum1DVectorUint8, MinimumBroadcast1DVectorUint8Test)
563
narpra0155a97bc2018-10-02 14:35:53 +0100564// Normalization
565ARMNN_AUTO_TEST_CASE(SimpleNormalizationAcross, SimpleNormalizationAcrossTest)
566ARMNN_AUTO_TEST_CASE(SimpleNormalizationWithin, SimpleNormalizationWithinTest)
567ARMNN_AUTO_TEST_CASE(SimpleNormalizationAcrossNhwc, SimpleNormalizationAcrossNhwcTest)
568
Sadik Armaganc625f002018-12-17 11:32:16 +0000569// Resize Bilinear - NCHW data layout
Ellen Norris-Thompsonc4223d12019-06-10 14:15:12 +0100570ARMNN_AUTO_TEST_CASE(SimpleResizeBilinear, SimpleResizeBilinearTest<armnn::DataType::Float32>, armnn::DataLayout::NCHW)
571ARMNN_AUTO_TEST_CASE(ResizeBilinearNop, ResizeBilinearNopTest<armnn::DataType::Float32>, armnn::DataLayout::NCHW)
572ARMNN_AUTO_TEST_CASE(ResizeBilinearSqMin, ResizeBilinearSqMinTest<armnn::DataType::Float32>, armnn::DataLayout::NCHW)
573ARMNN_AUTO_TEST_CASE(ResizeBilinearMin, ResizeBilinearMinTest<armnn::DataType::Float32>, armnn::DataLayout::NCHW)
574ARMNN_AUTO_TEST_CASE(ResizeBilinearMag, ResizeBilinearMagTest<armnn::DataType::Float32>, armnn::DataLayout::NCHW)
Sadik Armaganc625f002018-12-17 11:32:16 +0000575
Ellen Norris-Thompsonc4223d12019-06-10 14:15:12 +0100576ARMNN_AUTO_TEST_CASE(SimpleResizeBilinearUint8,
577 SimpleResizeBilinearTest<armnn::DataType::QuantisedAsymm8>,
578 armnn::DataLayout::NCHW)
579ARMNN_AUTO_TEST_CASE(ResizeBilinearNopUint8,
580 ResizeBilinearNopTest<armnn::DataType::QuantisedAsymm8>,
581 armnn::DataLayout::NCHW)
582ARMNN_AUTO_TEST_CASE(ResizeBilinearSqMinUint8,
583 ResizeBilinearSqMinTest<armnn::DataType::QuantisedAsymm8>,
584 armnn::DataLayout::NCHW)
585ARMNN_AUTO_TEST_CASE(ResizeBilinearMinUint8,
586 ResizeBilinearMinTest<armnn::DataType::QuantisedAsymm8>,
587 armnn::DataLayout::NCHW)
588ARMNN_AUTO_TEST_CASE(ResizeBilinearMagUint8,
589 ResizeBilinearMagTest<armnn::DataType::QuantisedAsymm8>,
590 armnn::DataLayout::NCHW)
Conor Kennedydc1c0822019-02-01 07:23:17 +0000591
Sadik Armaganc625f002018-12-17 11:32:16 +0000592// Resize Bilinear - NHWC data layout
Ellen Norris-Thompsonc4223d12019-06-10 14:15:12 +0100593ARMNN_AUTO_TEST_CASE(ResizeBilinearNopNhwc,
594 ResizeBilinearNopTest<armnn::DataType::Float32>,
595 armnn::DataLayout::NHWC)
596ARMNN_AUTO_TEST_CASE(SimpleResizeBilinearNhwc,
597 SimpleResizeBilinearTest<armnn::DataType::Float32>,
598 armnn::DataLayout::NHWC)
599ARMNN_AUTO_TEST_CASE(ResizeBilinearSqMinNhwc,
600 ResizeBilinearSqMinTest<armnn::DataType::Float32>,
601 armnn::DataLayout::NHWC)
602ARMNN_AUTO_TEST_CASE(ResizeBilinearMinNhwc,
603 ResizeBilinearMinTest<armnn::DataType::Float32>,
604 armnn::DataLayout::NHWC)
605ARMNN_AUTO_TEST_CASE(ResizeBilinearMagNhwc,
606 ResizeBilinearMagTest<armnn::DataType::Float32>,
607 armnn::DataLayout::NHWC)
608
609ARMNN_AUTO_TEST_CASE(ResizeBilinearNopUint8Nhwc,
610 ResizeBilinearNopTest<armnn::DataType::QuantisedAsymm8>,
611 armnn::DataLayout::NHWC)
612ARMNN_AUTO_TEST_CASE(SimpleResizeBilinearUint8Nhwc,
613 SimpleResizeBilinearTest<armnn::DataType::QuantisedAsymm8>,
614 armnn::DataLayout::NHWC)
615ARMNN_AUTO_TEST_CASE(ResizeBilinearSqMinUint8Nhwc,
616 ResizeBilinearSqMinTest<armnn::DataType::QuantisedAsymm8>,
617 armnn::DataLayout::NHWC)
618ARMNN_AUTO_TEST_CASE(ResizeBilinearMinUint8Nhwc,
619 ResizeBilinearMinTest<armnn::DataType::QuantisedAsymm8>,
620 armnn::DataLayout::NHWC)
621ARMNN_AUTO_TEST_CASE(ResizeBilinearMagUint8Nhwc,
622 ResizeBilinearMagTest<armnn::DataType::QuantisedAsymm8>,
623 armnn::DataLayout::NHWC)
Sadik Armaganc625f002018-12-17 11:32:16 +0000624
Ellen Norris-Thompson37e68682019-07-15 14:23:30 +0100625// Resize NearestNeighbor - NCHW
626ARMNN_AUTO_TEST_CASE(SimpleResizeNearestNeighbor,
627 SimpleResizeNearestNeighborTest<armnn::DataType::Float32>,
628 armnn::DataLayout::NCHW)
629ARMNN_AUTO_TEST_CASE(ResizeNearestNeighborNop,
630 ResizeNearestNeighborNopTest<armnn::DataType::Float32>,
631 armnn::DataLayout::NCHW)
632ARMNN_AUTO_TEST_CASE(ResizeNearestNeighborSqMin,
633 ResizeNearestNeighborSqMinTest<armnn::DataType::Float32>,
634 armnn::DataLayout::NCHW)
635ARMNN_AUTO_TEST_CASE(ResizeNearestNeighborMin,
636 ResizeNearestNeighborMinTest<armnn::DataType::Float32>,
637 armnn::DataLayout::NCHW)
638ARMNN_AUTO_TEST_CASE(ResizeNearestNeighborMag,
639 ResizeNearestNeighborMagTest<armnn::DataType::Float32>,
640 armnn::DataLayout::NCHW, 0.1f, 50, 0.1f, 50)
641
642ARMNN_AUTO_TEST_CASE(SimpleResizeNearestNeighborUint8,
643 SimpleResizeNearestNeighborTest<armnn::DataType::QuantisedAsymm8>,
644 armnn::DataLayout::NCHW)
645ARMNN_AUTO_TEST_CASE(ResizeNearestNeighborNopUint8,
646 ResizeNearestNeighborNopTest<armnn::DataType::QuantisedAsymm8>,
647 armnn::DataLayout::NCHW)
648ARMNN_AUTO_TEST_CASE(ResizeNearestNeighborSqMinUint8,
649 ResizeNearestNeighborSqMinTest<armnn::DataType::QuantisedAsymm8>,
650 armnn::DataLayout::NCHW)
651ARMNN_AUTO_TEST_CASE(ResizeNearestNeighborMinUint8,
652 ResizeNearestNeighborMinTest<armnn::DataType::QuantisedAsymm8>,
653 armnn::DataLayout::NCHW)
654ARMNN_AUTO_TEST_CASE(ResizeNearestNeighborMagUint8,
655 ResizeNearestNeighborMagTest<armnn::DataType::QuantisedAsymm8>,
656 armnn::DataLayout::NCHW, 0.1f, 50, 0.1f, 50)
657
658// Resize NearestNeighbor - NHWC
659ARMNN_AUTO_TEST_CASE(ResizeNearestNeighborNopNhwc,
660 ResizeNearestNeighborNopTest<armnn::DataType::Float32>,
661 armnn::DataLayout::NHWC)
662ARMNN_AUTO_TEST_CASE(SimpleResizeNearestNeighborNhwc,
663 SimpleResizeNearestNeighborTest<armnn::DataType::Float32>,
664 armnn::DataLayout::NHWC)
665ARMNN_AUTO_TEST_CASE(ResizeNearestNeighborSqMinNhwc,
666 ResizeNearestNeighborSqMinTest<armnn::DataType::Float32>,
667 armnn::DataLayout::NHWC)
668ARMNN_AUTO_TEST_CASE(ResizeNearestNeighborMinNhwc,
669 ResizeNearestNeighborMinTest<armnn::DataType::Float32>,
670 armnn::DataLayout::NHWC)
671ARMNN_AUTO_TEST_CASE(ResizeNearestNeighborMagNhwc,
672 ResizeNearestNeighborMagTest<armnn::DataType::Float32>,
673 armnn::DataLayout::NHWC, 0.1f, 50, 0.1f, 50)
674
675ARMNN_AUTO_TEST_CASE(ResizeNearestNeighborNopUint8Nhwc,
676 ResizeNearestNeighborNopTest<armnn::DataType::QuantisedAsymm8>,
677 armnn::DataLayout::NHWC)
678ARMNN_AUTO_TEST_CASE(SimpleResizeNearestNeighborUint8Nhwc,
679 SimpleResizeNearestNeighborTest<armnn::DataType::QuantisedAsymm8>,
680 armnn::DataLayout::NHWC)
681ARMNN_AUTO_TEST_CASE(ResizeNearestNeighborSqMinUint8Nhwc,
682 ResizeNearestNeighborSqMinTest<armnn::DataType::QuantisedAsymm8>,
683 armnn::DataLayout::NHWC)
684ARMNN_AUTO_TEST_CASE(ResizeNearestNeighborMinUint8Nhwc,
685 ResizeNearestNeighborMinTest<armnn::DataType::QuantisedAsymm8>,
686 armnn::DataLayout::NHWC)
687ARMNN_AUTO_TEST_CASE(ResizeNearestNeighborMagUint8Nhwc,
688 ResizeNearestNeighborMagTest<armnn::DataType::QuantisedAsymm8>,
689 armnn::DataLayout::NHWC, 0.1f, 50, 0.1f, 50)
690
Sadik Armaganfabc2892019-05-31 09:05:11 +0100691// Quantize
692ARMNN_AUTO_TEST_CASE(QuantizeSimpleUint8, QuantizeSimpleUint8Test)
693ARMNN_AUTO_TEST_CASE(QuantizeClampUint8, QuantizeClampUint8Test)
694
Nikhil Raj9b461482019-07-03 15:58:31 +0100695// PReLU
696ARMNN_AUTO_TEST_CASE(PreluFloat32, PreluTest<armnn::DataType::Float32>)
697ARMNN_AUTO_TEST_CASE(PreluUint8, PreluTest<armnn::DataType::QuantisedAsymm8>)
698
Matthew Jackson87f65ea2019-08-01 10:01:34 +0100699// Stack
700ARMNN_AUTO_TEST_CASE(Stack0Axis, Stack0AxisTest<armnn::DataType::Float32>)
701ARMNN_AUTO_TEST_CASE(Stack4dOutput1Axis, Stack4dOutput1AxisTest<armnn::DataType::Float32>)
702ARMNN_AUTO_TEST_CASE(Stack4dOutput2Axis, Stack4dOutput2AxisTest<armnn::DataType::Float32>)
703ARMNN_AUTO_TEST_CASE(Stack4dOutput3Axis, Stack4dOutput3AxisTest<armnn::DataType::Float32>)
704ARMNN_AUTO_TEST_CASE(Stack3dOutput1Axis3Input, Stack3dOutput1Axis3InputTest<armnn::DataType::Float32>)
705
telsoa014fcda012018-03-09 14:13:49 +0000706// ============================================================================
707// COMPARE tests
708
709ARMNN_COMPARE_REF_AUTO_TEST_CASE(CompareConv2dWithReference, CompareConvolution2dTest)
710
jimfly017af00da2018-10-31 14:43:53 +0000711ARMNN_COMPARE_REF_AUTO_TEST_CASE(CompareDepthwiseConv2dWithReferenceFloat32,
Nattapat Chaimanowong649dd952019-01-22 16:10:44 +0000712 CompareDepthwiseConvolution2dFloatTest,
jimfly017af00da2018-10-31 14:43:53 +0000713 armnn::DataLayout::NCHW)
714ARMNN_COMPARE_REF_AUTO_TEST_CASE(CompareDepthwiseConv2dWithReferenceUint8,
Nattapat Chaimanowong649dd952019-01-22 16:10:44 +0000715 CompareDepthwiseConvolution2dUint8Test,
jimfly017af00da2018-10-31 14:43:53 +0000716 armnn::DataLayout::NCHW)
717
718ARMNN_COMPARE_REF_AUTO_TEST_CASE(CompareDepthwiseConv2dWithReferenceFloat32Nhwc,
Nattapat Chaimanowong649dd952019-01-22 16:10:44 +0000719 CompareDepthwiseConvolution2dFloatTest,
jimfly017af00da2018-10-31 14:43:53 +0000720 armnn::DataLayout::NHWC)
721ARMNN_COMPARE_REF_AUTO_TEST_CASE(CompareDepthwiseConv2dWithReferenceUint8Nhwc,
Nattapat Chaimanowong649dd952019-01-22 16:10:44 +0000722 CompareDepthwiseConvolution2dUint8Test,
jimfly017af00da2018-10-31 14:43:53 +0000723 armnn::DataLayout::NHWC)
telsoa014fcda012018-03-09 14:13:49 +0000724
725ARMNN_COMPARE_REF_AUTO_TEST_CASE(CompareNormalizationWithinWithReference, CompareNormalizationTest,
726 armnn::NormalizationAlgorithmChannel::Within,
727 armnn::NormalizationAlgorithmMethod::LocalBrightness)
728ARMNN_COMPARE_REF_AUTO_TEST_CASE(CompareNormalizationAcrossWithReference, CompareNormalizationTest,
729 armnn::NormalizationAlgorithmChannel::Across,
730 armnn::NormalizationAlgorithmMethod::LocalBrightness)
731
732ARMNN_COMPARE_REF_AUTO_TEST_CASE(CompareMaxPooling2dWithReference, ComparePooling2dTest, armnn::PoolingAlgorithm::Max)
733ARMNN_COMPARE_REF_AUTO_TEST_CASE(CompareMaxPooling2dWithReferenceUint8, ComparePooling2dUint8Test,
734 armnn::PoolingAlgorithm::Max)
735ARMNN_COMPARE_REF_AUTO_TEST_CASE(CompareAveragePooling2dWithReference, ComparePooling2dTest,
736 armnn::PoolingAlgorithm::Average)
737ARMNN_COMPARE_REF_AUTO_TEST_CASE(CompareAveragePooling2dWithReferenceUint8, ComparePooling2dUint8Test,
738 armnn::PoolingAlgorithm::Average)
739ARMNN_COMPARE_REF_AUTO_TEST_CASE(CompareL2Pooling2dWithReference, ComparePooling2dTest, armnn::PoolingAlgorithm::L2)
740ARMNN_COMPARE_REF_AUTO_TEST_CASE(UNSUPPORTED_CompareL2Pooling2dWithReferenceUint8, ComparePooling2dUint8Test,
741 armnn::PoolingAlgorithm::L2)
742
743ARMNN_COMPARE_REF_AUTO_TEST_CASE(CompareSoftmaxBeta1WithReference, CompareSoftmaxTest, 1.0f)
744ARMNN_COMPARE_REF_AUTO_TEST_CASE(CompareSoftmaxBeta2WithReference, CompareSoftmaxTest, 2.0f)
745
746ARMNN_COMPARE_REF_AUTO_TEST_CASE(CompareSoftmaxUint8Beta1WithReference, CompareSoftmaxUint8Test, 1.0f)
747ARMNN_COMPARE_REF_AUTO_TEST_CASE(CompareSoftmaxUint8Beta2WithReference, CompareSoftmaxUint8Test, 2.0f)
748
749ARMNN_COMPARE_REF_AUTO_TEST_CASE(CompareAddition, CompareAdditionTest)
750
751ARMNN_COMPARE_REF_AUTO_TEST_CASE(CompareMultiplicationWithReference, CompareMultiplicationTest)
752
753ARMNN_COMPARE_REF_AUTO_TEST_CASE(CompareBatchNorm, CompareBatchNormTest)
754
755ARMNN_COMPARE_REF_AUTO_TEST_CASE(ReLu1, CompareBoundedReLuTest, 1.0f, -1.0f)
756ARMNN_COMPARE_REF_AUTO_TEST_CASE(ReLu6, CompareBoundedReLuTest, 6.0f, 0.0f)
757
758// ============================================================================
759// FIXTURE tests
760
761ARMNN_COMPARE_REF_FIXTURE_TEST_CASE(CompareSigmoidActivationWithReference, ActivationFixture,
762 CompareActivationTest, armnn::ActivationFunction::Sigmoid, 5u)
763
764ARMNN_COMPARE_REF_FIXTURE_TEST_CASE(CompareTanhActivationWithReference, ActivationFixture,
765 CompareActivationTest, armnn::ActivationFunction::TanH, 5u)
766
767ARMNN_COMPARE_REF_FIXTURE_TEST_CASE(CompareLinearActivationWithReference, ActivationFixture,
768 CompareActivationTest, armnn::ActivationFunction::Linear, 5u)
769
770ARMNN_COMPARE_REF_FIXTURE_TEST_CASE(CompareReLuActivationWithReference, ActivationFixture,
771 CompareActivationTest, armnn::ActivationFunction::ReLu, 5u)
772
773ARMNN_COMPARE_REF_FIXTURE_TEST_CASE(CompareBoundedReLuActivationWithReference, ActivationFixture,
774 CompareActivationTest, armnn::ActivationFunction::BoundedReLu, 5u)
775ARMNN_COMPARE_REF_FIXTURE_TEST_CASE(CompareBoundedReLuActivationWithReferenceUint8, ActivationFixture,
776 CompareActivationUint8Test, armnn::ActivationFunction::BoundedReLu)
777
778ARMNN_COMPARE_REF_FIXTURE_TEST_CASE(CompareSoftReLuActivationWithReference, ActivationFixture,
779 CompareActivationTest, armnn::ActivationFunction::SoftReLu, 1u)
780
781ARMNN_COMPARE_REF_FIXTURE_TEST_CASE(CompareLeakyReLuActivationWithReference, ActivationFixture,
782 CompareActivationTest, armnn::ActivationFunction::LeakyReLu, 5u)
783
784ARMNN_COMPARE_REF_FIXTURE_TEST_CASE(CompareAbsActivationWithReference, ActivationFixture,
785 CompareActivationTest, armnn::ActivationFunction::Abs, 5u)
786
787ARMNN_COMPARE_REF_FIXTURE_TEST_CASE(CompareSqrtActivationWithReference, PositiveActivationFixture,
788 CompareActivationTest, armnn::ActivationFunction::Sqrt, 5u)
789
790ARMNN_COMPARE_REF_FIXTURE_TEST_CASE(CompareSquareActivationWithReference, ActivationFixture,
791 CompareActivationTest, armnn::ActivationFunction::Square, 5u)
telsoa014fcda012018-03-09 14:13:49 +0000792BOOST_AUTO_TEST_SUITE_END()