blob: efdd1efb827b10de736e195bfeee89859e95afd0 [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 "RefWorkloadFactoryHelper.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 <reference/RefWorkloadFactory.hpp>
Narumol Prangnawarate0a4ad82019-02-04 19:05:27 +000012#include <backendsCommon/test/DetectionPostProcessLayerTestImpl.hpp>
Aron Virginas-Tarc9cc8042018-11-01 16:15:57 +000013#include <backendsCommon/test/LayerTests.hpp>
telsoa014fcda012018-03-09 14:13:49 +000014
arovir0143095f32018-10-09 18:04:24 +010015#include <boost/test/unit_test.hpp>
telsoa014fcda012018-03-09 14:13:49 +000016
17BOOST_AUTO_TEST_SUITE(Compute_Reference)
18using FactoryType = armnn::RefWorkloadFactory;
19
20// ============================================================================
21// UNIT tests
22
23// Convolution
jimfly010a088a62018-10-25 17:05:05 +010024ARMNN_AUTO_TEST_CASE(SimpleConvolution2d3x5, SimpleConvolution2d3x5Test, true, armnn::DataLayout::NCHW)
25ARMNN_AUTO_TEST_CASE(SimpleConvolution2d3x5Uint8, SimpleConvolution2d3x5Uint8Test, true, armnn::DataLayout::NCHW)
narpra015f703182018-10-26 16:24:58 +010026ARMNN_AUTO_TEST_CASE(SimpleConvolution2d3x5Nhwc, SimpleConvolution2d3x5Test, true, armnn::DataLayout::NHWC)
27ARMNN_AUTO_TEST_CASE(SimpleConvolution2d3x5Uint8Nhwc, SimpleConvolution2d3x5Uint8Test, true, armnn::DataLayout::NHWC)
Mike Kelly2f80f6e2019-05-16 12:41:34 +010028ARMNN_AUTO_TEST_CASE(SimpleConvolution2d3x5QSymm16, SimpleConvolution2d3x5QSymm16Test, true, armnn::DataLayout::NCHW)
29ARMNN_AUTO_TEST_CASE(SimpleConvolution2d3x5QSymm16Nhwc, SimpleConvolution2d3x5QSymm16Test, true,
30 armnn::DataLayout::NHWC)
telsoa014fcda012018-03-09 14:13:49 +000031
jimfly010a088a62018-10-25 17:05:05 +010032ARMNN_AUTO_TEST_CASE(UnbiasedConvolution2d, SimpleConvolution2d3x5Test, false, armnn::DataLayout::NCHW)
33ARMNN_AUTO_TEST_CASE(UnbiasedConvolutionUint8, SimpleConvolution2d3x5Uint8Test, false, armnn::DataLayout::NCHW)
narpra015f703182018-10-26 16:24:58 +010034ARMNN_AUTO_TEST_CASE(UnbiasedConvolution2dNhwc, SimpleConvolution2d3x5Test, false, armnn::DataLayout::NHWC)
35ARMNN_AUTO_TEST_CASE(UnbiasedConvolutionUint8Nhwc, SimpleConvolution2d3x5Uint8Test, false, armnn::DataLayout::NHWC)
telsoa014fcda012018-03-09 14:13:49 +000036
37ARMNN_AUTO_TEST_CASE(SimpleConvolution1d, Convolution1dTest, true)
38ARMNN_AUTO_TEST_CASE(SimpleConvolution1dUint8, Convolution1dUint8Test, true)
39
narpra015f703182018-10-26 16:24:58 +010040ARMNN_AUTO_TEST_CASE(SimpleConvolution2d3x3, SimpleConvolution2d3x3Test, true, armnn::DataLayout::NCHW)
41ARMNN_AUTO_TEST_CASE(SimpleConvolution2d3x3Uint8, SimpleConvolution2d3x3Uint8Test, true, armnn::DataLayout::NCHW)
Mike Kelly2f80f6e2019-05-16 12:41:34 +010042ARMNN_AUTO_TEST_CASE(SimpleConvolution2d3x3QSymm16, SimpleConvolution2d3x3QSymm16Test, true, armnn::DataLayout::NCHW)
telsoa014fcda012018-03-09 14:13:49 +000043
narpra015f703182018-10-26 16:24:58 +010044ARMNN_AUTO_TEST_CASE(SimpleConvolution2d3x3Nhwc, SimpleConvolution2d3x3Test, true, armnn::DataLayout::NHWC)
45ARMNN_AUTO_TEST_CASE(SimpleConvolution2d3x3Uint8Nhwc, SimpleConvolution2d3x3Uint8Test, true, armnn::DataLayout::NHWC)
Mike Kelly2f80f6e2019-05-16 12:41:34 +010046ARMNN_AUTO_TEST_CASE(SimpleConvolution2d3x3QSymm16Nhwc, SimpleConvolution2d3x3QSymm16Test, true,
47 armnn::DataLayout::NCHW)
narpra015f703182018-10-26 16:24:58 +010048
49ARMNN_AUTO_TEST_CASE(UnbiasedConvolution2dSquare, SimpleConvolution2d3x3Test, false, armnn::DataLayout::NCHW)
50ARMNN_AUTO_TEST_CASE(UnbiasedConvolution2dSquareNhwc, SimpleConvolution2d3x3Test, false, armnn::DataLayout::NHWC)
telsoa014fcda012018-03-09 14:13:49 +000051
Mike Kelly7332ed82018-12-20 17:03:06 +000052ARMNN_AUTO_TEST_CASE(UnbiasedConvolution2dSquareStride2x2Nhwc,
53 SimpleConvolution2d3x3Stride2x2Test,
54 false,
55 armnn::DataLayout::NHWC)
56
telsoa014fcda012018-03-09 14:13:49 +000057ARMNN_AUTO_TEST_CASE(SimpleConvolution2dAsymmetricPaddingLargerThanHalfKernelSize,
narpra015f703182018-10-26 16:24:58 +010058 Convolution2dAsymmetricPaddingLargerThanHalfKernelSizeTest,
59 armnn::DataLayout::NCHW)
60ARMNN_AUTO_TEST_CASE(SimpleConvolution2dAsymmetricPadding, Convolution2dAsymmetricPaddingTest, armnn::DataLayout::NCHW)
61
62ARMNN_AUTO_TEST_CASE(SimpleConvolution2dAsymmetricPaddingLargerThanHalfKernelSizeNhwc,
63 Convolution2dAsymmetricPaddingLargerThanHalfKernelSizeTest,
64 armnn::DataLayout::NHWC)
65ARMNN_AUTO_TEST_CASE(SimpleConvolution2dAsymmetricPaddingNhwc,
66 Convolution2dAsymmetricPaddingTest,
67 armnn::DataLayout::NHWC)
telsoa014fcda012018-03-09 14:13:49 +000068
Nikhil Raje4dfd6e2018-10-18 10:11:04 +010069ARMNN_AUTO_TEST_CASE(SimpleConvolution2dSquareNhwc, SimpleConvolution2d3x3NhwcTest, false)
70
telsoa014fcda012018-03-09 14:13:49 +000071// Depthwise Convolution
jimfly01d84216a2018-10-26 12:56:21 +010072ARMNN_AUTO_TEST_CASE(DepthwiseConvolution2d, DepthwiseConvolution2dTest, true, armnn::DataLayout::NCHW)
73ARMNN_AUTO_TEST_CASE(DepthwiseConvolution2dUint8, DepthwiseConvolution2dUint8Test, true, armnn::DataLayout::NCHW)
telsoa014fcda012018-03-09 14:13:49 +000074
jimfly01d84216a2018-10-26 12:56:21 +010075ARMNN_AUTO_TEST_CASE(UnbiasedDepthwiseConvolution2d, DepthwiseConvolution2dTest, false, armnn::DataLayout::NCHW)
76ARMNN_AUTO_TEST_CASE(UnbiasedDepthwiseConvolution2dUint8,
77 DepthwiseConvolution2dUint8Test,
78 false,
79 armnn::DataLayout::NCHW)
Ruomei Yan88d44b82019-05-23 14:29:06 +010080ARMNN_AUTO_TEST_CASE(DepthwiseConvolution2dQSymm16, DepthwiseConvolution2dInt16Test, true, armnn::DataLayout::NCHW)
jimfly01d84216a2018-10-26 12:56:21 +010081
82// NHWC Depthwise Convolution
83ARMNN_AUTO_TEST_CASE(DepthwiseConvolution2dNhwc, DepthwiseConvolution2dTest, true, armnn::DataLayout::NHWC)
84ARMNN_AUTO_TEST_CASE(DepthwiseConvolution2dUint8Nhwc, DepthwiseConvolution2dUint8Test, true, armnn::DataLayout::NHWC)
85
86ARMNN_AUTO_TEST_CASE(UnbiasedDepthwiseConvolution2dNhwc, DepthwiseConvolution2dTest, false, armnn::DataLayout::NHWC)
87ARMNN_AUTO_TEST_CASE(UnbiasedDepthwiseConvolution2dUint8Nhwc,
88 DepthwiseConvolution2dUint8Test,
89 false,
90 armnn::DataLayout::NHWC)
Matthew Bentham49cb7d02019-05-10 16:55:23 +010091ARMNN_AUTO_TEST_CASE(SimpleDepthwiseConvolution2d3x3Dilation3x3Nhwc,
92 SimpleDepthwiseConvolution2d3x3Dilation3x3NhwcTest)
telsoa014fcda012018-03-09 14:13:49 +000093
telsoa014fcda012018-03-09 14:13:49 +000094
jimfly01b9c89632018-10-26 16:50:13 +010095ARMNN_AUTO_TEST_CASE(DepthwiseConvolution2dDepthMul1,
96 DepthwiseConvolution2dDepthMul1Test, true, armnn::DataLayout::NCHW)
97ARMNN_AUTO_TEST_CASE(DepthwiseConvolution2dDepthMul1Uint8,
98 DepthwiseConvolution2dDepthMul1Uint8Test, true, armnn::DataLayout::NCHW)
Ruomei Yan88d44b82019-05-23 14:29:06 +010099ARMNN_AUTO_TEST_CASE(DepthwiseConvolution2dDepthMul1Int16,
100 DepthwiseConvolution2dDepthMul1Int16Test, true, armnn::DataLayout::NCHW)
jimfly01b9c89632018-10-26 16:50:13 +0100101
102ARMNN_AUTO_TEST_CASE(UnbiasedDepthwiseConvolution2dDepthMul1,
103 DepthwiseConvolution2dDepthMul1Test, false, armnn::DataLayout::NCHW)
104ARMNN_AUTO_TEST_CASE(UnbiasedDepthwiseConvolution2dDepthMul1Uint8,
105 DepthwiseConvolution2dDepthMul1Uint8Test, false, armnn::DataLayout::NCHW)
106
107ARMNN_AUTO_TEST_CASE(DepthwiseConvolution2dDepthMul1Nhwc,
108 DepthwiseConvolution2dDepthMul1Test, true, armnn::DataLayout::NHWC)
109ARMNN_AUTO_TEST_CASE(DepthwiseConvolution2dDepthMul1Uint8Nhwc,
110 DepthwiseConvolution2dDepthMul1Uint8Test, true, armnn::DataLayout::NHWC)
111
112ARMNN_AUTO_TEST_CASE(UnbiasedDepthwiseConvolution2dDepthMul1Nhwc,
113 DepthwiseConvolution2dDepthMul1Test, false, armnn::DataLayout::NHWC)
114ARMNN_AUTO_TEST_CASE(UnbiasedDepthwiseConvolution2dDepthMul1Uint8Nhwc,
115 DepthwiseConvolution2dDepthMul1Uint8Test, false, armnn::DataLayout::NHWC)
telsoa014fcda012018-03-09 14:13:49 +0000116
jimfly01382a91d2018-10-26 15:55:50 +0100117ARMNN_AUTO_TEST_CASE(DepthwiseConvolution2dAsymmetric,
118 DepthwiseConvolution2dAsymmetricTest, true, armnn::DataLayout::NCHW)
119ARMNN_AUTO_TEST_CASE(UnbiasedDepthwiseConvolution2dAsymmetric,
120 DepthwiseConvolution2dAsymmetricTest, false, armnn::DataLayout::NCHW)
121ARMNN_AUTO_TEST_CASE(DepthwiseConvolution2dAsymmetricNhwc,
122 DepthwiseConvolution2dAsymmetricTest, true, armnn::DataLayout::NHWC)
123ARMNN_AUTO_TEST_CASE(UnbiasedDepthwiseConvolution2dAsymmetricNhwc,
124 DepthwiseConvolution2dAsymmetricTest, false, armnn::DataLayout::NHWC)
surmeh013537c2c2018-05-18 16:31:43 +0100125
jimfly01b9c89632018-10-26 16:50:13 +0100126
telsoa014fcda012018-03-09 14:13:49 +0000127// Pooling
Teresa Charlin0434df62019-06-06 13:40:35 +0100128//MaxPooling
telsoa014fcda012018-03-09 14:13:49 +0000129ARMNN_AUTO_TEST_CASE(SimpleMaxPooling2dSize2x2Stride2x2, SimpleMaxPooling2dSize2x2Stride2x2Test, false)
130ARMNN_AUTO_TEST_CASE(SimpleMaxPooling2dSize2x2Stride2x2Uint8, SimpleMaxPooling2dSize2x2Stride2x2Uint8Test, false)
Teresa Charlin0434df62019-06-06 13:40:35 +0100131ARMNN_AUTO_TEST_CASE(SimpleMaxPooling2dSize2x2Stride2x2Int16, SimpleMaxPooling2dSize2x2Stride2x2Int16Test, false)
telsoa014fcda012018-03-09 14:13:49 +0000132
133ARMNN_AUTO_TEST_CASE(SimpleMaxPooling2dSize3x3Stride2x4, SimpleMaxPooling2dSize3x3Stride2x4Test, false)
134ARMNN_AUTO_TEST_CASE(SimpleMaxPooling2dSize3x3Stride2x4Uint8, SimpleMaxPooling2dSize3x3Stride2x4Uint8Test, false)
Teresa Charlin0434df62019-06-06 13:40:35 +0100135ARMNN_AUTO_TEST_CASE(SimpleMaxPooling2dSize3x3Stride2x4Int16, SimpleMaxPooling2dSize3x3Stride2x4Int16Test, false)
telsoa014fcda012018-03-09 14:13:49 +0000136
James Conroy45a9b772018-10-31 11:47:53 +0000137ARMNN_AUTO_TEST_CASE(SimpleMaxPooling2d, SimpleMaxPooling2dTest, armnn::DataLayout::NCHW)
138ARMNN_AUTO_TEST_CASE(SimpleMaxPooling2dNhwc, SimpleMaxPooling2dTest, armnn::DataLayout::NHWC)
139ARMNN_AUTO_TEST_CASE(SimpleMaxPooling2dUint8, SimpleMaxPooling2dUint8Test, armnn::DataLayout::NCHW)
Teresa Charlin0434df62019-06-06 13:40:35 +0100140ARMNN_AUTO_TEST_CASE(SimpleMaxPooling2dInt16, SimpleMaxPooling2dInt16Test, armnn::DataLayout::NCHW)
James Conroy45a9b772018-10-31 11:47:53 +0000141ARMNN_AUTO_TEST_CASE(SimpleMaxPooling2dUint8Nhwc, SimpleMaxPooling2dUint8Test, armnn::DataLayout::NHWC)
Teresa Charlin0434df62019-06-06 13:40:35 +0100142ARMNN_AUTO_TEST_CASE(SimpleMaxPooling2dInt16Nhwc, SimpleMaxPooling2dInt16Test, armnn::DataLayout::NHWC)
James Conroy45a9b772018-10-31 11:47:53 +0000143
Teresa Charlin0434df62019-06-06 13:40:35 +0100144ARMNN_AUTO_TEST_CASE(IgnorePaddingSimpleMaxPooling2d, IgnorePaddingSimpleMaxPooling2dTest)
145ARMNN_AUTO_TEST_CASE(IgnorePaddingSimpleMaxPooling2dUint8, IgnorePaddingSimpleMaxPooling2dUint8Test)
146ARMNN_AUTO_TEST_CASE(IgnorePaddingSimpleMaxPooling2dInt16, IgnorePaddingSimpleMaxPooling2dInt16Test)
147ARMNN_AUTO_TEST_CASE(IgnorePaddingMaxPooling2dSize3, IgnorePaddingMaxPooling2dSize3Test)
148ARMNN_AUTO_TEST_CASE(IgnorePaddingMaxPooling2dSize3Uint8, IgnorePaddingMaxPooling2dSize3Uint8Test)
149ARMNN_AUTO_TEST_CASE(IgnorePaddingMaxPooling2dSize3Int16, IgnorePaddingMaxPooling2dSize3Int16Test)
150
151//AveragePooling
James Conroy45a9b772018-10-31 11:47:53 +0000152ARMNN_AUTO_TEST_CASE(SimpleAveragePooling2d, SimpleAveragePooling2dTest, armnn::DataLayout::NCHW)
153ARMNN_AUTO_TEST_CASE(SimpleAveragePooling2dNhwc, SimpleAveragePooling2dTest, armnn::DataLayout::NHWC)
154ARMNN_AUTO_TEST_CASE(SimpleAveragePooling2dUint8, SimpleAveragePooling2dUint8Test, armnn::DataLayout::NCHW)
Teresa Charlin0434df62019-06-06 13:40:35 +0100155ARMNN_AUTO_TEST_CASE(SimpleAveragePooling2dInt16, SimpleAveragePooling2dInt16Test, armnn::DataLayout::NCHW)
James Conroy45a9b772018-10-31 11:47:53 +0000156ARMNN_AUTO_TEST_CASE(SimpleAveragePooling2dUint8Nhwc, SimpleAveragePooling2dUint8Test, armnn::DataLayout::NHWC)
Teresa Charlin0434df62019-06-06 13:40:35 +0100157ARMNN_AUTO_TEST_CASE(SimpleAveragePooling2dInt16Nhwc, SimpleAveragePooling2dInt16Test, armnn::DataLayout::NHWC)
158
159ARMNN_AUTO_TEST_CASE(IgnorePaddingSimpleAveragePooling2d, IgnorePaddingSimpleAveragePooling2dTest)
160ARMNN_AUTO_TEST_CASE(IgnorePaddingSimpleAveragePooling2dUint8, IgnorePaddingSimpleAveragePooling2dUint8Test)
161ARMNN_AUTO_TEST_CASE(IgnorePaddingSimpleAveragePooling2dInt16, IgnorePaddingSimpleAveragePooling2dInt16Test)
162ARMNN_AUTO_TEST_CASE(IgnorePaddingSimpleAveragePooling2dNoPadding, IgnorePaddingSimpleAveragePooling2dNoPaddingTest)
163ARMNN_AUTO_TEST_CASE(IgnorePaddingSimpleAveragePooling2dNoPaddingUint8,
164 IgnorePaddingSimpleAveragePooling2dNoPaddingUint8Test)
165ARMNN_AUTO_TEST_CASE(IgnorePaddingSimpleAveragePooling2dNoPaddingInt16,
166 IgnorePaddingSimpleAveragePooling2dNoPaddingInt16Test)
167ARMNN_AUTO_TEST_CASE(IgnorePaddingAveragePooling2dSize3, IgnorePaddingAveragePooling2dSize3Test)
168ARMNN_AUTO_TEST_CASE(IgnorePaddingAveragePooling2dSize3Uint8, IgnorePaddingAveragePooling2dSize3Uint8Test)
169ARMNN_AUTO_TEST_CASE(IgnorePaddingAveragePooling2dSize3Int16, IgnorePaddingAveragePooling2dSize3Int16Test)
James Conroy45a9b772018-10-31 11:47:53 +0000170
surmeh01bceff2f2018-03-29 16:29:27 +0100171ARMNN_AUTO_TEST_CASE(IgnorePaddingAveragePooling2dSize3x2Stride2x2,
172 IgnorePaddingAveragePooling2dSize3x2Stride2x2Test, false)
173ARMNN_AUTO_TEST_CASE(IgnorePaddingAveragePooling2dSize3x2Stride2x2NoPadding,
174 IgnorePaddingAveragePooling2dSize3x2Stride2x2Test, true)
telsoa014fcda012018-03-09 14:13:49 +0000175
176ARMNN_AUTO_TEST_CASE(LargeTensorsAveragePooling2d, LargeTensorsAveragePooling2dTest)
177ARMNN_AUTO_TEST_CASE(LargeTensorsAveragePooling2dUint8, LargeTensorsAveragePooling2dUint8Test)
Teresa Charlin0434df62019-06-06 13:40:35 +0100178ARMNN_AUTO_TEST_CASE(LargeTensorsAveragePooling2dInt16, LargeTensorsAveragePooling2dInt16Test)
179
180//L2Pooling
181ARMNN_AUTO_TEST_CASE(IgnorePaddingSimpleL2Pooling2d, IgnorePaddingSimpleL2Pooling2dTest)
182ARMNN_AUTO_TEST_CASE(IgnorePaddingSimpleL2Pooling2dUint8, IgnorePaddingSimpleL2Pooling2dUint8Test)
183ARMNN_AUTO_TEST_CASE(IgnorePaddingSimpleL2Pooling2dInt16, IgnorePaddingSimpleL2Pooling2dInt16Test)
184
185ARMNN_AUTO_TEST_CASE(IgnorePaddingL2Pooling2dSize3, IgnorePaddingL2Pooling2dSize3Test)
186ARMNN_AUTO_TEST_CASE(IgnorePaddingL2Pooling2dSize3Uint8, IgnorePaddingL2Pooling2dSize3Uint8Test)
187ARMNN_AUTO_TEST_CASE(IgnorePaddingL2Pooling2dSize3Int16, IgnorePaddingL2Pooling2dSize3Int16Test)
telsoa014fcda012018-03-09 14:13:49 +0000188
James Conroy45a9b772018-10-31 11:47:53 +0000189ARMNN_AUTO_TEST_CASE(SimpleL2Pooling2d, SimpleL2Pooling2dTest, armnn::DataLayout::NCHW)
190ARMNN_AUTO_TEST_CASE(SimpleL2Pooling2dNhwc, SimpleL2Pooling2dTest, armnn::DataLayout::NHWC)
191ARMNN_AUTO_TEST_CASE(SimpleL2Pooling2dUint8, SimpleL2Pooling2dUint8Test, armnn::DataLayout::NCHW)
Teresa Charlin0434df62019-06-06 13:40:35 +0100192ARMNN_AUTO_TEST_CASE(SimpleL2Pooling2dInt16, SimpleL2Pooling2dInt16Test, armnn::DataLayout::NCHW)
James Conroy45a9b772018-10-31 11:47:53 +0000193ARMNN_AUTO_TEST_CASE(SimpleL2Pooling2dNhwcUint8, SimpleL2Pooling2dUint8Test, armnn::DataLayout::NHWC)
Teresa Charlin0434df62019-06-06 13:40:35 +0100194ARMNN_AUTO_TEST_CASE(SimpleL2Pooling2dNhwcInt16, SimpleL2Pooling2dInt16Test, armnn::DataLayout::NHWC)
telsoa014fcda012018-03-09 14:13:49 +0000195
196ARMNN_AUTO_TEST_CASE(L2Pooling2dSize7, L2Pooling2dSize7Test)
197ARMNN_AUTO_TEST_CASE(L2Pooling2dSize7Uint8, L2Pooling2dSize7Uint8Test)
Teresa Charlin0434df62019-06-06 13:40:35 +0100198ARMNN_AUTO_TEST_CASE(L2Pooling2dSize7Int16, L2Pooling2dSize7Int16Test)
telsoa014fcda012018-03-09 14:13:49 +0000199
Teresa Charlin0434df62019-06-06 13:40:35 +0100200//NonSquarePooling
telsoa014fcda012018-03-09 14:13:49 +0000201ARMNN_AUTO_TEST_CASE(AsymmNonSquarePooling2d, AsymmetricNonSquarePooling2dTest)
202ARMNN_AUTO_TEST_CASE(AsymmNonSquarePooling2dUint8, AsymmetricNonSquarePooling2dUint8Test)
Teresa Charlin0434df62019-06-06 13:40:35 +0100203ARMNN_AUTO_TEST_CASE(AsymmNonSquarePooling2dInt16, AsymmetricNonSquarePooling2dInt16Test)
204
telsoa014fcda012018-03-09 14:13:49 +0000205
Teresa Charlin18515e22019-04-24 10:17:46 +0100206// Linear Activation
telsoa014fcda012018-03-09 14:13:49 +0000207ARMNN_AUTO_TEST_CASE(ConstantLinearActivation, ConstantLinearActivationTest)
208ARMNN_AUTO_TEST_CASE(ConstantLinearActivationUint8, ConstantLinearActivationUint8Test)
Teresa Charlin18515e22019-04-24 10:17:46 +0100209ARMNN_AUTO_TEST_CASE(ConstantLinearActivationInt16, ConstantLinearActivationInt16Test)
telsoa014fcda012018-03-09 14:13:49 +0000210
Matteo Martincigh8e6f92d2018-10-18 08:45:39 +0100211// Normalization
telsoa014fcda012018-03-09 14:13:49 +0000212ARMNN_AUTO_TEST_CASE(SimpleNormalizationAcross, SimpleNormalizationAcrossTest)
213ARMNN_AUTO_TEST_CASE(SimpleNormalizationWithin, SimpleNormalizationWithinTest)
Matteo Martincigh8e6f92d2018-10-18 08:45:39 +0100214ARMNN_AUTO_TEST_CASE(SimpleNormalizationAcrossNhwc, SimpleNormalizationAcrossNhwcTest)
telsoa014fcda012018-03-09 14:13:49 +0000215
Narumol Prangnawarat65d30962019-03-14 11:55:03 +0000216// Softmax
telsoa014fcda012018-03-09 14:13:49 +0000217ARMNN_AUTO_TEST_CASE(SimpleSoftmaxBeta1, SimpleSoftmaxTest, 1.0f)
218ARMNN_AUTO_TEST_CASE(SimpleSoftmaxBeta2, SimpleSoftmaxTest, 2.0f)
219ARMNN_AUTO_TEST_CASE(SimpleSoftmaxBeta1Uint8, SimpleSoftmaxUint8Test, 1.0f)
220ARMNN_AUTO_TEST_CASE(SimpleSoftmaxBeta2Uint8, SimpleSoftmaxUint8Test, 2.0f)
221
Narumol Prangnawarat65d30962019-03-14 11:55:03 +0000222ARMNN_AUTO_TEST_CASE(Simple3dSoftmax, Simple3dSoftmaxTest, 1.0f)
223ARMNN_AUTO_TEST_CASE(Simple3dSoftmaxUint8, Simple3dSoftmaxUint8Test, 1.0f)
224
225ARMNN_AUTO_TEST_CASE(Simple4dSoftmax, Simple4dSoftmaxTest, 1.0f)
226ARMNN_AUTO_TEST_CASE(Simple4dSoftmaxUint8, Simple4dSoftmaxUint8Test, 1.0f)
227
nikraj01248683f2019-05-29 16:46:50 +0100228ARMNN_AUTO_TEST_CASE(SimpleSoftmaxUint16, SimpleSoftmaxUint16Test, 1.0f)
229ARMNN_AUTO_TEST_CASE(Simple3dSoftmaxUint16, Simple3dSoftmaxUint16Test, 1.0f)
230ARMNN_AUTO_TEST_CASE(Simple4dSoftmaxUint16, Simple4dSoftmaxUint16Test, 1.0f)
231
Teresa Charlin18515e22019-04-24 10:17:46 +0100232// Sigmoid Activation
telsoa014fcda012018-03-09 14:13:49 +0000233ARMNN_AUTO_TEST_CASE(SimpleSigmoid, SimpleSigmoidTest)
234ARMNN_AUTO_TEST_CASE(SimpleSigmoidUint8, SimpleSigmoidUint8Test)
Teresa Charlin18515e22019-04-24 10:17:46 +0100235ARMNN_AUTO_TEST_CASE(SimpleSigmoidInt16, SimpleSigmoidInt16Test)
telsoa014fcda012018-03-09 14:13:49 +0000236
Teresa Charlin18515e22019-04-24 10:17:46 +0100237// BoundedReLU Activation
telsoa014fcda012018-03-09 14:13:49 +0000238ARMNN_AUTO_TEST_CASE(ReLu1, BoundedReLuUpperAndLowerBoundTest)
239ARMNN_AUTO_TEST_CASE(ReLu6, BoundedReLuUpperBoundOnlyTest)
240ARMNN_AUTO_TEST_CASE(ReLu1Uint8, BoundedReLuUint8UpperAndLowerBoundTest)
241ARMNN_AUTO_TEST_CASE(ReLu6Uint8, BoundedReLuUint8UpperBoundOnlyTest)
Teresa Charlin18515e22019-04-24 10:17:46 +0100242ARMNN_AUTO_TEST_CASE(BoundedReLuInt16, BoundedReLuInt16Test)
243
244// ReLU Activation
konsof017f6db402019-06-07 15:15:58 +0100245ARMNN_AUTO_TEST_CASE(ReLu, ReLuTest)
246ARMNN_AUTO_TEST_CASE(ReLuUint8, ReLuUint8Test)
Teresa Charlin18515e22019-04-24 10:17:46 +0100247ARMNN_AUTO_TEST_CASE(ReLuInt16, ReLuInt16Test)
248
249// SoftReLU Activation
konsof017f6db402019-06-07 15:15:58 +0100250ARMNN_AUTO_TEST_CASE(SoftReLu, SoftReLuTest)
251ARMNN_AUTO_TEST_CASE(SoftReLuUint8, SoftReLuUint8Test)
Teresa Charlin18515e22019-04-24 10:17:46 +0100252ARMNN_AUTO_TEST_CASE(SoftReLuInt16, SoftReLuInt16Test)
253
konsof017f6db402019-06-07 15:15:58 +0100254
Teresa Charlin18515e22019-04-24 10:17:46 +0100255// LeakyReLU Activation
konsof017f6db402019-06-07 15:15:58 +0100256ARMNN_AUTO_TEST_CASE(LeakyReLu, LeakyReLuTest)
257ARMNN_AUTO_TEST_CASE(LeakyReLuUint8, LeakyReLuUint8Test)
Teresa Charlin18515e22019-04-24 10:17:46 +0100258ARMNN_AUTO_TEST_CASE(LeakyReLuInt16, LeakyReLuInt16Test)
259
260// Abs Activation
konsof017f6db402019-06-07 15:15:58 +0100261ARMNN_AUTO_TEST_CASE(Abs, AbsTest)
262ARMNN_AUTO_TEST_CASE(AbsUint8, AbsUint8Test)
Teresa Charlin18515e22019-04-24 10:17:46 +0100263ARMNN_AUTO_TEST_CASE(AbsInt16, AbsInt16Test)
264
265// Sqrt Activation
konsof017f6db402019-06-07 15:15:58 +0100266ARMNN_AUTO_TEST_CASE(Sqrt, SqrtTest)
267ARMNN_AUTO_TEST_CASE(SqrtUint8, SqrtUint8Test)
Teresa Charlin18515e22019-04-24 10:17:46 +0100268ARMNN_AUTO_TEST_CASE(SqrtInt16, SqrtInt16Test)
269
270// Square Activation
konsof017f6db402019-06-07 15:15:58 +0100271ARMNN_AUTO_TEST_CASE(Square, SquareTest)
272ARMNN_AUTO_TEST_CASE(SquareUint8, SquareUint8Test)
Teresa Charlin18515e22019-04-24 10:17:46 +0100273ARMNN_AUTO_TEST_CASE(SquareInt16, SquareInt16Test)
274
275// Tanh Activation
konsof017f6db402019-06-07 15:15:58 +0100276ARMNN_AUTO_TEST_CASE(Tanh, TanhTest)
277ARMNN_AUTO_TEST_CASE(TanhUint8, TanhUint8Test)
Teresa Charlin18515e22019-04-24 10:17:46 +0100278ARMNN_AUTO_TEST_CASE(TanhInt16, TanhInt16Test)
279
telsoa014fcda012018-03-09 14:13:49 +0000280
Francis Murtagh46c09d02019-05-28 08:15:28 +0100281// Fully Connected
telsoa014fcda012018-03-09 14:13:49 +0000282ARMNN_AUTO_TEST_CASE(SimpleFullyConnected, FullyConnectedFloat32Test, false, false)
Francis Murtagh46c09d02019-05-28 08:15:28 +0100283ARMNN_AUTO_TEST_CASE(FullyConnectedUint8, FullyConnectedTest<armnn::DataType::QuantisedAsymm8>, false)
284ARMNN_AUTO_TEST_CASE(FullyConnectedQSymm16, FullyConnectedTest<armnn::DataType::QuantisedSymm16>, false)
telsoa014fcda012018-03-09 14:13:49 +0000285ARMNN_AUTO_TEST_CASE(SimpleFullyConnectedWithBias, FullyConnectedFloat32Test, true, false)
Francis Murtagh46c09d02019-05-28 08:15:28 +0100286ARMNN_AUTO_TEST_CASE(FullyConnectedBiasedUint8, FullyConnectedTest<armnn::DataType::QuantisedAsymm8>, true)
287ARMNN_AUTO_TEST_CASE(FullyConnectedBiasedQSymm16, FullyConnectedTest<armnn::DataType::QuantisedSymm16>, true)
telsoa014fcda012018-03-09 14:13:49 +0000288ARMNN_AUTO_TEST_CASE(SimpleFullyConnectedWithTranspose, FullyConnectedFloat32Test, false, true)
289
290ARMNN_AUTO_TEST_CASE(FullyConnectedLarge, FullyConnectedLargeTest, false)
291ARMNN_AUTO_TEST_CASE(FullyConnectedLargeTransposed, FullyConnectedLargeTest, true)
292
293// Splitter
telsoa01c577f2c2018-08-31 09:22:23 +0100294ARMNN_AUTO_TEST_CASE(SimpleSplitter, SplitterTest)
295ARMNN_AUTO_TEST_CASE(SimpleSplitterUint8, SplitterUint8Test)
Ruomei Yan25339c32019-05-28 16:48:20 +0100296ARMNN_AUTO_TEST_CASE(SimpleSplitterInt16, SplitterInt16Test)
telsoa014fcda012018-03-09 14:13:49 +0000297
298ARMNN_AUTO_TEST_CASE(CopyViaSplitter, CopyViaSplitterTest)
299ARMNN_AUTO_TEST_CASE(CopyViaSplitterUint8, CopyViaSplitterUint8Test)
Ruomei Yan25339c32019-05-28 16:48:20 +0100300ARMNN_AUTO_TEST_CASE(CopyViaSplitterInt16, CopyViaSplitterInt16Test)
telsoa014fcda012018-03-09 14:13:49 +0000301
Jim Flynn4ed6c832019-05-20 11:02:46 +0100302// Concat
303ARMNN_AUTO_TEST_CASE(SimpleConcat, ConcatTest)
304ARMNN_AUTO_TEST_CASE(ConcatUint8, ConcatUint8Test)
305ARMNN_AUTO_TEST_CASE(ConcatUint8DifferentQParams, ConcatUint8DifferentQParamsTest)
306ARMNN_AUTO_TEST_CASE(ConcatUint16, ConcatUint16Test)
telsoa014fcda012018-03-09 14:13:49 +0000307
308// Add
309ARMNN_AUTO_TEST_CASE(SimpleAdd, AdditionTest)
310ARMNN_AUTO_TEST_CASE(AddBroadcast1Element, AdditionBroadcast1ElementTest)
311ARMNN_AUTO_TEST_CASE(AddBroadcast, AdditionBroadcastTest)
312
313ARMNN_AUTO_TEST_CASE(AdditionUint8, AdditionUint8Test)
314ARMNN_AUTO_TEST_CASE(AddBroadcastUint8, AdditionBroadcastUint8Test)
315ARMNN_AUTO_TEST_CASE(AddBroadcast1ElementUint8, AdditionBroadcast1ElementUint8Test)
316
Sadik Armagan2999a022019-04-09 14:20:12 +0100317ARMNN_AUTO_TEST_CASE(AdditionInt16, AdditionInt16Test)
318ARMNN_AUTO_TEST_CASE(AddBroadcastInt16, AdditionBroadcastInt16Test)
319ARMNN_AUTO_TEST_CASE(AddBroadcast1ElementInt16, AdditionBroadcast1ElementInt16Test)
320
David Beckf195f032018-09-06 16:46:34 +0100321// Sub
322ARMNN_AUTO_TEST_CASE(SimpleSub, SubtractionTest)
323ARMNN_AUTO_TEST_CASE(SubBroadcast1Element, SubtractionBroadcast1ElementTest)
324ARMNN_AUTO_TEST_CASE(SubBroadcast, SubtractionBroadcastTest)
325
David Beck4a8692c2018-09-07 16:19:24 +0100326ARMNN_AUTO_TEST_CASE(SubtractionUint8, SubtractionUint8Test)
David Beckf195f032018-09-06 16:46:34 +0100327ARMNN_AUTO_TEST_CASE(SubBroadcastUint8, SubtractionBroadcastUint8Test)
328ARMNN_AUTO_TEST_CASE(SubBroadcast1ElementUint8, SubtractionBroadcast1ElementUint8Test)
329
Sadik Armagan2999a022019-04-09 14:20:12 +0100330ARMNN_AUTO_TEST_CASE(SubtractionInt16, SubtractionInt16Test)
331ARMNN_AUTO_TEST_CASE(SubBroadcastInt16, SubtractionBroadcastInt16Test)
332ARMNN_AUTO_TEST_CASE(SubBroadcast1ElementInt16, SubtractionBroadcast1ElementInt16Test)
333
Francis Murtaghe7a86a42018-08-29 12:42:10 +0100334// Div
335ARMNN_AUTO_TEST_CASE(SimpleDivision, DivisionTest)
Francis Murtagh8c5e3dc2018-08-30 17:18:37 +0100336ARMNN_AUTO_TEST_CASE(DivisionByZero, DivisionByZeroTest)
Francis Murtaghe7a86a42018-08-29 12:42:10 +0100337ARMNN_AUTO_TEST_CASE(DivisionBroadcast1Element, DivisionBroadcast1ElementTest)
338ARMNN_AUTO_TEST_CASE(DivisionBroadcast1DVector, DivisionBroadcast1DVectorTest)
David Beck5cd01f32018-09-12 16:00:08 +0100339// NOTE: division by zero for quantized div needs more attention
340// see IVGCVSW-1849
341ARMNN_AUTO_TEST_CASE(DivisionUint8, DivisionUint8Test)
342ARMNN_AUTO_TEST_CASE(DivisionUint8Broadcast1Element, DivisionBroadcast1ElementUint8Test)
343ARMNN_AUTO_TEST_CASE(DivisionUint8Broadcast1DVector, DivisionBroadcast1DVectorUint8Test)
Francis Murtaghe7a86a42018-08-29 12:42:10 +0100344
Sadik Armagan2999a022019-04-09 14:20:12 +0100345ARMNN_AUTO_TEST_CASE(DivisionInt16, DivisionInt16Test)
346ARMNN_AUTO_TEST_CASE(DivisionInt16Broadcast1Element, DivisionBroadcast1ElementInt16Test)
347ARMNN_AUTO_TEST_CASE(DivisionInt16Broadcast1DVector, DivisionBroadcast1DVectorInt16Test)
348
FrancisMurtagh30cdfca2018-12-18 12:57:35 +0000349// Equal
350ARMNN_AUTO_TEST_CASE(SimpleEqual, EqualSimpleTest)
351ARMNN_AUTO_TEST_CASE(EqualBroadcast1Element, EqualBroadcast1ElementTest)
352ARMNN_AUTO_TEST_CASE(EqualBroadcast1DVector, EqualBroadcast1DVectorTest)
353ARMNN_AUTO_TEST_CASE(EqualUint8, EqualUint8Test)
354ARMNN_AUTO_TEST_CASE(EqualBroadcast1ElementUint8, EqualBroadcast1ElementUint8Test)
355ARMNN_AUTO_TEST_CASE(EqualBroadcast1DVectorUint8, EqualBroadcast1DVectorUint8Test)
356
FrancisMurtagh878f0232018-12-19 10:56:15 +0000357// Greater
358ARMNN_AUTO_TEST_CASE(SimpleGreater, GreaterSimpleTest)
359ARMNN_AUTO_TEST_CASE(GreaterBroadcast1Element, GreaterBroadcast1ElementTest)
360ARMNN_AUTO_TEST_CASE(GreaterBroadcast1DVector, GreaterBroadcast1DVectorTest)
361ARMNN_AUTO_TEST_CASE(GreaterUint8, GreaterUint8Test)
362ARMNN_AUTO_TEST_CASE(GreaterBroadcast1ElementUint8, GreaterBroadcast1ElementUint8Test)
363ARMNN_AUTO_TEST_CASE(GreaterBroadcast1DVectorUint8, GreaterBroadcast1DVectorUint8Test)
364
Éanna Ó Catháin20e58802018-12-04 10:29:06 +0000365// Max
Éanna Ó Catháinde705582018-12-03 13:04:22 +0000366ARMNN_AUTO_TEST_CASE(SimpleMaximum, MaximumSimpleTest)
367ARMNN_AUTO_TEST_CASE(MaximumBroadcast1Element, MaximumBroadcast1ElementTest)
368ARMNN_AUTO_TEST_CASE(MaximumBroadcast1DVector, MaximumBroadcast1DVectorTest)
369ARMNN_AUTO_TEST_CASE(MaximumUint8, MaximumUint8Test)
370ARMNN_AUTO_TEST_CASE(MaximumBroadcast1ElementUint8, MaximumBroadcast1ElementUint8Test)
371ARMNN_AUTO_TEST_CASE(MaximumBroadcast1DVectorUint8, MaximumBroadcast1DVectorUint8Test)
Sadik Armagan2999a022019-04-09 14:20:12 +0100372ARMNN_AUTO_TEST_CASE(MaximumInt16, MaximumInt16Test)
373ARMNN_AUTO_TEST_CASE(MaximumBroadcast1ElementInt16, MaximumBroadcast1ElementInt16Test)
374ARMNN_AUTO_TEST_CASE(MaximumBroadcast1DVectorInt16, MaximumBroadcast1DVectorInt16Test)
Éanna Ó Catháinde705582018-12-03 13:04:22 +0000375
Éanna Ó Catháin20e58802018-12-04 10:29:06 +0000376// Min
377ARMNN_AUTO_TEST_CASE(SimpleMinimum1, MinimumBroadcast1ElementTest1)
378ARMNN_AUTO_TEST_CASE(SimpleMinimum2, MinimumBroadcast1ElementTest2)
379ARMNN_AUTO_TEST_CASE(Minimum1DVectorUint8, MinimumBroadcast1DVectorUint8Test)
Sadik Armagan2999a022019-04-09 14:20:12 +0100380ARMNN_AUTO_TEST_CASE(MinimumInt16, MinimumInt16Test)
381ARMNN_AUTO_TEST_CASE(MinimumBroadcast1ElementInt16, MinimumBroadcast1ElementInt16Test)
382ARMNN_AUTO_TEST_CASE(MinimumBroadcast1DVectorInt16, MinimumBroadcast1DVectorInt16Test)
Éanna Ó Catháin20e58802018-12-04 10:29:06 +0000383
telsoa014fcda012018-03-09 14:13:49 +0000384// Mul
385ARMNN_AUTO_TEST_CASE(SimpleMultiplication, MultiplicationTest)
surmeh01bceff2f2018-03-29 16:29:27 +0100386ARMNN_AUTO_TEST_CASE(MultiplicationBroadcast1Element, MultiplicationBroadcast1ElementTest)
387ARMNN_AUTO_TEST_CASE(MultiplicationBroadcast1DVector, MultiplicationBroadcast1DVectorTest)
telsoa014fcda012018-03-09 14:13:49 +0000388ARMNN_AUTO_TEST_CASE(MultiplicationUint8, MultiplicationUint8Test)
surmeh01bceff2f2018-03-29 16:29:27 +0100389ARMNN_AUTO_TEST_CASE(MultiplicationBroadcast1ElementUint8, MultiplicationBroadcast1ElementUint8Test)
390ARMNN_AUTO_TEST_CASE(MultiplicationBroadcast1DVectorUint8, MultiplicationBroadcast1DVectorUint8Test)
Sadik Armagan2999a022019-04-09 14:20:12 +0100391ARMNN_AUTO_TEST_CASE(MultiplicationInt16, MultiplicationInt16Test)
392ARMNN_AUTO_TEST_CASE(MultiplicationBroadcast1ElementInt16, MultiplicationBroadcast1ElementInt16Test)
393ARMNN_AUTO_TEST_CASE(MultiplicationBroadcast1DVectorInt16, MultiplicationBroadcast1DVectorInt16Test)
telsoa014fcda012018-03-09 14:13:49 +0000394
395// Batch Norm
396ARMNN_AUTO_TEST_CASE(BatchNorm, BatchNormTest)
Matteo Martincigh8eb675e2018-10-17 14:43:29 +0100397ARMNN_AUTO_TEST_CASE(BatchNormNhwc, BatchNormNhwcTest)
telsoa014fcda012018-03-09 14:13:49 +0000398ARMNN_AUTO_TEST_CASE(BatchNormUint8, BatchNormUint8Test)
Matteo Martincigh8eb675e2018-10-17 14:43:29 +0100399ARMNN_AUTO_TEST_CASE(BatchNormUint8Nhwc, BatchNormUint8NhwcTest)
Matteo Martincighf5507132019-06-04 10:59:47 +0100400ARMNN_AUTO_TEST_CASE(BatchNormInt16, BatchNormInt16Test)
401ARMNN_AUTO_TEST_CASE(BatchNormInt16Nhwc, BatchNormInt16NhwcTest)
telsoa014fcda012018-03-09 14:13:49 +0000402
James Conroy59540822018-10-11 12:39:05 +0100403// Resize Bilinear - NCHW
James Conroy6b965822018-11-01 11:33:09 +0000404ARMNN_AUTO_TEST_CASE(SimpleResizeBilinear, SimpleResizeBilinearTest, armnn::DataLayout::NCHW)
telsoa014fcda012018-03-09 14:13:49 +0000405ARMNN_AUTO_TEST_CASE(SimpleResizeBilinearUint8, SimpleResizeBilinearUint8Test)
James Conroy6b965822018-11-01 11:33:09 +0000406ARMNN_AUTO_TEST_CASE(ResizeBilinearNop, ResizeBilinearNopTest, armnn::DataLayout::NCHW)
telsoa014fcda012018-03-09 14:13:49 +0000407ARMNN_AUTO_TEST_CASE(ResizeBilinearNopUint8, ResizeBilinearNopUint8Test)
James Conroy6b965822018-11-01 11:33:09 +0000408ARMNN_AUTO_TEST_CASE(ResizeBilinearSqMin, ResizeBilinearSqMinTest, armnn::DataLayout::NCHW)
telsoa014fcda012018-03-09 14:13:49 +0000409ARMNN_AUTO_TEST_CASE(ResizeBilinearSqMinUint8, ResizeBilinearSqMinUint8Test)
James Conroy6b965822018-11-01 11:33:09 +0000410ARMNN_AUTO_TEST_CASE(ResizeBilinearMin, ResizeBilinearMinTest, armnn::DataLayout::NCHW)
telsoa014fcda012018-03-09 14:13:49 +0000411ARMNN_AUTO_TEST_CASE(ResizeBilinearMinUint8, ResizeBilinearMinUint8Test)
James Conroy6b965822018-11-01 11:33:09 +0000412ARMNN_AUTO_TEST_CASE(ResizeBilinearMag, ResizeBilinearMagTest, armnn::DataLayout::NCHW)
telsoa014fcda012018-03-09 14:13:49 +0000413ARMNN_AUTO_TEST_CASE(ResizeBilinearMagUint8, ResizeBilinearMagUint8Test)
414
James Conroy59540822018-10-11 12:39:05 +0100415// Resize Bilinear - NHWC
James Conroy6b965822018-11-01 11:33:09 +0000416ARMNN_AUTO_TEST_CASE(ResizeBilinearNopNhwc, ResizeBilinearNopTest, armnn::DataLayout::NHWC)
417ARMNN_AUTO_TEST_CASE(SimpleResizeBilinearNhwc, SimpleResizeBilinearTest, armnn::DataLayout::NHWC)
418ARMNN_AUTO_TEST_CASE(ResizeBilinearSqMinNhwc, ResizeBilinearSqMinTest, armnn::DataLayout::NHWC)
419ARMNN_AUTO_TEST_CASE(ResizeBilinearMinNhwc, ResizeBilinearMinTest, armnn::DataLayout::NHWC)
420ARMNN_AUTO_TEST_CASE(ResizeBilinearMagNhwc, ResizeBilinearMagTest, armnn::DataLayout::NHWC)
James Conroy59540822018-10-11 12:39:05 +0100421
telsoa014fcda012018-03-09 14:13:49 +0000422// Fake Quantization
423ARMNN_AUTO_TEST_CASE(FakeQuantization, FakeQuantizationTest)
424
Matteo Martincigh539b44d2018-10-01 09:26:39 +0100425// L2 Normalization
jimfly013aab7c32018-11-12 13:32:08 +0000426ARMNN_AUTO_TEST_CASE(L2Normalization1d, L2Normalization1dTest, armnn::DataLayout::NCHW)
427ARMNN_AUTO_TEST_CASE(L2Normalization2d, L2Normalization2dTest, armnn::DataLayout::NCHW)
428ARMNN_AUTO_TEST_CASE(L2Normalization3d, L2Normalization3dTest, armnn::DataLayout::NCHW)
429ARMNN_AUTO_TEST_CASE(L2Normalization4d, L2Normalization4dTest, armnn::DataLayout::NCHW)
430
431ARMNN_AUTO_TEST_CASE(L2Normalization1dNhwc, L2Normalization1dTest, armnn::DataLayout::NHWC)
432ARMNN_AUTO_TEST_CASE(L2Normalization2dNhwc, L2Normalization2dTest, armnn::DataLayout::NHWC)
433ARMNN_AUTO_TEST_CASE(L2Normalization3dNhwc, L2Normalization3dTest, armnn::DataLayout::NHWC)
434ARMNN_AUTO_TEST_CASE(L2Normalization4dNhwc, L2Normalization4dTest, armnn::DataLayout::NHWC)
telsoa014fcda012018-03-09 14:13:49 +0000435
Mohamed Nour Abouelseoud7420e552018-10-12 12:26:24 +0100436// Pad
Mohamed Nour Abouelseouddd6acea2018-10-18 12:26:19 +0100437ARMNN_AUTO_TEST_CASE(PadFloat322d, PadFloat322dTest)
438ARMNN_AUTO_TEST_CASE(PadFloat323d, PadFloat323dTest)
439ARMNN_AUTO_TEST_CASE(PadFloat324d, PadFloat324dTest)
440
441ARMNN_AUTO_TEST_CASE(PadUint82d, PadUint82dTest)
442ARMNN_AUTO_TEST_CASE(PadUint83d, PadUint83dTest)
443ARMNN_AUTO_TEST_CASE(PadUint84d, PadUint84dTest)
Mohamed Nour Abouelseoud7420e552018-10-12 12:26:24 +0100444
telsoa014fcda012018-03-09 14:13:49 +0000445// Constant
446ARMNN_AUTO_TEST_CASE(Constant, ConstantTest)
Nina Drozd58ef2c62019-05-16 12:09:18 +0100447ARMNN_AUTO_TEST_CASE(ConstantUint8, ConstantUint8CustomQuantizationScaleAndOffsetTest)
448ARMNN_AUTO_TEST_CASE(ConstantInt16, ConstantInt16CustomQuantizationScaleAndOffsetTest)
telsoa014fcda012018-03-09 14:13:49 +0000449
450// Concat
451ARMNN_AUTO_TEST_CASE(Concatenation1d, Concatenation1dTest)
452ARMNN_AUTO_TEST_CASE(Concatenation1dUint8, Concatenation1dUint8Test)
453
454ARMNN_AUTO_TEST_CASE(Concatenation2dDim0, Concatenation2dDim0Test)
455ARMNN_AUTO_TEST_CASE(Concatenation2dDim0Uint8, Concatenation2dDim0Uint8Test)
456ARMNN_AUTO_TEST_CASE(Concatenation2dDim1, Concatenation2dDim1Test)
457ARMNN_AUTO_TEST_CASE(Concatenation2dDim1Uint8, Concatenation2dDim1Uint8Test)
458
459ARMNN_AUTO_TEST_CASE(Concatenation2dDim0DiffInputDims, Concatenation2dDim0DiffInputDimsTest)
460ARMNN_AUTO_TEST_CASE(Concatenation2dDim0DiffInputDimsUint8, Concatenation2dDim0DiffInputDimsUint8Test)
461ARMNN_AUTO_TEST_CASE(Concatenation2dDim1DiffInputDims, Concatenation2dDim1DiffInputDimsTest)
462ARMNN_AUTO_TEST_CASE(Concatenation2dDim1DiffInputDimsUint8, Concatenation2dDim1DiffInputDimsUint8Test)
463
464ARMNN_AUTO_TEST_CASE(Concatenation3dDim0, Concatenation3dDim0Test)
465ARMNN_AUTO_TEST_CASE(Concatenation3dDim0Uint8, Concatenation3dDim0Uint8Test)
466ARMNN_AUTO_TEST_CASE(Concatenation3dDim1, Concatenation3dDim1Test)
467ARMNN_AUTO_TEST_CASE(Concatenation3dDim1Uint8, Concatenation3dDim1Uint8Test)
narpra015cdda352018-11-19 15:30:27 +0000468ARMNN_AUTO_TEST_CASE(Concatenation3dDim2, Concatenation3dDim2Test, true)
469ARMNN_AUTO_TEST_CASE(Concatenation3dDim2Uint8, Concatenation3dDim2Uint8Test, true)
telsoa014fcda012018-03-09 14:13:49 +0000470
471ARMNN_AUTO_TEST_CASE(Concatenation3dDim0DiffInputDims, Concatenation3dDim0DiffInputDimsTest)
472ARMNN_AUTO_TEST_CASE(Concatenation3dDim0DiffInputDimsUint8, Concatenation3dDim0DiffInputDimsUint8Test)
473ARMNN_AUTO_TEST_CASE(Concatenation3dDim1DiffInputDims, Concatenation3dDim1DiffInputDimsTest)
474ARMNN_AUTO_TEST_CASE(Concatenation3dDim1DiffInputDimsUint8, Concatenation3dDim1DiffInputDimsUint8Test)
narpra015cdda352018-11-19 15:30:27 +0000475ARMNN_AUTO_TEST_CASE(Concatenation3dDim2DiffInputDims, Concatenation3dDim2DiffInputDimsTest, true)
476ARMNN_AUTO_TEST_CASE(Concatenation3dDim2DiffInputDimsUint8, Concatenation3dDim2DiffInputDimsUint8Test, true)
477
478ARMNN_AUTO_TEST_CASE(Concatenation4dDim0, Concatenation4dDim0Test)
479ARMNN_AUTO_TEST_CASE(Concatenation4dDim1, Concatenation4dDim1Test)
480ARMNN_AUTO_TEST_CASE(Concatenation4dDim2, Concatenation4dDim2Test)
481ARMNN_AUTO_TEST_CASE(Concatenation4dDim3, Concatenation4dDim3Test, true)
482ARMNN_AUTO_TEST_CASE(Concatenation4dDim0Uint8, Concatenation4dDim0Uint8Test)
483ARMNN_AUTO_TEST_CASE(Concatenation4dDim1Uint8, Concatenation4dDim1Uint8Test)
484ARMNN_AUTO_TEST_CASE(Concatenation4dDim2Uint8, Concatenation4dDim2Uint8Test)
485ARMNN_AUTO_TEST_CASE(Concatenation4dDim3Uint8, Concatenation4dDim3Uint8Test, true)
486
487ARMNN_AUTO_TEST_CASE(Concatenation4dDiffShapeDim0, Concatenation4dDiffShapeDim0Test)
488ARMNN_AUTO_TEST_CASE(Concatenation4dDiffShapeDim1, Concatenation4dDiffShapeDim1Test)
489ARMNN_AUTO_TEST_CASE(Concatenation4dDiffShapeDim2, Concatenation4dDiffShapeDim2Test)
490ARMNN_AUTO_TEST_CASE(Concatenation4dDiffShapeDim3, Concatenation4dDiffShapeDim3Test, true)
491ARMNN_AUTO_TEST_CASE(Concatenation4dDiffShapeDim0Uint8, Concatenation4dDiffShapeDim0Uint8Test)
492ARMNN_AUTO_TEST_CASE(Concatenation4dDiffShapeDim1Uint8, Concatenation4dDiffShapeDim1Uint8Test)
493ARMNN_AUTO_TEST_CASE(Concatenation4dDiffShapeDim2Uint8, Concatenation4dDiffShapeDim2Uint8Test)
494ARMNN_AUTO_TEST_CASE(Concatenation4dDiffShapeDim3Uint8, Concatenation4dDiffShapeDim3Uint8Test, true)
telsoa014fcda012018-03-09 14:13:49 +0000495
496// Floor
James Conroy83735b12019-05-30 16:36:59 +0100497ARMNN_AUTO_TEST_CASE(SimpleFloor, SimpleFloorTest<armnn::DataType::Float32>)
James Conroyb40d7102019-06-04 12:32:09 +0100498ARMNN_AUTO_TEST_CASE(SimpleFloorQuantisedSymm16, SimpleFloorTest<armnn::DataType::QuantisedSymm16>)
telsoa014fcda012018-03-09 14:13:49 +0000499
500// Reshape
Nina Drozd8ed4b8c2019-05-29 10:41:04 +0100501ARMNN_AUTO_TEST_CASE(SimpleReshapeFloat32, SimpleReshapeTest<armnn::DataType::Float32>)
502ARMNN_AUTO_TEST_CASE(SimpleReshapeQuantisedAsymm8, SimpleReshapeTest<armnn::DataType::QuantisedAsymm8>)
503ARMNN_AUTO_TEST_CASE(SimpleReshapeQuantisedSymm16, SimpleReshapeTest<armnn::DataType::QuantisedSymm16>)
telsoa014fcda012018-03-09 14:13:49 +0000504
Mohamed Nour Abouelseouda1d3c6a2018-12-27 12:39:16 +0000505// Rsqrt
nikraj0193f84a92019-06-05 10:48:46 +0100506ARMNN_AUTO_TEST_CASE(Rsqrt2d, Rsqrt2dTest<armnn::DataType::Float32>)
507ARMNN_AUTO_TEST_CASE(Rsqrt3d, Rsqrt3dTest<armnn::DataType::Float32>)
508ARMNN_AUTO_TEST_CASE(RsqrtZero, RsqrtZeroTest<armnn::DataType::Float32>)
509ARMNN_AUTO_TEST_CASE(RsqrtNegative, RsqrtNegativeTest<armnn::DataType::Float32>)
Mohamed Nour Abouelseouda1d3c6a2018-12-27 12:39:16 +0000510
telsoa014fcda012018-03-09 14:13:49 +0000511// Permute
512ARMNN_AUTO_TEST_CASE(SimplePermuteFloat32, SimplePermuteFloat32Test)
513ARMNN_AUTO_TEST_CASE(SimplePermuteUint8, SimplePermuteUint8Test)
surmeh01bceff2f2018-03-29 16:29:27 +0100514ARMNN_AUTO_TEST_CASE(PermuteFloat32ValueSet1, PermuteFloat32ValueSet1Test)
515ARMNN_AUTO_TEST_CASE(PermuteFloat32ValueSet2, PermuteFloat32ValueSet2Test)
516ARMNN_AUTO_TEST_CASE(PermuteFloat32ValueSet3, PermuteFloat32ValueSet3Test)
telsoa014fcda012018-03-09 14:13:49 +0000517
Matteo Martincigha65b7ae2018-11-14 12:39:55 +0000518// Lstm
519ARMNN_AUTO_TEST_CASE(LstmLayerFloat32WithCifgWithPeepholeNoProjection,
520 LstmLayerFloat32WithCifgWithPeepholeNoProjectionTest)
521ARMNN_AUTO_TEST_CASE(LstmLayerFloat32NoCifgNoPeepholeNoProjection,
522 LstmLayerFloat32NoCifgNoPeepholeNoProjectionTest)
523ARMNN_AUTO_TEST_CASE(LstmLayerFloat32NoCifgWithPeepholeWithProjection,
524 LstmLayerFloat32NoCifgWithPeepholeWithProjectionTest)
525
Conor Kennedyb9971c92019-05-07 07:14:23 +0100526ARMNN_AUTO_TEST_CASE(LstmLayerInt16NoCifgNoPeepholeNoProjection,
527 LstmLayerInt16NoCifgNoPeepholeNoProjectionTest)
528ARMNN_AUTO_TEST_CASE(LstmLayerInt16WithCifgWithPeepholeNoProjection,
529 LstmLayerInt16WithCifgWithPeepholeNoProjectionTest)
530ARMNN_AUTO_TEST_CASE(LstmLayerInt16NoCifgWithPeepholeWithProjection,
531 LstmLayerInt16NoCifgWithPeepholeWithProjectionTest)
532ARMNN_AUTO_TEST_CASE(LstmLayerInt16NoCifgNoPeepholeNoProjectionInt16Constant,
533 LstmLayerInt16NoCifgNoPeepholeNoProjectionInt16ConstantTest)
534
telsoa01c577f2c2018-08-31 09:22:23 +0100535// Convert from Float16 to Float32
536ARMNN_AUTO_TEST_CASE(SimpleConvertFp16ToFp32, SimpleConvertFp16ToFp32Test)
537// Convert from Float32 to Float16
538ARMNN_AUTO_TEST_CASE(SimpleConvertFp32ToFp16, SimpleConvertFp32ToFp16Test)
539
narpra011e4c31d2018-09-28 11:07:51 +0100540// Mean
541ARMNN_AUTO_TEST_CASE(MeanUint8Simple, MeanUint8SimpleTest)
542ARMNN_AUTO_TEST_CASE(MeanUint8SimpleAxis, MeanUint8SimpleAxisTest)
543ARMNN_AUTO_TEST_CASE(MeanUint8KeepDims, MeanUint8KeepDimsTest)
544ARMNN_AUTO_TEST_CASE(MeanUint8MultipleDims, MeanUint8MultipleDimsTest)
545ARMNN_AUTO_TEST_CASE(MeanVtsUint8, MeanVtsUint8Test)
546
547ARMNN_AUTO_TEST_CASE(MeanFloatSimple, MeanFloatSimpleTest)
548ARMNN_AUTO_TEST_CASE(MeanFloatSimpleAxis, MeanFloatSimpleAxisTest)
549ARMNN_AUTO_TEST_CASE(MeanFloatKeepDims, MeanFloatKeepDimsTest)
550ARMNN_AUTO_TEST_CASE(MeanFloatMultipleDims, MeanFloatMultipleDimsTest)
551ARMNN_AUTO_TEST_CASE(MeanVtsFloat1, MeanVtsFloat1Test)
552ARMNN_AUTO_TEST_CASE(MeanVtsFloat2, MeanVtsFloat2Test)
Matteo Martincigh28dcab62018-10-19 16:40:03 +0100553ARMNN_AUTO_TEST_CASE(MeanVtsFloat3, MeanVtsFloat3Test)
narpra011e4c31d2018-09-28 11:07:51 +0100554
Éanna Ó Catháin47c1ddb2018-10-12 14:24:13 +0100555ARMNN_AUTO_TEST_CASE(AdditionAfterMaxPool, AdditionAfterMaxPoolTest)
556
Nattapat Chaimanowong3ea76d52018-11-09 14:10:38 +0000557// Space To Batch Nd
558ARMNN_AUTO_TEST_CASE(SpaceToBatchNdSimpleFloat32, SpaceToBatchNdSimpleFloat32Test)
559ARMNN_AUTO_TEST_CASE(SpaceToBatchNdMultiChannelsFloat32, SpaceToBatchNdMultiChannelsFloat32Test)
560ARMNN_AUTO_TEST_CASE(SpaceToBatchNdMultiBlockFloat32, SpaceToBatchNdMultiBlockFloat32Test)
561ARMNN_AUTO_TEST_CASE(SpaceToBatchNdPaddingFloat32, SpaceToBatchNdPaddingFloat32Test)
562
563ARMNN_AUTO_TEST_CASE(SpaceToBatchNdSimpleUint8, SpaceToBatchNdSimpleUint8Test)
564ARMNN_AUTO_TEST_CASE(SpaceToBatchNdMultiChannelsUint8, SpaceToBatchNdMultiChannelsUint8Test)
565ARMNN_AUTO_TEST_CASE(SpaceToBatchNdMultiBlockUint8, SpaceToBatchNdMultiBlockUint8Test)
566ARMNN_AUTO_TEST_CASE(SpaceToBatchNdPaddingUint8, SpaceToBatchNdPaddingUint8Test)
567
568ARMNN_AUTO_TEST_CASE(SpaceToBatchNdSimpleNHWCFloat32, SpaceToBatchNdSimpleNHWCFloat32Test)
569ARMNN_AUTO_TEST_CASE(SpaceToBatchNdMultiChannelsNHWCFloat32, SpaceToBatchNdMultiChannelsNHWCFloat32Test)
570ARMNN_AUTO_TEST_CASE(SpaceToBatchNdMultiBlockNHWCFloat32, SpaceToBatchNdMultiBlockNHWCFloat32Test)
571ARMNN_AUTO_TEST_CASE(SpaceToBatchNdPaddingNHWCFloat32, SpaceToBatchNdPaddingNHWCFloat32Test)
572
573ARMNN_AUTO_TEST_CASE(SpaceToBatchNdSimpleNHWCUint8, SpaceToBatchNdSimpleNHWCUint8Test)
574ARMNN_AUTO_TEST_CASE(SpaceToBatchNdMultiChannelsNHWCUint8, SpaceToBatchNdMultiChannelsNHWCUint8Test)
575ARMNN_AUTO_TEST_CASE(SpaceToBatchNdMultiBlockNHWCUint8, SpaceToBatchNdMultiBlockNHWCUint8Test)
576ARMNN_AUTO_TEST_CASE(SpaceToBatchNdPaddingNHWCUint8, SpaceToBatchNdPaddingNHWCUint8Test)
577
nikraj01120522a2019-05-31 11:33:07 +0100578ARMNN_AUTO_TEST_CASE(SpaceToBatchNdSimpleUint16, SpaceToBatchNdSimpleUint16Test)
579ARMNN_AUTO_TEST_CASE(SpaceToBatchNdMultiChannelsUint16, SpaceToBatchNdMultiChannelsUint16Test)
580ARMNN_AUTO_TEST_CASE(SpaceToBatchNdMultiBlockUint16, SpaceToBatchNdMultiBlockUint16Test)
581ARMNN_AUTO_TEST_CASE(SpaceToBatchNdPaddingUint16, SpaceToBatchNdPaddingUint16Test)
582
583ARMNN_AUTO_TEST_CASE(SpaceToBatchNdSimpleNHWCUint16, SpaceToBatchNdSimpleNHWCUint16Test)
584ARMNN_AUTO_TEST_CASE(SpaceToBatchNdMultiChannelsNHWCUint16, SpaceToBatchNdMultiChannelsNHWCUint16Test)
585ARMNN_AUTO_TEST_CASE(SpaceToBatchNdMultiBlockNHWCUint16, SpaceToBatchNdMultiBlockNHWCUint16Test)
586ARMNN_AUTO_TEST_CASE(SpaceToBatchNdPaddingNHWCUint16, SpaceToBatchNdPaddingNHWCUint16Test)
587
Éanna Ó Catháin4e1e1362018-11-12 11:36:34 +0000588ARMNN_AUTO_TEST_CASE(BatchToSpaceNdNhwcFloat321, BatchToSpaceNdNhwcFloat32Test1)
589ARMNN_AUTO_TEST_CASE(BatchToSpaceNdNhwcFloat322, BatchToSpaceNdNhwcFloat32Test2)
590ARMNN_AUTO_TEST_CASE(BatchToSpaceNdNhwcFloat323, BatchToSpaceNdNhwcFloat32Test3)
Nattapat Chaimanowong3ee14222019-02-27 10:28:09 +0000591ARMNN_AUTO_TEST_CASE(BatchToSpaceNdNhwcFloat324, BatchToSpaceNdNhwcFloat32Test4)
Éanna Ó Catháin4e1e1362018-11-12 11:36:34 +0000592
593ARMNN_AUTO_TEST_CASE(BatchToSpaceNdNchwFloat321, BatchToSpaceNdNchwFloat32Test1)
Mike Kelly831faed2018-11-28 11:52:08 +0000594ARMNN_AUTO_TEST_CASE(BatchToSpaceNdNchwFloat322, BatchToSpaceNdNchwFloat32Test2)
595ARMNN_AUTO_TEST_CASE(BatchToSpaceNdNchwFloat323, BatchToSpaceNdNchwFloat32Test3)
Éanna Ó Catháin4e1e1362018-11-12 11:36:34 +0000596
Éanna Ó Catháin262553e2018-11-14 11:26:23 +0000597ARMNN_AUTO_TEST_CASE(BatchToSpaceNdNhwcUint1, BatchToSpaceNdNhwcUintTest1)
Mike Kelly831faed2018-11-28 11:52:08 +0000598ARMNN_AUTO_TEST_CASE(BatchToSpaceNdNhwcUint2, BatchToSpaceNdNhwcUintTest2)
599ARMNN_AUTO_TEST_CASE(BatchToSpaceNdNhwcUint3, BatchToSpaceNdNhwcUintTest3)
600
601ARMNN_AUTO_TEST_CASE(BatchToSpaceNdNchwUint1, BatchToSpaceNdNchwUintTest1)
602ARMNN_AUTO_TEST_CASE(BatchToSpaceNdNchwUint2, BatchToSpaceNdNchwUintTest2)
603ARMNN_AUTO_TEST_CASE(BatchToSpaceNdNchwUint3, BatchToSpaceNdNchwUintTest3)
Nattapat Chaimanowong3ee14222019-02-27 10:28:09 +0000604ARMNN_AUTO_TEST_CASE(BatchToSpaceNdNchwUint4, BatchToSpaceNdNchwUintTest4)
Éanna Ó Catháin262553e2018-11-14 11:26:23 +0000605
Nattapat Chaimanowong1216b582018-11-23 15:33:41 +0000606// Strided Slice
607ARMNN_AUTO_TEST_CASE(StridedSlice4DFloat32, StridedSlice4DFloat32Test)
608ARMNN_AUTO_TEST_CASE(StridedSlice4DReverseFloat32, StridedSlice4DReverseFloat32Test)
609ARMNN_AUTO_TEST_CASE(StridedSliceSimpleStrideFloat32, StridedSliceSimpleStrideFloat32Test)
610ARMNN_AUTO_TEST_CASE(StridedSliceSimpleRangeMaskFloat32, StridedSliceSimpleRangeMaskFloat32Test)
611ARMNN_AUTO_TEST_CASE(StridedSliceShrinkAxisMaskFloat32, StridedSliceShrinkAxisMaskFloat32Test)
612ARMNN_AUTO_TEST_CASE(StridedSlice3DFloat32, StridedSlice3DFloat32Test)
613ARMNN_AUTO_TEST_CASE(StridedSlice3DReverseFloat32, StridedSlice3DReverseFloat32Test)
614ARMNN_AUTO_TEST_CASE(StridedSlice2DFloat32, StridedSlice2DFloat32Test)
615ARMNN_AUTO_TEST_CASE(StridedSlice2DReverseFloat32, StridedSlice2DReverseFloat32Test)
616
617ARMNN_AUTO_TEST_CASE(StridedSlice4DUint8, StridedSlice4DUint8Test)
618ARMNN_AUTO_TEST_CASE(StridedSlice4DReverseUint8, StridedSlice4DReverseUint8Test)
619ARMNN_AUTO_TEST_CASE(StridedSliceSimpleStrideUint8, StridedSliceSimpleStrideUint8Test)
620ARMNN_AUTO_TEST_CASE(StridedSliceSimpleRangeMaskUint8, StridedSliceSimpleRangeMaskUint8Test)
621ARMNN_AUTO_TEST_CASE(StridedSliceShrinkAxisMaskUint8, StridedSliceShrinkAxisMaskUint8Test)
622ARMNN_AUTO_TEST_CASE(StridedSlice3DUint8, StridedSlice3DUint8Test)
623ARMNN_AUTO_TEST_CASE(StridedSlice3DReverseUint8, StridedSlice3DReverseUint8Test)
624ARMNN_AUTO_TEST_CASE(StridedSlice2DUint8, StridedSlice2DUint8Test)
625ARMNN_AUTO_TEST_CASE(StridedSlice2DReverseUint8, StridedSlice2DReverseUint8Test)
626
Matteo Martincigh42666a12019-05-29 08:53:41 +0100627ARMNN_AUTO_TEST_CASE(StridedSlice4DInt16, StridedSlice4DInt16Test)
628ARMNN_AUTO_TEST_CASE(StridedSlice4DReverseInt16, StridedSlice4DReverseInt16Test)
629ARMNN_AUTO_TEST_CASE(StridedSliceSimpleStrideInt16, StridedSliceSimpleStrideInt16Test)
630ARMNN_AUTO_TEST_CASE(StridedSliceSimpleRangeMaskInt16, StridedSliceSimpleRangeMaskInt16Test)
631ARMNN_AUTO_TEST_CASE(StridedSliceShrinkAxisMaskInt16, StridedSliceShrinkAxisMaskInt16Test)
632ARMNN_AUTO_TEST_CASE(StridedSlice3DInt16, StridedSlice3DInt16Test)
633ARMNN_AUTO_TEST_CASE(StridedSlice3DReverseInt16, StridedSlice3DReverseInt16Test)
634ARMNN_AUTO_TEST_CASE(StridedSlice2DInt16, StridedSlice2DInt16Test)
635ARMNN_AUTO_TEST_CASE(StridedSlice2DReverseInt16, StridedSlice2DReverseInt16Test)
636
Nattapat Chaimanowongcfdcadf2018-12-06 11:54:33 +0000637// Debug
638ARMNN_AUTO_TEST_CASE(Debug4DFloat32, Debug4DFloat32Test)
639ARMNN_AUTO_TEST_CASE(Debug3DFloat32, Debug3DFloat32Test)
640ARMNN_AUTO_TEST_CASE(Debug2DFloat32, Debug2DFloat32Test)
641ARMNN_AUTO_TEST_CASE(Debug1DFloat32, Debug1DFloat32Test)
642
643ARMNN_AUTO_TEST_CASE(Debug4DUint8, Debug4DUint8Test)
644ARMNN_AUTO_TEST_CASE(Debug3DUint8, Debug3DUint8Test)
645ARMNN_AUTO_TEST_CASE(Debug2DUint8, Debug2DUint8Test)
646ARMNN_AUTO_TEST_CASE(Debug1DUint8, Debug1DUint8Test)
647
narpra014951d842019-01-18 16:53:53 +0000648// Gather
649ARMNN_AUTO_TEST_CASE(Gather1DParamsFloat, Gather1DParamsFloatTest)
650ARMNN_AUTO_TEST_CASE(Gather1DParamsUint8, Gather1DParamsUint8Test)
651ARMNN_AUTO_TEST_CASE(GatherMultiDimParamsFloat, GatherMultiDimParamsFloatTest)
652ARMNN_AUTO_TEST_CASE(GatherMultiDimParamsUint8, GatherMultiDimParamsUint8Test)
653ARMNN_AUTO_TEST_CASE(GatherMultiDimParamsMultiDimIndicesFloat, GatherMultiDimParamsMultiDimIndicesFloatTest)
654ARMNN_AUTO_TEST_CASE(GatherMultiDimParamsMultiDimIndicesUint8, GatherMultiDimParamsMultiDimIndicesUint8Test)
655
Narumol Prangnawarate0a4ad82019-02-04 19:05:27 +0000656// Detection PostProcess
657BOOST_AUTO_TEST_CASE(DetectionPostProcessRegularNmsFloat)
658{
659 DetectionPostProcessRegularNmsFloatTest<armnn::RefWorkloadFactory>();
660}
661BOOST_AUTO_TEST_CASE(DetectionPostProcessFastNmsFloat)
662{
663 DetectionPostProcessFastNmsFloatTest<armnn::RefWorkloadFactory>();
664}
665BOOST_AUTO_TEST_CASE(DetectionPostProcessRegularNmsUint8)
666{
Aron Virginas-Tar6331f912019-06-03 17:10:02 +0100667 DetectionPostProcessRegularNmsQuantizedTest<
668 armnn::RefWorkloadFactory, armnn::DataType::QuantisedAsymm8>();
Narumol Prangnawarate0a4ad82019-02-04 19:05:27 +0000669}
670BOOST_AUTO_TEST_CASE(DetectionPostProcessFastNmsUint8)
671{
Aron Virginas-Tar6331f912019-06-03 17:10:02 +0100672 DetectionPostProcessRegularNmsQuantizedTest<
673 armnn::RefWorkloadFactory, armnn::DataType::QuantisedAsymm8>();
674}
675BOOST_AUTO_TEST_CASE(DetectionPostProcessRegularNmsInt16)
676{
677 DetectionPostProcessRegularNmsQuantizedTest<
678 armnn::RefWorkloadFactory, armnn::DataType::QuantisedSymm16>();
679}
680BOOST_AUTO_TEST_CASE(DetectionPostProcessFastNmsInt16)
681{
682 DetectionPostProcessFastNmsQuantizedTest<
683 armnn::RefWorkloadFactory, armnn::DataType::QuantisedSymm16>();
Narumol Prangnawarate0a4ad82019-02-04 19:05:27 +0000684}
685
Nattapat Chaimanowong8a54ac02019-03-29 15:25:04 +0000686// Dequantize
Nattapat Chaimanowongafa4e3a2019-04-02 11:41:45 +0100687ARMNN_AUTO_TEST_CASE(DequantizeSimpleUint8, DequantizeSimpleUint8Test)
688ARMNN_AUTO_TEST_CASE(DequantizeOffsetUint8, DequantizeOffsetUint8Test)
689ARMNN_AUTO_TEST_CASE(DequantizeSimpleInt16, DequantizeSimpleInt16Test)
Narumol Prangnawarate0a4ad82019-02-04 19:05:27 +0000690
Nattapat Chaimanowonga0beb3b2019-04-01 17:04:53 +0100691// Quantize
692ARMNN_AUTO_TEST_CASE(QuantizeSimpleUint8, QuantizeSimpleUint8Test)
693ARMNN_AUTO_TEST_CASE(QuantizeClampUint8, QuantizeClampUint8Test)
694ARMNN_AUTO_TEST_CASE(QuantizeClampInt16, QuantizeClampInt16Test)
695
telsoa014fcda012018-03-09 14:13:49 +0000696BOOST_AUTO_TEST_SUITE_END()