Laurent Carlier | 749294b | 2020-06-01 09:03:17 +0100 | [diff] [blame] | 1 | // |
Mike Kelly | 0e3fe10 | 2023-01-23 19:32:06 +0000 | [diff] [blame] | 2 | // Copyright © 2017-2023 Arm Ltd and Contributors. All rights reserved. |
David Beck | ecb56cd | 2018-09-05 12:52:57 +0100 | [diff] [blame] | 3 | // SPDX-License-Identifier: MIT |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 4 | // |
arovir01 | 43095f3 | 2018-10-09 18:04:24 +0100 | [diff] [blame] | 5 | |
| 6 | #include "ClContextControlFixture.hpp" |
Aron Virginas-Tar | 5605519 | 2018-11-12 18:10:43 +0000 | [diff] [blame] | 7 | #include "ClWorkloadFactoryHelper.hpp" |
arovir01 | 43095f3 | 2018-10-09 18:04:24 +0100 | [diff] [blame] | 8 | |
Colm Donelan | c42a987 | 2022-02-02 16:35:09 +0000 | [diff] [blame] | 9 | #include <armnnTestUtils/TensorHelpers.hpp> |
Sadik Armagan | a097d2a | 2021-11-24 15:47:28 +0000 | [diff] [blame] | 10 | #include <UnitTests.hpp> |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 11 | |
Aron Virginas-Tar | c9cc804 | 2018-11-01 16:15:57 +0000 | [diff] [blame] | 12 | #include <cl/ClLayerSupport.hpp> |
| 13 | #include <cl/ClWorkloadFactory.hpp> |
| 14 | #include <cl/workloads/ClWorkloadUtils.hpp> |
Aron Virginas-Tar | 00d306e | 2019-08-28 18:08:46 +0100 | [diff] [blame] | 15 | |
Aron Virginas-Tar | c9cc804 | 2018-11-01 16:15:57 +0000 | [diff] [blame] | 16 | #include <backendsCommon/test/ActivationFixture.hpp> |
| 17 | #include <backendsCommon/test/LayerTests.hpp> |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 18 | |
| 19 | #include <arm_compute/core/CL/CLKernelLibrary.h> |
| 20 | #include <arm_compute/runtime/CL/CLScheduler.h> |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 21 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 22 | #include <doctest/doctest.h> |
arovir01 | 43095f3 | 2018-10-09 18:04:24 +0100 | [diff] [blame] | 23 | |
| 24 | #include <iostream> |
| 25 | #include <string> |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 26 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 27 | TEST_SUITE("Compute_ArmComputeCl") |
| 28 | { |
Aron Virginas-Tar | d8edabb | 2019-08-12 14:29:59 +0100 | [diff] [blame] | 29 | |
| 30 | using namespace armnn; |
| 31 | |
| 32 | using FactoryType = ClWorkloadFactory; |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 33 | |
| 34 | // ============================================================================ |
| 35 | // UNIT tests |
| 36 | |
| 37 | // Activation |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 38 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ConstantLinearActivation, ClContextControlFixture, ConstantLinearActivationTest) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 39 | |
Teresa Charlin | e32c844 | 2020-03-05 14:41:50 +0000 | [diff] [blame] | 40 | // Sigmoid Activation / Logistic |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 41 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleSigmoid, ClContextControlFixture, SimpleSigmoidTest) |
| 42 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleSigmoidUint8, ClContextControlFixture, SimpleSigmoidUint8Test) |
Teresa Charlin | e32c844 | 2020-03-05 14:41:50 +0000 | [diff] [blame] | 43 | |
| 44 | // BoundedReLU Activation |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 45 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ReLu1, ClContextControlFixture, BoundedReLuUpperAndLowerBoundTest) |
| 46 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ReLu6, ClContextControlFixture, BoundedReLuUpperBoundOnlyTest) |
| 47 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ReLu1Uint8, ClContextControlFixture, BoundedReLuUint8UpperAndLowerBoundTest) |
| 48 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ReLu6Uint8, ClContextControlFixture, BoundedReLuUint8UpperBoundOnlyTest) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 49 | |
Teresa Charlin | e32c844 | 2020-03-05 14:41:50 +0000 | [diff] [blame] | 50 | // ReLU Activation |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 51 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ReLu, ClContextControlFixture, ReLuTest) |
| 52 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ReLuUint8, ClContextControlFixture, ReLuUint8Test) |
David Monahan | 3b3c381 | 2020-02-25 09:03:29 +0000 | [diff] [blame] | 53 | |
Teresa Charlin | e32c844 | 2020-03-05 14:41:50 +0000 | [diff] [blame] | 54 | // SoftReLU Activation |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 55 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SoftReLu, ClContextControlFixture, SoftReLuTest) |
Teresa Charlin | e32c844 | 2020-03-05 14:41:50 +0000 | [diff] [blame] | 56 | |
| 57 | // LeakyReLU Activation |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 58 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(LeakyReLu, ClContextControlFixture, LeakyReLuTest) |
Teresa Charlin | e32c844 | 2020-03-05 14:41:50 +0000 | [diff] [blame] | 59 | |
| 60 | // Abs Activation |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 61 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Abs, ClContextControlFixture, AbsTest) |
Finn Williams | b5b9bdf | 2019-02-18 10:07:34 +0000 | [diff] [blame] | 62 | |
Sadik Armagan | 6095ba5 | 2019-09-13 17:07:19 +0100 | [diff] [blame] | 63 | // Sqrt Activation |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 64 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Sqrt, ClContextControlFixture, SqrtTest) |
| 65 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SqrtNN, ClContextControlFixture, SqrtNNTest) |
Sadik Armagan | 6095ba5 | 2019-09-13 17:07:19 +0100 | [diff] [blame] | 66 | |
Teresa Charlin | e32c844 | 2020-03-05 14:41:50 +0000 | [diff] [blame] | 67 | // Square Activation |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 68 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Square, ClContextControlFixture, SquareTest) |
Teresa Charlin | e32c844 | 2020-03-05 14:41:50 +0000 | [diff] [blame] | 69 | |
| 70 | // Tanh Activation |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 71 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Tanh, ClContextControlFixture, TanhTest) |
Teresa Charlin | e32c844 | 2020-03-05 14:41:50 +0000 | [diff] [blame] | 72 | |
| 73 | // Elu Activation |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 74 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Elu, ClContextControlFixture, EluTest) |
Teresa Charlin | e32c844 | 2020-03-05 14:41:50 +0000 | [diff] [blame] | 75 | |
Teresa Charlin | 94916a5 | 2022-10-19 08:48:07 +0100 | [diff] [blame] | 76 | // Batch Mat Mul |
| 77 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(BatchMatMul2DSimpleFloat32, |
| 78 | ClContextControlFixture, |
| 79 | BatchMatMul2DSimpleTest<DataType::Float32>); |
| 80 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(BatchMatMul3DSimpleFloat32, |
| 81 | ClContextControlFixture, |
| 82 | BatchMatMul3DSimpleTest<DataType::Float32>); |
Mike Kelly | 0e3fe10 | 2023-01-23 19:32:06 +0000 | [diff] [blame] | 83 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(BatchMatMulNCHWSimpleFloat32, |
| 84 | ClContextControlFixture, |
| 85 | BatchMatMulNCHWSimpleTest<DataType::Float32>); |
Teresa Charlin | 94916a5 | 2022-10-19 08:48:07 +0100 | [diff] [blame] | 86 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(BatchMatMul3DBatchFloat32, |
| 87 | ClContextControlFixture, |
| 88 | BatchMatMul3DBatchTest<DataType::Float32>); |
| 89 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(BatchMatMul3DBroadcastFloat32, |
| 90 | ClContextControlFixture, |
| 91 | BatchMatMul3DBroadcastTest<DataType::Float32>); |
| 92 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(BatchMatMul3D2DBroadcastFloat32, |
| 93 | ClContextControlFixture, |
| 94 | BatchMatMul3D2DBroadcastTest<DataType::Float32>); |
| 95 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(BatchMatMul2DTinyFloat32, |
| 96 | ClContextControlFixture, |
| 97 | BatchMatMul2DTinyTest<DataType::Float32>); |
| 98 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(BatchMatMul2DTranspSimpleFloat32, |
| 99 | ClContextControlFixture, |
| 100 | BatchMatMul2DTranspSimpleTest<DataType::Float32>); |
| 101 | |
Mike Kelly | 831faed | 2018-11-28 11:52:08 +0000 | [diff] [blame] | 102 | // Batch To Space |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 103 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(BatchToSpaceNdNhwcFloat321, |
| 104 | ClContextControlFixture, |
| 105 | BatchToSpaceNdNhwcTest1<DataType::Float32>) |
| 106 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(BatchToSpaceNdNhwcFloat322, |
| 107 | ClContextControlFixture, |
| 108 | BatchToSpaceNdNhwcTest2<DataType::Float32>) |
| 109 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(BatchToSpaceNdNhwcFloat323, |
| 110 | ClContextControlFixture, |
| 111 | BatchToSpaceNdNhwcTest3<DataType::Float32>) |
Mike Kelly | 831faed | 2018-11-28 11:52:08 +0000 | [diff] [blame] | 112 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 113 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(BatchToSpaceNdNchwFloat321, |
| 114 | ClContextControlFixture, |
| 115 | BatchToSpaceNdNchwTest1<DataType::Float32>) |
| 116 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(BatchToSpaceNdNchwFloat322, |
| 117 | ClContextControlFixture, |
| 118 | BatchToSpaceNdNchwTest2<DataType::Float32>) |
| 119 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(BatchToSpaceNdNchwFloat323, |
| 120 | ClContextControlFixture, |
| 121 | BatchToSpaceNdNchwTest3<DataType::Float32>) |
Mike Kelly | 831faed | 2018-11-28 11:52:08 +0000 | [diff] [blame] | 122 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 123 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(BatchToSpaceNdNhwcInt1, |
| 124 | ClContextControlFixture, |
| 125 | BatchToSpaceNdNhwcTest1<DataType::QAsymmS8>) |
| 126 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(BatchToSpaceNdNhwcInt2, |
| 127 | ClContextControlFixture, |
| 128 | BatchToSpaceNdNhwcTest2<DataType::QAsymmS8>) |
| 129 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(BatchToSpaceNdNhwcInt3, |
| 130 | ClContextControlFixture, |
| 131 | BatchToSpaceNdNhwcTest3<DataType::QAsymmS8>) |
Sadik Armagan | 303980c | 2020-04-17 12:45:14 +0100 | [diff] [blame] | 132 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 133 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(BatchToSpaceNdNchwInt1, |
| 134 | ClContextControlFixture, |
| 135 | BatchToSpaceNdNchwTest1<DataType::QAsymmS8>) |
| 136 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(BatchToSpaceNdNchwInt2, |
| 137 | ClContextControlFixture, |
| 138 | BatchToSpaceNdNchwTest2<DataType::QAsymmS8>) |
| 139 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(BatchToSpaceNdNchwInt3, |
| 140 | ClContextControlFixture, |
| 141 | BatchToSpaceNdNchwTest3<DataType::QAsymmS8>) |
Sadik Armagan | 303980c | 2020-04-17 12:45:14 +0100 | [diff] [blame] | 142 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 143 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(BatchToSpaceNdNhwcUint1, |
| 144 | ClContextControlFixture, |
| 145 | BatchToSpaceNdNhwcTest1<DataType::QAsymmU8>) |
| 146 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(BatchToSpaceNdNhwcUint2, |
| 147 | ClContextControlFixture, |
| 148 | BatchToSpaceNdNhwcTest2<DataType::QAsymmU8>) |
| 149 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(BatchToSpaceNdNhwcUint3, |
| 150 | ClContextControlFixture, |
| 151 | BatchToSpaceNdNhwcTest3<DataType::QAsymmU8>) |
Mike Kelly | 831faed | 2018-11-28 11:52:08 +0000 | [diff] [blame] | 152 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 153 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(BatchToSpaceNdNchwUint1, |
| 154 | ClContextControlFixture, |
| 155 | BatchToSpaceNdNchwTest1<DataType::QAsymmU8>) |
| 156 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(BatchToSpaceNdNchwUint2, |
| 157 | ClContextControlFixture, |
| 158 | BatchToSpaceNdNchwTest2<DataType::QAsymmU8>) |
| 159 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(BatchToSpaceNdNchwUint3, |
| 160 | ClContextControlFixture, |
| 161 | BatchToSpaceNdNchwTest3<DataType::QAsymmU8>) |
Mike Kelly | 831faed | 2018-11-28 11:52:08 +0000 | [diff] [blame] | 162 | |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 163 | // Fully Connected |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 164 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleFullyConnected, |
| 165 | ClContextControlFixture, |
| 166 | FullyConnectedFloat32Test, |
| 167 | false, |
| 168 | false) |
| 169 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleFullyConnectedWithBias, |
| 170 | ClContextControlFixture, |
| 171 | FullyConnectedFloat32Test, |
| 172 | true, |
| 173 | false) |
| 174 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleFullyConnectedWithTranspose, |
| 175 | ClContextControlFixture, |
| 176 | FullyConnectedFloat32Test, |
| 177 | false, |
| 178 | true) |
| 179 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(FullyConnectedUint8, |
| 180 | ClContextControlFixture, |
| 181 | FullyConnectedTest<DataType::QAsymmU8>, |
| 182 | false, |
| 183 | true) |
| 184 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(FullyConnectedBiasedUint8, |
| 185 | ClContextControlFixture, |
| 186 | FullyConnectedTest<DataType::QAsymmU8>, |
| 187 | true, |
| 188 | true) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 189 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 190 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(FullyConnectedLarge, |
| 191 | ClContextControlFixture, |
| 192 | FullyConnectedLargeTest, |
| 193 | false) |
| 194 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(FullyConnectedLargeTransposed, |
| 195 | ClContextControlFixture, |
| 196 | FullyConnectedLargeTest, |
| 197 | true) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 198 | |
| 199 | // Convolution |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 200 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleConvolution1d, |
| 201 | ClContextControlFixture, |
| 202 | Convolution1dTest, |
| 203 | true) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 204 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 205 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleConvolution2d, |
| 206 | ClContextControlFixture, |
| 207 | SimpleConvolution2d3x5Test, |
| 208 | true, |
| 209 | DataLayout::NCHW) |
| 210 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleConvolution2dNhwc, |
| 211 | ClContextControlFixture, |
| 212 | SimpleConvolution2d3x5Test, |
| 213 | true, |
| 214 | DataLayout::NHWC) |
| 215 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleConvolution2d3x3Uint8, |
| 216 | ClContextControlFixture, |
| 217 | SimpleConvolution2d3x3Uint8Test, |
| 218 | true, |
| 219 | DataLayout::NCHW) |
| 220 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleConvolution2d3x3Uint8Nhwc, |
| 221 | ClContextControlFixture, |
| 222 | SimpleConvolution2d3x3Uint8Test, |
| 223 | true, |
| 224 | DataLayout::NHWC) |
| 225 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(UnbiasedConvolution2d, |
| 226 | ClContextControlFixture, |
| 227 | SimpleConvolution2d3x5Test, |
| 228 | false, |
| 229 | DataLayout::NCHW) |
| 230 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(UnbiasedConvolution2dNhwc, |
| 231 | ClContextControlFixture, |
| 232 | SimpleConvolution2d3x5Test, |
| 233 | false, |
| 234 | DataLayout::NHWC) |
| 235 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(UnbiasedConvolution2dStride2x2Nhwc, |
| 236 | ClContextControlFixture, |
| 237 | SimpleConvolution2d3x3Stride2x2Test, |
| 238 | false, |
| 239 | DataLayout::NHWC) |
jimfly01 | 0a088a6 | 2018-10-25 17:05:05 +0100 | [diff] [blame] | 240 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 241 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(UnbiasedConvolution2dSquare, |
| 242 | ClContextControlFixture, |
| 243 | SimpleConvolution2d3x3Test, |
| 244 | false, |
| 245 | DataLayout::NCHW) |
| 246 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleConvolution2dAsymmetricPadding, |
| 247 | ClContextControlFixture, |
| 248 | Convolution2dAsymmetricPaddingTest, |
| 249 | DataLayout::NCHW) |
narpra01 | 5f70318 | 2018-10-26 16:24:58 +0100 | [diff] [blame] | 250 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 251 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(UnbiasedConvolution2dSquareNhwc, |
| 252 | ClContextControlFixture, |
| 253 | SimpleConvolution2d3x3Test, |
| 254 | false, |
| 255 | DataLayout::NHWC) |
| 256 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleConvolution2dAsymmetricPaddingNhwc, |
| 257 | ClContextControlFixture, |
| 258 | Convolution2dAsymmetricPaddingTest, |
| 259 | DataLayout::NHWC) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 260 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 261 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleConvolution2dSquareNhwc, |
| 262 | ClContextControlFixture, |
| 263 | SimpleConvolution2d3x3NhwcTest, |
| 264 | false) |
Francis Murtagh | d59116e | 2018-10-04 16:03:07 +0100 | [diff] [blame] | 265 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 266 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Convolution2d3x3Dilation3x3, |
| 267 | ClContextControlFixture, |
| 268 | Convolution2d3x3Dilation3x3Test<DataType::Float32, DataType::Float32>, |
| 269 | false, |
| 270 | DataLayout::NCHW) |
| 271 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Convolution2d3x3Dilation3x3Nhwc, |
| 272 | ClContextControlFixture, |
| 273 | Convolution2d3x3Dilation3x3Test<DataType::Float32, DataType::Float32>, |
| 274 | false, |
| 275 | DataLayout::NHWC) |
| 276 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Convolution2d3x3Dilation3x3Uint8, |
| 277 | ClContextControlFixture, |
| 278 | Convolution2d3x3Dilation3x3Test<DataType::QAsymmU8, DataType::Signed32>, |
| 279 | false, |
| 280 | DataLayout::NCHW) |
| 281 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Convolution2d3x3Dilation3x3NhwcUint8, |
| 282 | ClContextControlFixture, |
| 283 | Convolution2d3x3Dilation3x3Test<DataType::QAsymmU8, DataType::Signed32>, |
| 284 | false, |
| 285 | DataLayout::NHWC) |
| 286 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Convolution2d2x3x3Dilation3x3, |
| 287 | ClContextControlFixture, |
| 288 | Convolution2d2x3x3Dilation3x3Test<DataType::Float32, DataType::Float32>, |
| 289 | false, |
| 290 | DataLayout::NCHW) |
| 291 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Convolution2d2x3x3Dilation3x3Nhwc, |
| 292 | ClContextControlFixture, |
| 293 | Convolution2d2x3x3Dilation3x3Test<DataType::Float32, DataType::Float32>, |
| 294 | false, |
| 295 | DataLayout::NHWC) |
| 296 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Convolution2d2x3x3Dilation3x3Uint8, |
| 297 | ClContextControlFixture, |
| 298 | Convolution2d2x3x3Dilation3x3Test<DataType::QAsymmU8, DataType::Signed32>, |
| 299 | false, |
| 300 | DataLayout::NCHW) |
| 301 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Convolution2d2x3x3Dilation3x3NhwcUint8, |
| 302 | ClContextControlFixture, |
| 303 | Convolution2d2x3x3Dilation3x3Test<DataType::QAsymmU8, DataType::Signed32>, |
| 304 | false, |
| 305 | DataLayout::NHWC) |
| 306 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Convolution2d2x2Dilation2x2Padding2x2Stride3x3, |
| 307 | ClContextControlFixture, |
| 308 | Convolution2d2x2Dilation2x2Padding2x2Stride3x3Test<DataType::Float32, DataType::Float32>, |
| 309 | false, |
| 310 | DataLayout::NCHW) |
| 311 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Convolution2d2x2Dilation2x2Padding2x2Stride3x3Nhwc, |
| 312 | ClContextControlFixture, |
| 313 | Convolution2d2x2Dilation2x2Padding2x2Stride3x3Test<DataType::Float32, DataType::Float32>, |
| 314 | false, |
| 315 | DataLayout::NHWC) |
| 316 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Convolution2d2x2Dilation2x2Padding2x2Stride3x3Uint8, |
| 317 | ClContextControlFixture, |
| 318 | Convolution2d2x2Dilation2x2Padding2x2Stride3x3Test<DataType::QAsymmU8, DataType::Signed32>, |
| 319 | false, |
| 320 | DataLayout::NCHW) |
| 321 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Convolution2d2x2Dilation2x2Padding2x2Stride3x3NhwcUint8, |
| 322 | ClContextControlFixture, |
| 323 | Convolution2d2x2Dilation2x2Padding2x2Stride3x3Test<DataType::QAsymmU8, DataType::Signed32>, |
| 324 | false, |
| 325 | DataLayout::NHWC) |
Aron Virginas-Tar | d8edabb | 2019-08-12 14:29:59 +0100 | [diff] [blame] | 326 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 327 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Convolution2dPerAxisQuantTestNchw, |
| 328 | ClContextControlFixture, |
| 329 | Convolution2dPerAxisQuantTest, |
| 330 | DataLayout::NCHW); |
| 331 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Convolution2dPerAxisQuantTestNhwc, |
| 332 | ClContextControlFixture, |
| 333 | Convolution2dPerAxisQuantTest, |
| 334 | DataLayout::NHWC); |
Keith Davis | 899f64f | 2019-11-26 16:01:18 +0000 | [diff] [blame] | 335 | |
Teresa Charlin | 615ad6c | 2021-10-26 12:22:20 +0100 | [diff] [blame] | 336 | // Convolution 3d - NDHWC |
| 337 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleConvolution3d3x3x3Float32, |
| 338 | SimpleConvolution3d3x3x3Float32Test, |
| 339 | false, |
| 340 | DataLayout::NDHWC) |
| 341 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleConvolution3d3x3x3Int8, |
| 342 | SimpleConvolution3d3x3x3Int8Test, |
| 343 | false, |
| 344 | DataLayout::NDHWC) |
| 345 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleConvolution3d3x3x3Uint8, |
| 346 | SimpleConvolution3d3x3x3Uint8Test, |
| 347 | false, |
| 348 | DataLayout::NDHWC) |
| 349 | ARMNN_AUTO_TEST_CASE_WITH_THF(Convolution3d2x2x2Strides3x5x5Float32, |
| 350 | Convolution3d2x2x2Strides3x5x5Float32Test, |
| 351 | false, |
| 352 | DataLayout::NDHWC) |
| 353 | ARMNN_AUTO_TEST_CASE_WITH_THF(Convolution3d2x2x2Strides3x5x5TestInt8, |
| 354 | Convolution3d2x2x2Strides3x5x5Int8Test, |
| 355 | true, |
| 356 | DataLayout::NDHWC) |
| 357 | ARMNN_AUTO_TEST_CASE_WITH_THF(Convolution3d2x2x2Strides3x5x5TestUint8, |
| 358 | Convolution3d2x2x2Strides3x5x5Uint8Test, |
| 359 | false, |
| 360 | DataLayout::NDHWC) |
| 361 | ARMNN_AUTO_TEST_CASE_WITH_THF(Convolution3dPaddingSame3x3x3Float32, |
| 362 | Convolution3dPaddingSame3x3x3Float32Test, |
| 363 | false, |
| 364 | DataLayout::NDHWC) |
| 365 | ARMNN_AUTO_TEST_CASE_WITH_THF(Convolution3dPaddingSame3x3x3TestInt8, |
| 366 | Convolution3dPaddingSame3x3x3Int8Test, |
| 367 | false, |
| 368 | DataLayout::NDHWC) |
| 369 | ARMNN_AUTO_TEST_CASE_WITH_THF(Convolution3dPaddingSame3x3x3TestUint8, |
| 370 | Convolution3dPaddingSame3x3x3Uint8Test, |
| 371 | false, |
| 372 | DataLayout::NDHWC) |
| 373 | ARMNN_AUTO_TEST_CASE_WITH_THF(Convolution3d2x2x2Stride3x3x3SmallTestFloat32, |
| 374 | Convolution3d2x2x2Stride3x3x3SmallFloat32Test, |
| 375 | false, |
| 376 | DataLayout::NDHWC) |
| 377 | ARMNN_AUTO_TEST_CASE_WITH_THF(Convolution3d2x3x3TestFloat16, |
| 378 | Convolution3d2x3x3Float16Test, |
| 379 | true, |
| 380 | DataLayout::NDHWC) |
| 381 | ARMNN_AUTO_TEST_CASE_WITH_THF(Convolution3d2x2x2SmallTestFloat16, |
| 382 | Convolution3d2x2x2SmallFloat16Test, |
| 383 | false, |
| 384 | DataLayout::NDHWC) |
| 385 | |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 386 | // Depthwise Convolution |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 387 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(DepthwiseConvolution2dDepthMul1, |
| 388 | ClContextControlFixture, |
| 389 | DepthwiseConvolution2dDepthMul1Test, |
| 390 | true, |
| 391 | DataLayout::NCHW) |
| 392 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(UnbiasedDepthwiseConvolution2dDepthMul1, |
| 393 | ClContextControlFixture, |
| 394 | DepthwiseConvolution2dDepthMul1Test, |
| 395 | false, |
| 396 | DataLayout::NCHW) |
| 397 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(DepthwiseConvolution2dDepthMul1Uint8, |
| 398 | ClContextControlFixture, |
| 399 | DepthwiseConvolution2dDepthMul1Uint8Test, |
| 400 | true, |
| 401 | DataLayout::NCHW) |
| 402 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(UnbiasedDepthwiseConvolution2dDepthMul1Uint8, |
| 403 | ClContextControlFixture, |
| 404 | DepthwiseConvolution2dDepthMul1Uint8Test, |
| 405 | false, |
| 406 | DataLayout::NCHW) |
jimfly01 | b9c8963 | 2018-10-26 16:50:13 +0100 | [diff] [blame] | 407 | |
| 408 | // NHWC Depthwise Convolution |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 409 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(DepthwiseConvolution2dDepthMul1Nhwc, |
| 410 | ClContextControlFixture, |
| 411 | DepthwiseConvolution2dDepthMul1Test, |
| 412 | true, |
| 413 | DataLayout::NHWC) |
| 414 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(UnbiasedDepthwiseConvolution2dDepthMul1Nhwc, |
| 415 | ClContextControlFixture, |
| 416 | DepthwiseConvolution2dDepthMul1Test, |
| 417 | false, |
| 418 | DataLayout::NHWC) |
| 419 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(DepthwiseConvolution2dDepthMul1Uint8Nhwc, |
| 420 | ClContextControlFixture, |
| 421 | DepthwiseConvolution2dDepthMul1Uint8Test, |
| 422 | true, |
| 423 | DataLayout::NHWC) |
| 424 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(UnbiasedDepthwiseConvolution2dDepthMul1Uint8Nhwc, |
| 425 | ClContextControlFixture, |
| 426 | DepthwiseConvolution2dDepthMul1Uint8Test, |
| 427 | false, |
| 428 | DataLayout::NHWC) |
| 429 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleDepthwiseConvolution2d3x3Dilation3x3Nhwc, |
| 430 | ClContextControlFixture, |
| 431 | SimpleDepthwiseConvolution2d3x3Dilation3x3NhwcTest) |
jimfly01 | b9c8963 | 2018-10-26 16:50:13 +0100 | [diff] [blame] | 432 | |
| 433 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 434 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(DepthwiseConvolution2dDepthNhwc, |
| 435 | ClContextControlFixture, |
| 436 | DepthwiseConvolution2dDepthNhwcTest, |
| 437 | false) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 438 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 439 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(DepthwiseConvolution2dAsymmetric, |
| 440 | ClContextControlFixture, |
| 441 | DepthwiseConvolution2dAsymmetricTest, |
| 442 | true, |
| 443 | DataLayout::NCHW) |
| 444 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(UnbiasedDepthwiseConvolution2dAsymmetric, |
| 445 | ClContextControlFixture, |
| 446 | DepthwiseConvolution2dAsymmetricTest, |
| 447 | false, |
| 448 | DataLayout::NCHW) |
| 449 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(DepthwiseConvolution2dAsymmetricNhwc, |
| 450 | ClContextControlFixture, |
| 451 | DepthwiseConvolution2dAsymmetricTest, |
| 452 | true, |
| 453 | DataLayout::NHWC) |
| 454 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(UnbiasedDepthwiseConvolution2dAsymmetricNhwc, |
| 455 | ClContextControlFixture, |
| 456 | DepthwiseConvolution2dAsymmetricTest, |
| 457 | false, |
| 458 | DataLayout::NHWC) |
surmeh01 | 3537c2c | 2018-05-18 16:31:43 +0100 | [diff] [blame] | 459 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 460 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(DepthwiseConvolution2dDepthMul64, |
| 461 | ClContextControlFixture, |
| 462 | DepthwiseConvolution2dDepthMul64Test); |
Matthew Jackson | 9910792 | 2019-07-25 12:58:56 +0100 | [diff] [blame] | 463 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 464 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(DepthwiseConvolution2dPerAxisQuantTestNchw, |
| 465 | ClContextControlFixture, |
| 466 | DepthwiseConvolution2dPerAxisQuantTest, |
| 467 | DataLayout::NCHW); |
| 468 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(DepthwiseConvolution2dPerAxisQuantTestNhwc, |
| 469 | ClContextControlFixture, |
| 470 | DepthwiseConvolution2dPerAxisQuantTest, |
| 471 | DataLayout::NHWC); |
Teresa Charlin | a68d853 | 2019-11-29 13:59:18 +0000 | [diff] [blame] | 472 | |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 473 | // Splitter |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 474 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleSplitterFloat32, ClContextControlFixture, SplitterFloat32Test) |
| 475 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleSplitterUint8, ClContextControlFixture, SplitterUint8Test) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 476 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 477 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(CopyViaSplitterFloat32, ClContextControlFixture, CopyViaSplitterFloat32Test) |
| 478 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(CopyViaSplitterUint8, ClContextControlFixture, CopyViaSplitterUint8Test) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 479 | |
Jim Flynn | 4ed6c83 | 2019-05-20 11:02:46 +0100 | [diff] [blame] | 480 | // Concat |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 481 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleConcat, ClContextControlFixture, ConcatTest) |
| 482 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ConcatUint8, ClContextControlFixture, ConcatUint8Test) |
| 483 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ConcatUint8DifferentInputOutputQParam, |
| 484 | ClContextControlFixture, |
| 485 | ConcatDifferentInputOutputQParamTest<DataType::QAsymmU8>, |
| 486 | false) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 487 | |
narpra01 | 55a97bc | 2018-10-02 14:35:53 +0100 | [diff] [blame] | 488 | // Normalization |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 489 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleNormalizationAcross, ClContextControlFixture, SimpleNormalizationAcrossTest) |
| 490 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleNormalizationWithin, ClContextControlFixture, SimpleNormalizationWithinTest) |
| 491 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleNormalizationAcrossNhwc, |
| 492 | ClContextControlFixture, |
| 493 | SimpleNormalizationAcrossNhwcTest) |
| 494 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(AcrossChannelNormalization, |
| 495 | ClContextControlFixture, |
| 496 | AcrossChannelNormalizationTest) |
narpra01 | 55a97bc | 2018-10-02 14:35:53 +0100 | [diff] [blame] | 497 | |
Ryan OShea | bab8fa9 | 2022-03-09 10:29:02 +0000 | [diff] [blame] | 498 | // Pooling2d |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 499 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleMaxPooling2dSize3x3Stride2x4, |
| 500 | ClContextControlFixture, |
| 501 | SimpleMaxPooling2dSize3x3Stride2x4Test, |
| 502 | true) |
| 503 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleMaxPooling2dSize3x3Stride2x4Uint8, |
| 504 | ClContextControlFixture, |
| 505 | SimpleMaxPooling2dSize3x3Stride2x4Uint8Test, |
| 506 | true) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 507 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 508 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(IgnorePaddingSimpleMaxPooling2d, |
| 509 | ClContextControlFixture, |
| 510 | IgnorePaddingSimpleMaxPooling2dTest) |
| 511 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(IgnorePaddingSimpleMaxPooling2dUint8, |
| 512 | ClContextControlFixture, |
| 513 | IgnorePaddingSimpleMaxPooling2dUint8Test) |
| 514 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(IgnorePaddingMaxPooling2dSize3, |
| 515 | ClContextControlFixture, |
| 516 | IgnorePaddingMaxPooling2dSize3Test) |
| 517 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(IgnorePaddingMaxPooling2dSize3Uint8, |
| 518 | ClContextControlFixture, |
| 519 | IgnorePaddingMaxPooling2dSize3Uint8Test) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 520 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 521 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(IgnorePaddingSimpleAveragePooling2d, |
| 522 | ClContextControlFixture, |
| 523 | IgnorePaddingSimpleAveragePooling2dTest) |
| 524 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(IgnorePaddingSimpleAveragePooling2dUint8, |
| 525 | ClContextControlFixture, |
| 526 | IgnorePaddingSimpleAveragePooling2dUint8Test) |
| 527 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(IgnorePaddingSimpleAveragePooling2dNoPadding, |
| 528 | ClContextControlFixture, |
| 529 | IgnorePaddingSimpleAveragePooling2dNoPaddingTest) |
| 530 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(IgnorePaddingSimpleAveragePooling2dNoPaddingUint8, |
| 531 | ClContextControlFixture, |
| 532 | IgnorePaddingSimpleAveragePooling2dNoPaddingUint8Test) |
| 533 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(IgnorePaddingAveragePooling2dSize3, |
| 534 | ClContextControlFixture, |
| 535 | IgnorePaddingAveragePooling2dSize3Test) |
| 536 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(IgnorePaddingAveragePooling2dSize3Uint8, |
| 537 | ClContextControlFixture, |
| 538 | IgnorePaddingAveragePooling2dSize3Uint8Test) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 539 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 540 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(IgnorePaddingSimpleL2Pooling2d, |
| 541 | ClContextControlFixture, |
| 542 | IgnorePaddingSimpleL2Pooling2dTest) |
| 543 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(UNSUPPORTED_IgnorePaddingSimpleL2Pooling2dUint8, |
| 544 | ClContextControlFixture, |
| 545 | IgnorePaddingSimpleL2Pooling2dUint8Test) |
Ryan OShea | 19e7942 | 2022-05-04 00:38:03 +0100 | [diff] [blame] | 546 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 547 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(IgnorePaddingL2Pooling2dSize3, |
| 548 | ClContextControlFixture, |
| 549 | IgnorePaddingL2Pooling2dSize3Test) |
| 550 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(UNSUPPORTED_IgnorePaddingL2Pooling2dSize3Uint8, |
| 551 | ClContextControlFixture, |
| 552 | IgnorePaddingL2Pooling2dSize3Uint8Test) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 553 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 554 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleMaxPooling2d, |
| 555 | ClContextControlFixture, |
| 556 | SimpleMaxPooling2dTest, |
| 557 | DataLayout::NCHW) |
| 558 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleMaxPooling2dNhwc, |
| 559 | ClContextControlFixture, |
| 560 | SimpleMaxPooling2dTest, |
| 561 | DataLayout::NHWC) |
| 562 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleMaxPooling2dUint8, |
| 563 | ClContextControlFixture, |
| 564 | SimpleMaxPooling2dUint8Test, |
| 565 | DataLayout::NCHW) |
| 566 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleMaxPooling2dUint8Nhwc, |
| 567 | ClContextControlFixture, |
| 568 | SimpleMaxPooling2dUint8Test, |
| 569 | DataLayout::NHWC) |
James Conroy | 45a9b77 | 2018-10-31 11:47:53 +0000 | [diff] [blame] | 570 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 571 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleAveragePooling2d, |
| 572 | ClContextControlFixture, |
| 573 | SimpleAveragePooling2dTest, |
| 574 | DataLayout::NCHW) |
| 575 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleAveragePooling2dNhwc, |
| 576 | ClContextControlFixture, |
| 577 | SimpleAveragePooling2dTest, |
| 578 | DataLayout::NHWC) |
| 579 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleAveragePooling2dUint8, |
| 580 | ClContextControlFixture, |
| 581 | SimpleAveragePooling2dUint8Test, |
| 582 | DataLayout::NCHW) |
| 583 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleAveragePooling2dUint8Nhwc, |
| 584 | ClContextControlFixture, |
| 585 | SimpleAveragePooling2dUint8Test, |
| 586 | DataLayout::NHWC) |
James Conroy | 45a9b77 | 2018-10-31 11:47:53 +0000 | [diff] [blame] | 587 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 588 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(IgnorePaddingAveragePooling2dSize3x2Stride2x2, |
| 589 | ClContextControlFixture, |
| 590 | IgnorePaddingAveragePooling2dSize3x2Stride2x2Test, |
| 591 | false) |
| 592 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(IgnorePaddingAveragePooling2dSize3x2Stride2x2NoPadding, |
| 593 | ClContextControlFixture, |
| 594 | IgnorePaddingAveragePooling2dSize3x2Stride2x2Test, |
| 595 | true) |
| 596 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(LargeTensorsAveragePooling2d, |
| 597 | ClContextControlFixture, |
| 598 | LargeTensorsAveragePooling2dTest) |
| 599 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(LargeTensorsAveragePooling2dUint8, |
| 600 | ClContextControlFixture, |
| 601 | LargeTensorsAveragePooling2dUint8Test) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 602 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 603 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleL2Pooling2d, |
| 604 | ClContextControlFixture, |
| 605 | SimpleL2Pooling2dTest, |
| 606 | DataLayout::NCHW) |
| 607 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleL2Pooling2dNhwc, |
| 608 | ClContextControlFixture, |
| 609 | SimpleL2Pooling2dTest, |
| 610 | DataLayout::NHWC) |
| 611 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(UNSUPPORTED_SimpleL2Pooling2dUint8, |
| 612 | ClContextControlFixture, |
| 613 | SimpleL2Pooling2dUint8Test, |
| 614 | DataLayout::NCHW) |
James Conroy | 45a9b77 | 2018-10-31 11:47:53 +0000 | [diff] [blame] | 615 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 616 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(L2Pooling2dSize3Stride1, ClContextControlFixture, L2Pooling2dSize3Stride1Test) |
| 617 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(UNSUPPORTED_L2Pooling2dSize3Stride1Uint8, |
| 618 | ClContextControlFixture, |
| 619 | L2Pooling2dSize3Stride1Uint8Test) |
| 620 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(L2Pooling2dSize3Stride3, |
| 621 | ClContextControlFixture, |
| 622 | L2Pooling2dSize3Stride3Test) |
| 623 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(UNSUPPORTED_L2Pooling2dSize3Stride3Uint8, |
| 624 | ClContextControlFixture, |
| 625 | L2Pooling2dSize3Stride3Uint8Test) |
| 626 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(L2Pooling2dSize3Stride4, |
| 627 | ClContextControlFixture, |
| 628 | L2Pooling2dSize3Stride4Test) |
| 629 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(UNSUPPORTED_L2Pooling2dSize3Stride4Uint8, |
| 630 | ClContextControlFixture, |
| 631 | L2Pooling2dSize3Stride4Uint8Test) |
| 632 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(L2Pooling2dSize7, |
| 633 | ClContextControlFixture, |
| 634 | L2Pooling2dSize7Test) |
| 635 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(UNSUPPORTED_L2Pooling2dSize7Uint8, |
| 636 | ClContextControlFixture, |
| 637 | L2Pooling2dSize7Uint8Test) |
| 638 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(L2Pooling2dSize9, ClContextControlFixture, L2Pooling2dSize9Test) |
| 639 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(UNSUPPORTED_L2Pooling2dSize9Uint8, ClContextControlFixture, L2Pooling2dSize9Uint8Test) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 640 | |
Ryan OShea | bab8fa9 | 2022-03-09 10:29:02 +0000 | [diff] [blame] | 641 | // Pooling3d |
| 642 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleMaxPooling3dSize2x2x2Stride1x1x1, |
| 643 | ClContextControlFixture, |
| 644 | SimpleMaxPooling3dSize2x2x2Stride1x1x1Test, |
| 645 | DataLayout::NDHWC) |
| 646 | |
Ryan OShea | 19e7942 | 2022-05-04 00:38:03 +0100 | [diff] [blame] | 647 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleMaxPooling3dSize2x2x2Stride1x1x1Uint8, |
| 648 | ClContextControlFixture, |
| 649 | SimpleMaxPooling3dSize2x2x2Stride1x1x1Uint8Test, |
| 650 | DataLayout::NDHWC) |
| 651 | |
Ryan OShea | bab8fa9 | 2022-03-09 10:29:02 +0000 | [diff] [blame] | 652 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleMaxPooling3d, |
| 653 | ClContextControlFixture, |
| 654 | SimpleMaxPooling3dTest, |
| 655 | DataLayout::NDHWC) |
| 656 | |
Ryan OShea | 19e7942 | 2022-05-04 00:38:03 +0100 | [diff] [blame] | 657 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleMaxPooling3dUint8, |
| 658 | ClContextControlFixture, |
| 659 | SimpleMaxPooling3dUint8Test, |
| 660 | DataLayout::NDHWC) |
| 661 | |
Ryan OShea | bab8fa9 | 2022-03-09 10:29:02 +0000 | [diff] [blame] | 662 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(IgnorePaddingSimpleMaxPooling3d, |
| 663 | ClContextControlFixture, |
| 664 | IgnorePaddingSimpleMaxPooling3dTest, |
| 665 | DataLayout::NDHWC) |
| 666 | |
Ryan OShea | 19e7942 | 2022-05-04 00:38:03 +0100 | [diff] [blame] | 667 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(IgnorePaddingSimpleMaxPooling3dUint8, |
| 668 | ClContextControlFixture, |
| 669 | IgnorePaddingSimpleMaxPooling3dUint8Test, |
| 670 | DataLayout::NDHWC) |
| 671 | |
Ryan OShea | bab8fa9 | 2022-03-09 10:29:02 +0000 | [diff] [blame] | 672 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleAveragePooling3d, |
| 673 | ClContextControlFixture, |
| 674 | SimpleAveragePooling3dTest, |
| 675 | DataLayout::NDHWC) |
| 676 | |
Ryan OShea | 19e7942 | 2022-05-04 00:38:03 +0100 | [diff] [blame] | 677 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleAveragePooling3dUint8, |
| 678 | ClContextControlFixture, |
| 679 | SimpleAveragePooling3dUint8Test, |
| 680 | DataLayout::NDHWC) |
| 681 | |
Ryan OShea | bab8fa9 | 2022-03-09 10:29:02 +0000 | [diff] [blame] | 682 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(LargeTensorsAveragePooling3d, |
| 683 | ClContextControlFixture, |
| 684 | LargeTensorsAveragePooling3dTest, |
| 685 | DataLayout::NDHWC) |
| 686 | |
Ryan OShea | 19e7942 | 2022-05-04 00:38:03 +0100 | [diff] [blame] | 687 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(LargeTensorsAveragePooling3dUint8, |
| 688 | ClContextControlFixture, |
| 689 | LargeTensorsAveragePooling3dUint8Test, |
| 690 | DataLayout::NDHWC) |
| 691 | |
Ryan OShea | bab8fa9 | 2022-03-09 10:29:02 +0000 | [diff] [blame] | 692 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(IgnorePaddingSimpleAveragePooling3d, |
| 693 | ClContextControlFixture, |
| 694 | IgnorePaddingSimpleAveragePooling3dTest, |
| 695 | DataLayout::NDHWC) |
| 696 | |
| 697 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleL2Pooling3d, |
| 698 | ClContextControlFixture, |
| 699 | SimpleL2Pooling3dTest, |
| 700 | DataLayout::NDHWC) |
| 701 | |
| 702 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(IgnorePaddingSimpleL2Pooling3d, |
| 703 | ClContextControlFixture, |
| 704 | IgnorePaddingSimpleL2Pooling3dTest, |
| 705 | DataLayout::NDHWC) |
| 706 | |
| 707 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(AsymmetricNonSquareMaxPooling3d, |
| 708 | ClContextControlFixture, |
| 709 | AsymmetricNonSquareMaxPooling3dTest, |
| 710 | DataLayout::NDHWC) |
| 711 | |
Ryan OShea | 19e7942 | 2022-05-04 00:38:03 +0100 | [diff] [blame] | 712 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(AsymmetricNonSquareMaxPooling3dUint8, |
| 713 | ClContextControlFixture, |
| 714 | AsymmetricNonSquareMaxPooling3dUint8Test, |
| 715 | DataLayout::NDHWC) |
| 716 | |
Ryan OShea | bab8fa9 | 2022-03-09 10:29:02 +0000 | [diff] [blame] | 717 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(AsymmetricNonSquareAveragePooling3d, |
| 718 | ClContextControlFixture, |
| 719 | AsymmetricNonSquareAveragePooling3dTest, |
| 720 | DataLayout::NDHWC) |
| 721 | |
Ryan OShea | 19e7942 | 2022-05-04 00:38:03 +0100 | [diff] [blame] | 722 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(AsymmetricNonSquareAveragePooling3dUint8, |
| 723 | ClContextControlFixture, |
| 724 | AsymmetricNonSquareAveragePooling3dUint8Test, |
| 725 | DataLayout::NDHWC) |
| 726 | |
Ryan OShea | bab8fa9 | 2022-03-09 10:29:02 +0000 | [diff] [blame] | 727 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(AsymmetricNonSquareL2Pooling3d, |
| 728 | ClContextControlFixture, |
| 729 | AsymmetricNonSquareL2Pooling3dTest, |
| 730 | DataLayout::NDHWC) |
| 731 | |
| 732 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(UNSUPPORTED_AsymmetricNonSquareMaxPooling3dWithPaddingOnlyPool, |
| 733 | ClContextControlFixture, |
| 734 | AsymmetricNonSquareMaxPooling3dWithPaddingOnlyPoolTest, |
| 735 | DataLayout::NDHWC) |
| 736 | |
Ryan OShea | 19e7942 | 2022-05-04 00:38:03 +0100 | [diff] [blame] | 737 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(UNSUPPORTED_AsymmetricNonSquareMaxPooling3dWithPaddingOnlyPoolUint8, |
Ryan OShea | bab8fa9 | 2022-03-09 10:29:02 +0000 | [diff] [blame] | 738 | ClContextControlFixture, |
Ryan OShea | 19e7942 | 2022-05-04 00:38:03 +0100 | [diff] [blame] | 739 | AsymmetricNonSquareMaxPooling3dWithPaddingOnlyPoolUint8Test, |
| 740 | DataLayout::NDHWC) |
| 741 | |
| 742 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(UNSUPPORTED_AsymmetricNonSquareAveragePooling3dWithPaddingOnlyPoolUint8, |
| 743 | ClContextControlFixture, |
| 744 | AsymmetricNonSquareAveragePooling3dWithPaddingOnlyPoolUint8Test, |
| 745 | DataLayout::NDHWC) |
| 746 | |
| 747 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(UNSUPPORTED_AsymmetricNonSquareAveragePooling3dWithPaddingOnlyPoolUint8, |
| 748 | ClContextControlFixture, |
| 749 | AsymmetricNonSquareAveragePooling3dWithPaddingOnlyPoolUint8Test, |
Ryan OShea | bab8fa9 | 2022-03-09 10:29:02 +0000 | [diff] [blame] | 750 | DataLayout::NDHWC) |
| 751 | |
| 752 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(UNSUPPORTEDAsymmetricNonSquareL2Pooling3dWithPaddingOnlyPool, |
| 753 | ClContextControlFixture, |
| 754 | AsymmetricNonSquareL2Pooling3dWithPaddingOnlyPoolTest, |
| 755 | DataLayout::NDHWC) |
| 756 | |
Ryan OShea | 19e7942 | 2022-05-04 00:38:03 +0100 | [diff] [blame] | 757 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(UNSUPPORTEDAsymmetricNonSquareL2Pooling3dWithPaddingOnlyPoolUint8, |
| 758 | ClContextControlFixture, |
| 759 | AsymmetricNonSquareL2Pooling3dWithPaddingOnlyPoolUint8Test, |
| 760 | DataLayout::NDHWC) |
| 761 | |
Ryan OShea | bab8fa9 | 2022-03-09 10:29:02 +0000 | [diff] [blame] | 762 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleAveragePooling3d, |
| 763 | ClContextControlFixture, |
| 764 | SimpleAveragePooling3dTest, |
| 765 | DataLayout::NDHWC) |
| 766 | |
Ryan OShea | 19e7942 | 2022-05-04 00:38:03 +0100 | [diff] [blame] | 767 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleAveragePooling3dUint8, |
| 768 | ClContextControlFixture, |
| 769 | SimpleAveragePooling3dUint8Test, |
| 770 | DataLayout::NDHWC) |
Ryan OShea | bab8fa9 | 2022-03-09 10:29:02 +0000 | [diff] [blame] | 771 | |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 772 | // Add |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 773 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleAdd, ClContextControlFixture, AdditionTest) |
| 774 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Add5d, ClContextControlFixture, Addition5dTest) |
| 775 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(AddBroadcast1Element, ClContextControlFixture, AdditionBroadcast1ElementTest) |
| 776 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(AddBroadcast, ClContextControlFixture, AdditionBroadcastTest) |
David Beck | 4a8692c | 2018-09-07 16:19:24 +0100 | [diff] [blame] | 777 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 778 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(AdditionUint8, ClContextControlFixture, AdditionUint8Test) |
| 779 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(AddBroadcastUint8, ClContextControlFixture, AdditionBroadcastUint8Test) |
| 780 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(AddBroadcast1ElementUint8, |
| 781 | ClContextControlFixture, |
| 782 | AdditionBroadcast1ElementUint8Test) |
David Beck | 4a8692c | 2018-09-07 16:19:24 +0100 | [diff] [blame] | 783 | |
| 784 | // Sub |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 785 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleSub, ClContextControlFixture, SubtractionTest) |
| 786 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SubBroadcast1Element, ClContextControlFixture, SubtractionBroadcast1ElementTest) |
| 787 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SubBroadcast, ClContextControlFixture, SubtractionBroadcastTest) |
Mohamed Nour Abouelseoud | 3d93bc4 | 2018-11-21 10:35:17 +0000 | [diff] [blame] | 788 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 789 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SubtractionUint8, ClContextControlFixture, SubtractionUint8Test) |
| 790 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SubBroadcastUint8, ClContextControlFixture, SubtractionBroadcastUint8Test) |
| 791 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SubBroadcast1ElementUint8, |
| 792 | ClContextControlFixture, |
| 793 | SubtractionBroadcast1ElementUint8Test) |
David Beck | 4a8692c | 2018-09-07 16:19:24 +0100 | [diff] [blame] | 794 | |
Francis Murtagh | e7a86a4 | 2018-08-29 12:42:10 +0100 | [diff] [blame] | 795 | // Div |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 796 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleDivision, ClContextControlFixture, DivisionTest) |
| 797 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(DivisionByZero, ClContextControlFixture, DivisionByZeroTest) |
| 798 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(DivisionBroadcast1Element, ClContextControlFixture, DivisionBroadcast1ElementTest) |
| 799 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(DivisionBroadcast1DVector, ClContextControlFixture, DivisionBroadcast1DVectorTest) |
David Beck | 5cd01f3 | 2018-09-12 16:00:08 +0100 | [diff] [blame] | 800 | // NOTE: quantized division is not supported by CL and not required by the |
| 801 | // android NN api |
Francis Murtagh | e7a86a4 | 2018-08-29 12:42:10 +0100 | [diff] [blame] | 802 | |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 803 | // Mul |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 804 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleMultiplication, ClContextControlFixture, MultiplicationTest) |
| 805 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(MultiplicationBroadcast1Element, |
| 806 | ClContextControlFixture, |
| 807 | MultiplicationBroadcast1ElementTest) |
| 808 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(MultiplicationBroadcast1DVector, |
| 809 | ClContextControlFixture, |
| 810 | MultiplicationBroadcast1DVectorTest) |
| 811 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(MultiplicationUint8, ClContextControlFixture, MultiplicationUint8Test) |
| 812 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(MultiplicationBroadcast1ElementUint8, |
| 813 | ClContextControlFixture, |
| 814 | MultiplicationBroadcast1ElementUint8Test) |
| 815 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(MultiplicationBroadcast1DVectorUint8, |
| 816 | ClContextControlFixture, |
| 817 | MultiplicationBroadcast1DVectorUint8Test) |
| 818 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Multiplication5d, ClContextControlFixture, Multiplication5dTest) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 819 | |
| 820 | // Batch Norm |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 821 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(BatchNormFloat32, ClContextControlFixture, BatchNormFloat32Test) |
| 822 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(BatchNormFloat32Nhwc, ClContextControlFixture, BatchNormFloat32NhwcTest) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 823 | |
David Monahan | c11ba46 | 2020-12-03 11:09:46 +0000 | [diff] [blame] | 824 | // Rank |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 825 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(RankDimSize1Float16, ClContextControlFixture, RankDimSize1Test<DataType::Float16>) |
| 826 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(RankDimSize1Float32, ClContextControlFixture, RankDimSize1Test<DataType::Float32>) |
| 827 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(RankDimSize1QAsymmU8, ClContextControlFixture, RankDimSize1Test<DataType::QAsymmU8>) |
| 828 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(RankDimSize1Signed32, ClContextControlFixture, RankDimSize1Test<DataType::Signed32>) |
| 829 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(RankDimSize1QSymmS16, ClContextControlFixture, RankDimSize1Test<DataType::QSymmS16>) |
| 830 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(RankDimSize1QAsymmS8, ClContextControlFixture, RankDimSize1Test<DataType::QAsymmS8>) |
David Monahan | c11ba46 | 2020-12-03 11:09:46 +0000 | [diff] [blame] | 831 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 832 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(RankDimSize2Float16, ClContextControlFixture, RankDimSize2Test<DataType::Float16>) |
| 833 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(RankDimSize2Float32, ClContextControlFixture, RankDimSize2Test<DataType::Float32>) |
| 834 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(RankDimSize2QAsymmU8, ClContextControlFixture, RankDimSize2Test<DataType::QAsymmU8>) |
| 835 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(RankDimSize2Signed32, ClContextControlFixture, RankDimSize2Test<DataType::Signed32>) |
| 836 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(RankDimSize2QSymmS16, ClContextControlFixture, RankDimSize2Test<DataType::QSymmS16>) |
| 837 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(RankDimSize2QAsymmS8, ClContextControlFixture, RankDimSize2Test<DataType::QAsymmS8>) |
David Monahan | c11ba46 | 2020-12-03 11:09:46 +0000 | [diff] [blame] | 838 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 839 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(RankDimSize3Float16, ClContextControlFixture, RankDimSize3Test<DataType::Float16>) |
| 840 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(RankDimSize3Float32, ClContextControlFixture, RankDimSize3Test<DataType::Float32>) |
| 841 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(RankDimSize3QAsymmU8, ClContextControlFixture, RankDimSize3Test<DataType::QAsymmU8>) |
| 842 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(RankDimSize3Signed32, ClContextControlFixture, RankDimSize3Test<DataType::Signed32>) |
| 843 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(RankDimSize3QSymmS16, ClContextControlFixture, RankDimSize3Test<DataType::QSymmS16>) |
| 844 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(RankDimSize3QAsymmS8, ClContextControlFixture, RankDimSize3Test<DataType::QAsymmS8>) |
David Monahan | c11ba46 | 2020-12-03 11:09:46 +0000 | [diff] [blame] | 845 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 846 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(RankDimSize4Float16, ClContextControlFixture, RankDimSize4Test<DataType::Float16>) |
| 847 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(RankDimSize4Float32, ClContextControlFixture, RankDimSize4Test<DataType::Float32>) |
| 848 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(RankDimSize4QAsymmU8, ClContextControlFixture, RankDimSize4Test<DataType::QAsymmU8>) |
| 849 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(RankDimSize4Signed32, ClContextControlFixture, RankDimSize4Test<DataType::Signed32>) |
| 850 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(RankDimSize4QSymmS16, ClContextControlFixture, RankDimSize4Test<DataType::QSymmS16>) |
| 851 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(RankDimSize4QAsymmS8, ClContextControlFixture, RankDimSize4Test<DataType::QAsymmS8>) |
David Monahan | c11ba46 | 2020-12-03 11:09:46 +0000 | [diff] [blame] | 852 | |
Aron Virginas-Tar | 8168f40 | 2019-10-04 13:10:16 +0100 | [diff] [blame] | 853 | // InstanceNormalization |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 854 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(InstanceNormFloat32Nchw, |
| 855 | ClContextControlFixture, |
| 856 | InstanceNormFloat32Test, |
| 857 | DataLayout::NCHW); |
| 858 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(InstanceNormFloat16Nchw, |
| 859 | ClContextControlFixture, |
| 860 | InstanceNormFloat16Test, |
| 861 | DataLayout::NCHW); |
Aron Virginas-Tar | 8168f40 | 2019-10-04 13:10:16 +0100 | [diff] [blame] | 862 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 863 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(InstanceNormFloat32Nhwc, |
| 864 | ClContextControlFixture, |
| 865 | InstanceNormFloat32Test, |
| 866 | DataLayout::NHWC); |
| 867 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(InstanceNormFloat16Nhwc, |
| 868 | ClContextControlFixture, |
| 869 | InstanceNormFloat16Test, |
| 870 | DataLayout::NHWC); |
Aron Virginas-Tar | 8168f40 | 2019-10-04 13:10:16 +0100 | [diff] [blame] | 871 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 872 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(InstanceNormFloat32Nchw2, |
| 873 | ClContextControlFixture, |
| 874 | InstanceNormFloat32Test2, |
| 875 | DataLayout::NCHW); |
| 876 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(InstanceNormFloat16Nchw2, |
| 877 | ClContextControlFixture, |
| 878 | InstanceNormFloat16Test2, |
| 879 | DataLayout::NCHW); |
Aron Virginas-Tar | 8168f40 | 2019-10-04 13:10:16 +0100 | [diff] [blame] | 880 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 881 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(InstanceNormFloat32Nhwc2, |
| 882 | ClContextControlFixture, |
| 883 | InstanceNormFloat32Test2, |
| 884 | DataLayout::NHWC); |
| 885 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(InstanceNormFloat16Nhwc2, |
| 886 | ClContextControlFixture, |
| 887 | InstanceNormFloat16Test2, |
| 888 | DataLayout::NHWC); |
Aron Virginas-Tar | 8168f40 | 2019-10-04 13:10:16 +0100 | [diff] [blame] | 889 | |
Matteo Martincigh | 539b44d | 2018-10-01 09:26:39 +0100 | [diff] [blame] | 890 | // L2 Normalization |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 891 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(L2Normalization1d, ClContextControlFixture, L2Normalization1dTest, DataLayout::NCHW) |
| 892 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(L2Normalization2d, ClContextControlFixture, L2Normalization2dTest, DataLayout::NCHW) |
| 893 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(L2Normalization3d, ClContextControlFixture, L2Normalization3dTest, DataLayout::NCHW) |
| 894 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(L2Normalization4d, ClContextControlFixture, L2Normalization4dTest, DataLayout::NCHW) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 895 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 896 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(L2Normalization1dNhwc, |
| 897 | ClContextControlFixture, |
| 898 | L2Normalization1dTest, |
| 899 | DataLayout::NHWC) |
| 900 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(L2Normalization2dNhwc, |
| 901 | ClContextControlFixture, |
| 902 | L2Normalization2dTest, |
| 903 | DataLayout::NHWC) |
| 904 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(L2Normalization3dNhwc, |
| 905 | ClContextControlFixture, |
| 906 | L2Normalization3dTest, |
| 907 | DataLayout::NHWC) |
| 908 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(L2Normalization4dNhwc, |
| 909 | ClContextControlFixture, |
| 910 | L2Normalization4dTest, |
| 911 | DataLayout::NHWC) |
Matteo Martincigh | 539b44d | 2018-10-01 09:26:39 +0100 | [diff] [blame] | 912 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 913 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(L2Normalization2dShape, ClContextControlFixture, L2Normalization2dShapeTest); |
Matthew Jackson | 82b15ed | 2019-07-25 16:14:30 +0100 | [diff] [blame] | 914 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 915 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(L2NormalizationDefaultEpsilon, |
| 916 | ClContextControlFixture, |
| 917 | L2NormalizationDefaultEpsilonTest, |
| 918 | DataLayout::NCHW) |
| 919 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(L2NormalizationNonDefaultEpsilon, |
| 920 | ClContextControlFixture, |
| 921 | L2NormalizationNonDefaultEpsilonTest, |
| 922 | DataLayout::NCHW) |
Ferran Balaguer | 05bf054 | 2019-06-18 16:46:00 +0100 | [diff] [blame] | 923 | |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 924 | // Constant |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 925 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Constant, ClContextControlFixture, ConstantTest) |
| 926 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ConstantUint8, |
| 927 | ClContextControlFixture, |
| 928 | ConstantUint8SimpleQuantizationScaleNoOffsetTest) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 929 | |
| 930 | // Concat |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 931 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Concat1d, ClContextControlFixture, Concat1dTest) |
| 932 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Concat1dUint8, ClContextControlFixture, Concat1dUint8Test) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 933 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 934 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Concat2dDim0, ClContextControlFixture, Concat2dDim0Test) |
| 935 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Concat2dDim0Uint8, ClContextControlFixture, Concat2dDim0Uint8Test) |
| 936 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Concat2dDim1, ClContextControlFixture, Concat2dDim1Test) |
| 937 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Concat2dDim1Uint8, ClContextControlFixture, Concat2dDim1Uint8Test) |
narpra01 | 63b0882 | 2018-11-20 11:29:12 +0000 | [diff] [blame] | 938 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 939 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Concat2dDim0DiffInputDims, |
| 940 | ClContextControlFixture, |
| 941 | Concat2dDim0DiffInputDimsTest) |
| 942 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Concat2dDim0DiffInputDimsUint8, |
| 943 | ClContextControlFixture, |
| 944 | Concat2dDim0DiffInputDimsUint8Test) |
| 945 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Concat2dDim1DiffInputDims, |
| 946 | ClContextControlFixture, |
| 947 | Concat2dDim1DiffInputDimsTest) |
| 948 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Concat2dDim1DiffInputDimsUint8, |
| 949 | ClContextControlFixture, |
| 950 | Concat2dDim1DiffInputDimsUint8Test) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 951 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 952 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Concat3dDim0, ClContextControlFixture, Concat3dDim0Test) |
| 953 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Concat3dDim0Uint8, ClContextControlFixture, Concat3dDim0Uint8Test) |
| 954 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Concat3dDim1, ClContextControlFixture, Concat3dDim1Test) |
| 955 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Concat3dDim1Uint8, ClContextControlFixture, Concat3dDim1Uint8Test) |
| 956 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Concat3dDim2, ClContextControlFixture, Concat3dDim2Test, false) |
| 957 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Concat3dDim2Uint8, ClContextControlFixture, Concat3dDim2Uint8Test, false) |
narpra01 | 63b0882 | 2018-11-20 11:29:12 +0000 | [diff] [blame] | 958 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 959 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Concat3dDim0DiffInputDims, ClContextControlFixture, Concat3dDim0DiffInputDimsTest) |
| 960 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Concat3dDim0DiffInputDimsUint8, |
| 961 | ClContextControlFixture, |
| 962 | Concat3dDim0DiffInputDimsUint8Test) |
| 963 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Concat3dDim1DiffInputDims, |
| 964 | ClContextControlFixture, |
| 965 | Concat3dDim1DiffInputDimsTest) |
| 966 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Concat3dDim1DiffInputDimsUint8, |
| 967 | ClContextControlFixture, |
| 968 | Concat3dDim1DiffInputDimsUint8Test) |
| 969 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Concat3dDim2DiffInputDims, |
| 970 | ClContextControlFixture, |
| 971 | Concat3dDim2DiffInputDimsTest, |
| 972 | false) |
| 973 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Concat3dDim2DiffInputDimsUint8, |
| 974 | ClContextControlFixture, |
| 975 | Concat3dDim2DiffInputDimsUint8Test, |
| 976 | false) |
narpra01 | 5cdda35 | 2018-11-19 15:30:27 +0000 | [diff] [blame] | 977 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 978 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Concat4dDim0, ClContextControlFixture, Concat4dDim0Test) |
| 979 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Concat4dDim1, ClContextControlFixture, Concat4dDim1Test) |
| 980 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Concat4dDim3, ClContextControlFixture, Concat4dDim3Test, false) |
| 981 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Concat4dDim0Uint8, ClContextControlFixture, Concat4dDim0Uint8Test) |
| 982 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Concat4dDim1Uint8, ClContextControlFixture, Concat4dDim1Uint8Test) |
| 983 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Concat4dDim3Uint8, ClContextControlFixture, Concat4dDim3Uint8Test, false) |
narpra01 | 63b0882 | 2018-11-20 11:29:12 +0000 | [diff] [blame] | 984 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 985 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Concat4dDiffShapeDim0, ClContextControlFixture, Concat4dDiffShapeDim0Test) |
| 986 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Concat4dDiffShapeDim1, ClContextControlFixture, Concat4dDiffShapeDim1Test) |
| 987 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Concat4dDiffShapeDim3, ClContextControlFixture, Concat4dDiffShapeDim3Test, false) |
| 988 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Concat4dDiffShapeDim0Uint8, ClContextControlFixture, Concat4dDiffShapeDim0Uint8Test) |
| 989 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Concat4dDiffShapeDim1Uint8, ClContextControlFixture, Concat4dDiffShapeDim1Uint8Test) |
| 990 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Concat4dDiffShapeDim3Uint8, |
| 991 | ClContextControlFixture, |
| 992 | Concat4dDiffShapeDim3Uint8Test, |
| 993 | false) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 994 | |
Aron Virginas-Tar | b280196 | 2019-09-30 11:24:53 +0100 | [diff] [blame] | 995 | // DepthToSpace |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 996 | ARMNN_AUTO_TEST_FIXTURE(DepthToSpaceNchwFloat32_1, |
| 997 | ClContextControlFixture, DepthToSpaceTest1<DataType::Float32>, DataLayout::NCHW); |
| 998 | ARMNN_AUTO_TEST_FIXTURE(DepthToSpaceNchwFloat32_2, |
| 999 | ClContextControlFixture, DepthToSpaceTest2<DataType::Float32>, DataLayout::NCHW); |
| 1000 | ARMNN_AUTO_TEST_FIXTURE(DepthToSpaceNchwFloat32_3, |
| 1001 | ClContextControlFixture, DepthToSpaceTest3<DataType::Float32>, DataLayout::NCHW); |
| 1002 | ARMNN_AUTO_TEST_FIXTURE(DepthToSpaceNchwFloat32_4, |
| 1003 | ClContextControlFixture, DepthToSpaceTest4<DataType::Float32>, DataLayout::NCHW); |
Aron Virginas-Tar | b280196 | 2019-09-30 11:24:53 +0100 | [diff] [blame] | 1004 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1005 | ARMNN_AUTO_TEST_FIXTURE(DepthToSpaceNchwFloat16_1, |
| 1006 | ClContextControlFixture, DepthToSpaceTest1<DataType::Float16>, DataLayout::NCHW); |
| 1007 | ARMNN_AUTO_TEST_FIXTURE(DepthToSpaceNchwFloat16_2, |
| 1008 | ClContextControlFixture, DepthToSpaceTest2<DataType::Float16>, DataLayout::NCHW); |
| 1009 | ARMNN_AUTO_TEST_FIXTURE(DepthToSpaceNchwFloat16_3, |
| 1010 | ClContextControlFixture, DepthToSpaceTest3<DataType::Float16>, DataLayout::NCHW); |
| 1011 | ARMNN_AUTO_TEST_FIXTURE(DepthToSpaceNchwFloat16_4, |
| 1012 | ClContextControlFixture, DepthToSpaceTest4<DataType::Float16>, DataLayout::NCHW); |
Aron Virginas-Tar | b280196 | 2019-09-30 11:24:53 +0100 | [diff] [blame] | 1013 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1014 | ARMNN_AUTO_TEST_FIXTURE(DepthToSpaceNchwInt8_1, |
| 1015 | ClContextControlFixture, DepthToSpaceTest1<DataType::QAsymmS8>, DataLayout::NCHW); |
| 1016 | ARMNN_AUTO_TEST_FIXTURE(DepthToSpaceNchwInt8_2, |
| 1017 | ClContextControlFixture, DepthToSpaceTest2<DataType::QAsymmS8>, DataLayout::NCHW); |
| 1018 | ARMNN_AUTO_TEST_FIXTURE(DepthToSpaceNchwInt8_3, |
| 1019 | ClContextControlFixture, DepthToSpaceTest3<DataType::QAsymmS8>, DataLayout::NCHW); |
| 1020 | ARMNN_AUTO_TEST_FIXTURE(DepthToSpaceNchwInt8_4, |
| 1021 | ClContextControlFixture, DepthToSpaceTest4<DataType::QAsymmS8>, DataLayout::NCHW); |
Sadik Armagan | 303980c | 2020-04-17 12:45:14 +0100 | [diff] [blame] | 1022 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1023 | ARMNN_AUTO_TEST_FIXTURE(DepthToSpaceNchwUint8_1, |
| 1024 | ClContextControlFixture, DepthToSpaceTest1<DataType::QAsymmU8>, DataLayout::NCHW); |
| 1025 | ARMNN_AUTO_TEST_FIXTURE(DepthToSpaceNchwUint8_2, |
| 1026 | ClContextControlFixture, DepthToSpaceTest2<DataType::QAsymmU8>, DataLayout::NCHW); |
| 1027 | ARMNN_AUTO_TEST_FIXTURE(DepthToSpaceNchwUint8_3, |
| 1028 | ClContextControlFixture, DepthToSpaceTest3<DataType::QAsymmU8>, DataLayout::NCHW); |
| 1029 | ARMNN_AUTO_TEST_FIXTURE(DepthToSpaceNchwUint8_4, |
| 1030 | ClContextControlFixture, DepthToSpaceTest4<DataType::QAsymmU8>, DataLayout::NCHW); |
Aron Virginas-Tar | b280196 | 2019-09-30 11:24:53 +0100 | [diff] [blame] | 1031 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1032 | ARMNN_AUTO_TEST_FIXTURE(DepthToSpaceNchwInt16_1, |
| 1033 | ClContextControlFixture, DepthToSpaceTest1<DataType::QSymmS16>, DataLayout::NCHW); |
| 1034 | ARMNN_AUTO_TEST_FIXTURE(DepthToSpaceNchwInt16_2, |
| 1035 | ClContextControlFixture, DepthToSpaceTest2<DataType::QSymmS16>, DataLayout::NCHW); |
| 1036 | ARMNN_AUTO_TEST_FIXTURE(DepthToSpaceNchwInt16_3, |
| 1037 | ClContextControlFixture, DepthToSpaceTest3<DataType::QSymmS16>, DataLayout::NCHW); |
| 1038 | ARMNN_AUTO_TEST_FIXTURE(DepthToSpaceNchwInt16_4, |
| 1039 | ClContextControlFixture, DepthToSpaceTest4<DataType::QSymmS16>, DataLayout::NCHW); |
Aron Virginas-Tar | b280196 | 2019-09-30 11:24:53 +0100 | [diff] [blame] | 1040 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1041 | ARMNN_AUTO_TEST_FIXTURE(DepthToSpaceNhwcFloat32_1, |
| 1042 | ClContextControlFixture, DepthToSpaceTest1<DataType::Float32>, DataLayout::NHWC); |
| 1043 | ARMNN_AUTO_TEST_FIXTURE(DepthToSpaceNhwcFloat32_2, |
| 1044 | ClContextControlFixture, DepthToSpaceTest2<DataType::Float32>, DataLayout::NHWC); |
| 1045 | ARMNN_AUTO_TEST_FIXTURE(DepthToSpaceNhwcFloat32_3, |
| 1046 | ClContextControlFixture, DepthToSpaceTest3<DataType::Float32>, DataLayout::NHWC); |
| 1047 | ARMNN_AUTO_TEST_FIXTURE(DepthToSpaceNhwcFloat32_4, |
| 1048 | ClContextControlFixture, DepthToSpaceTest4<DataType::Float32>, DataLayout::NHWC); |
Aron Virginas-Tar | b280196 | 2019-09-30 11:24:53 +0100 | [diff] [blame] | 1049 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1050 | ARMNN_AUTO_TEST_FIXTURE(DepthToSpaceNhwcFloat16_1, |
| 1051 | ClContextControlFixture, DepthToSpaceTest1<DataType::Float16>, DataLayout::NHWC); |
| 1052 | ARMNN_AUTO_TEST_FIXTURE(DepthToSpaceNhwcFloat16_2, |
| 1053 | ClContextControlFixture, DepthToSpaceTest2<DataType::Float16>, DataLayout::NHWC); |
| 1054 | ARMNN_AUTO_TEST_FIXTURE(DepthToSpaceNhwcFloat16_3, |
| 1055 | ClContextControlFixture, DepthToSpaceTest3<DataType::Float16>, DataLayout::NHWC); |
| 1056 | ARMNN_AUTO_TEST_FIXTURE(DepthToSpaceNhwcFloat16_4, |
| 1057 | ClContextControlFixture, DepthToSpaceTest4<DataType::Float16>, DataLayout::NHWC); |
Aron Virginas-Tar | b280196 | 2019-09-30 11:24:53 +0100 | [diff] [blame] | 1058 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1059 | ARMNN_AUTO_TEST_FIXTURE(DepthToSpaceNhwcInt8_1, |
| 1060 | ClContextControlFixture, DepthToSpaceTest1<DataType::QAsymmS8>, DataLayout::NHWC); |
| 1061 | ARMNN_AUTO_TEST_FIXTURE(DepthToSpaceNhwcInt8_2, |
| 1062 | ClContextControlFixture, DepthToSpaceTest2<DataType::QAsymmS8>, DataLayout::NHWC); |
| 1063 | ARMNN_AUTO_TEST_FIXTURE(DepthToSpaceNhwcInt8_3, |
| 1064 | ClContextControlFixture, DepthToSpaceTest3<DataType::QAsymmS8>, DataLayout::NHWC); |
| 1065 | ARMNN_AUTO_TEST_FIXTURE(DepthToSpaceNhwcInt8_4, |
| 1066 | ClContextControlFixture, DepthToSpaceTest4<DataType::QAsymmS8>, DataLayout::NHWC); |
Sadik Armagan | 303980c | 2020-04-17 12:45:14 +0100 | [diff] [blame] | 1067 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1068 | ARMNN_AUTO_TEST_FIXTURE(DepthToSpaceNhwcUint8_1, |
| 1069 | ClContextControlFixture, DepthToSpaceTest1<DataType::QAsymmU8>, DataLayout::NHWC); |
| 1070 | ARMNN_AUTO_TEST_FIXTURE(DepthToSpaceNhwcUint8_2, |
| 1071 | ClContextControlFixture, DepthToSpaceTest2<DataType::QAsymmU8>, DataLayout::NHWC); |
| 1072 | ARMNN_AUTO_TEST_FIXTURE(DepthToSpaceNhwcUint8_3, |
| 1073 | ClContextControlFixture, DepthToSpaceTest3<DataType::QAsymmU8>, DataLayout::NHWC); |
| 1074 | ARMNN_AUTO_TEST_FIXTURE(DepthToSpaceNhwcUint8_4, |
| 1075 | ClContextControlFixture, DepthToSpaceTest4<DataType::QAsymmU8>, DataLayout::NHWC); |
Aron Virginas-Tar | b280196 | 2019-09-30 11:24:53 +0100 | [diff] [blame] | 1076 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1077 | ARMNN_AUTO_TEST_FIXTURE(DepthToSpaceNhwcInt16_1, |
| 1078 | ClContextControlFixture, DepthToSpaceTest1<DataType::QSymmS16>, DataLayout::NHWC); |
| 1079 | ARMNN_AUTO_TEST_FIXTURE(DepthToSpaceNhwcInt16_2, |
| 1080 | ClContextControlFixture, DepthToSpaceTest2<DataType::QSymmS16>, DataLayout::NHWC); |
| 1081 | ARMNN_AUTO_TEST_FIXTURE(DepthToSpaceNhwcInt16_3, |
| 1082 | ClContextControlFixture, DepthToSpaceTest3<DataType::QSymmS16>, DataLayout::NHWC); |
| 1083 | ARMNN_AUTO_TEST_FIXTURE(DepthToSpaceNhwcInt16_4, |
| 1084 | ClContextControlFixture, DepthToSpaceTest4<DataType::QSymmS16>, DataLayout::NHWC); |
Aron Virginas-Tar | b280196 | 2019-09-30 11:24:53 +0100 | [diff] [blame] | 1085 | |
Sadik Armagan | 66aecb0 | 2020-06-24 11:42:20 +0100 | [diff] [blame] | 1086 | // Fill |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1087 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleFill, ClContextControlFixture, SimpleFillTest<DataType::Float32>) |
| 1088 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleFillF16, ClContextControlFixture, SimpleFillTest<DataType::Float16>) |
| 1089 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleFillS32, ClContextControlFixture, SimpleFillTest<DataType::Signed32>) |
Sadik Armagan | 66aecb0 | 2020-06-24 11:42:20 +0100 | [diff] [blame] | 1090 | |
Finn Williams | 826a543 | 2020-08-27 16:15:20 +0100 | [diff] [blame] | 1091 | // FloorPreluUint8 |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1092 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleFloor, ClContextControlFixture, SimpleFloorTest<DataType::Float32>) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 1093 | |
Teresa Charlin | 9ad2e5b | 2020-04-10 22:34:48 +0100 | [diff] [blame] | 1094 | // Gather |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1095 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Gather1dParamsFloat32, ClContextControlFixture, Gather1dParamsFloat32Test) |
| 1096 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Gather1dParamsUint8, ClContextControlFixture, Gather1dParamsUint8Test) |
| 1097 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(GatherMultiDimParamsFloat32, ClContextControlFixture, GatherMultiDimParamsFloat32Test) |
| 1098 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(GatherMultiDimParamsUint8, ClContextControlFixture, GatherMultiDimParamsUint8Test) |
Teresa Charlin | 9ad2e5b | 2020-04-10 22:34:48 +0100 | [diff] [blame] | 1099 | |
Teresa Charlin | 989e2f6 | 2022-04-27 16:26:11 +0100 | [diff] [blame] | 1100 | // GatherNd |
| 1101 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(GatherNd2dFloat32, ClContextControlFixture, SimpleGatherNd2dTest<DataType::Float32>) |
| 1102 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(GatherNd3dFloat32, ClContextControlFixture, SimpleGatherNd3dTest<DataType::Float32>) |
| 1103 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(GatherNd4dFloat32, ClContextControlFixture, SimpleGatherNd4dTest<DataType::Float32>) |
| 1104 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(GatherNd2dInt8, ClContextControlFixture, SimpleGatherNd2dTest<DataType::QAsymmS8>) |
| 1105 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(GatherNd3dInt8, ClContextControlFixture, SimpleGatherNd3dTest<DataType::QAsymmS8>) |
| 1106 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(GatherNd4dInt8, ClContextControlFixture, SimpleGatherNd4dTest<DataType::QAsymmS8>) |
| 1107 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(GatherNd2dInt32, ClContextControlFixture, SimpleGatherNd2dTest<DataType::Signed32>) |
| 1108 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(GatherNd3dInt32, ClContextControlFixture, SimpleGatherNd3dTest<DataType::Signed32>) |
| 1109 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(GatherNd4dInt32, ClContextControlFixture, SimpleGatherNd4dTest<DataType::Signed32>) |
| 1110 | |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 1111 | // Reshape |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1112 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleReshapeFloat32, ClContextControlFixture, SimpleReshapeTest<DataType::Float32>) |
| 1113 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleReshapeInt8, ClContextControlFixture, SimpleReshapeTest<DataType::QAsymmS8>) |
| 1114 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleReshapeUint8, ClContextControlFixture, SimpleReshapeTest<DataType::QAsymmU8>) |
| 1115 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Reshape5d, ClContextControlFixture, Reshape5dTest<DataType::Float32>) |
| 1116 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ReshapeBoolean, ClContextControlFixture, ReshapeBooleanTest) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 1117 | |
Teresa Charlin | 46c657d | 2021-10-27 22:29:13 +0100 | [diff] [blame] | 1118 | // Pad - Constant |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1119 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(PadFloat322d, ClContextControlFixture, PadFloat322dTest) |
| 1120 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(PadFloat322dCustomPadding, ClContextControlFixture, PadFloat322dCustomPaddingTest) |
| 1121 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(PadFloat323d, ClContextControlFixture, PadFloat323dTest) |
| 1122 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(PadFloat324d, ClContextControlFixture, PadFloat324dTest) |
Mohamed Nour Abouelseoud | 7420e55 | 2018-10-12 12:26:24 +0100 | [diff] [blame] | 1123 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1124 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(PadUint82d, ClContextControlFixture, PadUint82dTest) |
| 1125 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(PadUint82dCustomPadding, ClContextControlFixture, PadUint82dCustomPaddingTest) |
| 1126 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(PadUint83d, ClContextControlFixture, PadUint83dTest) |
| 1127 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(PadUint84d, ClContextControlFixture, PadUint84dTest) |
FinnWilliamsArm | ab80162 | 2019-07-09 14:46:28 +0100 | [diff] [blame] | 1128 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1129 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Pad2dQSymm16, |
| 1130 | ClContextControlFixture, Pad2dTestCommon<DataType::QSymmS16>, 2.0f, 0, 0.0f) |
| 1131 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Pad2dQSymm16CustomPadding, |
| 1132 | ClContextControlFixture, Pad2dTestCommon<DataType::QSymmS16>, 2.0f, 0, 1.0f) |
| 1133 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Pad3dQSymm16, ClContextControlFixture, Pad3dTestCommon<DataType::QSymmS16>, 2.0f, 0) |
| 1134 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Pad4dQSymm16, ClContextControlFixture, Pad4dTestCommon<DataType::QSymmS16>, 2.0f, 0) |
FinnWilliamsArm | ab80162 | 2019-07-09 14:46:28 +0100 | [diff] [blame] | 1135 | |
Teresa Charlin | 46c657d | 2021-10-27 22:29:13 +0100 | [diff] [blame] | 1136 | // Pad - Symmetric & Reflect |
| 1137 | ARMNN_AUTO_TEST_CASE_WITH_THF(PadSymmetric2dFloat32, PadSymmetric2dFloat32Test) |
| 1138 | ARMNN_AUTO_TEST_CASE_WITH_THF(PadReflect2dFloat32, PadReflect2dFloat32Test) |
| 1139 | ARMNN_AUTO_TEST_CASE_WITH_THF(PadSymmetric3dFloat32, PadSymmetric3dFloat32Test) |
| 1140 | ARMNN_AUTO_TEST_CASE_WITH_THF(PadReflect3dFloat32, PadReflect3dFloat32Test) |
| 1141 | ARMNN_AUTO_TEST_CASE_WITH_THF(PadSymmetric3dUint8, PadSymmetric3dUint8Test) |
| 1142 | ARMNN_AUTO_TEST_CASE_WITH_THF(PadReflect3dUint8, PadReflect3dUint8Test) |
| 1143 | ARMNN_AUTO_TEST_CASE_WITH_THF(PadSymmetric3dInt8, PadSymmetric3dInt8Test) |
| 1144 | ARMNN_AUTO_TEST_CASE_WITH_THF(PadReflect3dInt8, PadReflect3dInt8Test) |
| 1145 | ARMNN_AUTO_TEST_CASE_WITH_THF(PadSymmetricFloat16, PadSymmetricFloat16Test) |
| 1146 | ARMNN_AUTO_TEST_CASE_WITH_THF(PadReflectFloat16, PadReflectFloat16Test) |
| 1147 | |
Nikhil Raj | 91e4c6d | 2019-07-05 12:22:58 +0100 | [diff] [blame] | 1148 | // PReLU |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1149 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(PreluFloat32, ClContextControlFixture, PreluTest<DataType::Float32>) |
| 1150 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(PreluUint8, ClContextControlFixture, PreluTest<DataType::QAsymmU8>) |
Nikhil Raj | 91e4c6d | 2019-07-05 12:22:58 +0100 | [diff] [blame] | 1151 | |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 1152 | // Permute |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1153 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimplePermuteFloat32, ClContextControlFixture, SimplePermuteTest<DataType::Float32>) |
| 1154 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1155 | PermuteFloat32ValueSet1Test, ClContextControlFixture, PermuteValueSet1Test<DataType::Float32>) |
| 1156 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1157 | PermuteFloat32ValueSet2Test, ClContextControlFixture, PermuteValueSet2Test<DataType::Float32>) |
| 1158 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1159 | PermuteFloat32ValueSet3Test, ClContextControlFixture, PermuteValueSet3Test<DataType::Float32>) |
| 1160 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1161 | SimplePermuteQASymmS8, ClContextControlFixture, SimplePermuteTest<DataType::QAsymmS8>) |
| 1162 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1163 | PermuteQASymmS8ValueSet1Test, ClContextControlFixture, PermuteValueSet1Test<DataType::QAsymmS8>) |
| 1164 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1165 | PermuteQASymmS8ValueSet2Test, ClContextControlFixture, PermuteValueSet2Test<DataType::QAsymmS8>) |
| 1166 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1167 | PermuteQASymmS8ValueSet3Test, ClContextControlFixture, PermuteValueSet3Test<DataType::QAsymmS8>) |
| 1168 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1169 | SimplePermuteQASymm8, ClContextControlFixture, SimplePermuteTest<DataType::QAsymmU8>) |
| 1170 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1171 | PermuteQASymm8ValueSet1Test, ClContextControlFixture, PermuteValueSet1Test<DataType::QAsymmU8>) |
| 1172 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1173 | PermuteQASymm8ValueSet2Test, ClContextControlFixture, PermuteValueSet2Test<DataType::QAsymmU8>) |
| 1174 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1175 | PermuteQASymm8ValueSet3Test, ClContextControlFixture, PermuteValueSet3Test<DataType::QAsymmU8>) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 1176 | |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 1177 | // Lstm |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1178 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(LstmLayerFloat32WithCifgWithPeepholeNoProjection, ClContextControlFixture, |
Finn Williams | c43de6a | 2020-08-27 11:13:25 +0100 | [diff] [blame] | 1179 | LstmLayerFloat32WithCifgWithPeepholeNoProjectionTest) |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1180 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(LstmLayerFloat32NoCifgNoPeepholeNoProjection, ClContextControlFixture, |
Finn Williams | c43de6a | 2020-08-27 11:13:25 +0100 | [diff] [blame] | 1181 | LstmLayerFloat32NoCifgNoPeepholeNoProjectionTest) |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1182 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(LstmLayerFloat32NoCifgWithPeepholeWithProjection, ClContextControlFixture, |
Finn Williams | c43de6a | 2020-08-27 11:13:25 +0100 | [diff] [blame] | 1183 | LstmLayerFloat32NoCifgWithPeepholeWithProjectionTest) |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 1184 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1185 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(LstmLayerFloat32NoCifgWithPeepholeWithProjectionWithLayerNorm, |
| 1186 | ClContextControlFixture, |
| 1187 | LstmLayerFloat32NoCifgWithPeepholeWithProjectionWithLayerNormTest) |
Jan Eilers | a2ec909 | 2019-07-08 15:56:59 +0100 | [diff] [blame] | 1188 | |
Ryan OShea | 2323af4 | 2020-05-13 16:36:19 +0100 | [diff] [blame] | 1189 | // QLstm |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1190 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(QLstm, ClContextControlFixture, QLstmTest) |
| 1191 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(QLstm1, ClContextControlFixture, QLstmTest1) |
| 1192 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(QLstm2, ClContextControlFixture, QLstmTest2) |
Ryan OShea | 2323af4 | 2020-05-13 16:36:19 +0100 | [diff] [blame] | 1193 | |
| 1194 | // QuantizedLstm |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1195 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(QuantizedLstm, ClContextControlFixture, QuantizedLstmTest) |
Ferran Balaguer | 737d9ff | 2019-08-01 09:58:08 +0100 | [diff] [blame] | 1196 | |
Cathal Corbett | 4952a3e | 2022-03-03 15:14:18 +0000 | [diff] [blame] | 1197 | // Unidirectional Sequence Lstm |
| 1198 | ARMNN_AUTO_TEST_CASE_WITH_THF(UnidirectionalSequenceLstmLayerFloat32TimeMajorSingleBatch, |
| 1199 | UnidirectionalSequenceLstmLayerFloat32TimeMajorSingleBatchTest) |
| 1200 | ARMNN_AUTO_TEST_CASE_WITH_THF(UnidirectionalSequenceLstmLayerFloat32BatchMajorSingleBatch, |
| 1201 | UnidirectionalSequenceLstmLayerFloat32BatchMajorSingleBatchTest) |
| 1202 | ARMNN_AUTO_TEST_CASE_WITH_THF(UnidirectionalSequenceLstmLayerFloat32, |
| 1203 | UnidirectionalSequenceLstmLayerFloat32Test) |
| 1204 | ARMNN_AUTO_TEST_CASE_WITH_THF(UnidirectionalSequenceLstmLayerFloat32TimeMajor, |
| 1205 | UnidirectionalSequenceLstmLayerFloat32TimeMajorTest) |
| 1206 | ARMNN_AUTO_TEST_CASE_WITH_THF(UnidirectionalSequenceLstmLayerNoCifgWithPeepholeWithProjection, |
| 1207 | UnidirectionalSequenceLstmLayerNoCifgWithPeepholeWithProjectionTest) |
| 1208 | ARMNN_AUTO_TEST_CASE_WITH_THF(UnidirectionalSequenceLstmLayerNoCifgWithPeepholeWithProjectionWithLayerNorm, |
| 1209 | UnidirectionalSequenceLstmLayerNoCifgWithPeepholeWithProjectionWithLayerNormTest) |
| 1210 | ARMNN_AUTO_TEST_CASE_WITH_THF(UnidirectionalSequenceLstmWithCifgWithPeepholeNoProjection, |
| 1211 | UnidirectionalSequenceLstmWithCifgWithPeepholeNoProjectionTest) |
| 1212 | |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 1213 | // Convert from Float16 to Float32 |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1214 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleConvertFp16ToFp32, ClContextControlFixture, SimpleConvertFp16ToFp32Test) |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 1215 | // Convert from Float32 to Float16 |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1216 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleConvertFp32ToFp16, ClContextControlFixture, SimpleConvertFp32ToFp16Test) |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 1217 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1218 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(AdditionAfterMaxPool, ClContextControlFixture, AdditionAfterMaxPoolTest) |
Éanna Ó Catháin | 47c1ddb | 2018-10-12 14:24:13 +0100 | [diff] [blame] | 1219 | |
keidav01 | a959ee5 | 2018-12-19 10:04:58 +0000 | [diff] [blame] | 1220 | //Max |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1221 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(MaximumSimple, ClContextControlFixture, MaximumSimpleTest) |
| 1222 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(MaximumBroadcast1Element, ClContextControlFixture, MaximumBroadcast1ElementTest) |
| 1223 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(MaximumBroadcast1DVector, ClContextControlFixture, MaximumBroadcast1DVectorTest) |
| 1224 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(MaximumUint8, ClContextControlFixture, MaximumUint8Test) |
| 1225 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1226 | MaximumBroadcast1ElementUint8, ClContextControlFixture, MaximumBroadcast1ElementUint8Test) |
| 1227 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1228 | MaximumBroadcast1DVectorUint8, ClContextControlFixture, MaximumBroadcast1DVectorUint8Test) |
keidav01 | a959ee5 | 2018-12-19 10:04:58 +0000 | [diff] [blame] | 1229 | |
Matteo Martincigh | 28dcab6 | 2018-10-19 16:40:03 +0100 | [diff] [blame] | 1230 | // Mean |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1231 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(MeanSimpleFloat32, ClContextControlFixture, MeanSimpleTest<DataType::Float32>) |
| 1232 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(MeanSimpleAxisFloat32, ClContextControlFixture, MeanSimpleAxisTest<DataType::Float32>) |
| 1233 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(MeanKeepDimsFloat32, ClContextControlFixture, MeanKeepDimsTest<DataType::Float32>) |
| 1234 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1235 | MeanMultipleDimsFloat32, ClContextControlFixture, MeanMultipleDimsTest<DataType::Float32>) |
| 1236 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(MeanVts1Float32, ClContextControlFixture, MeanVts1Test<DataType::Float32>) |
| 1237 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(MeanVts2Float32, ClContextControlFixture, MeanVts2Test<DataType::Float32>) |
| 1238 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(MeanVts3Float32, ClContextControlFixture, MeanVts3Test<DataType::Float32>) |
Matteo Martincigh | 28dcab6 | 2018-10-19 16:40:03 +0100 | [diff] [blame] | 1239 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1240 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1241 | MeanSimpleQuantisedAsymmS8, ClContextControlFixture, MeanSimpleTest<DataType::QAsymmS8>) |
| 1242 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1243 | MeanSimpleAxisQuantisedAsymmS8, ClContextControlFixture, MeanSimpleAxisTest<DataType::QAsymmS8>) |
| 1244 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1245 | MeanKeepDimsQuantisedAsymmS8, ClContextControlFixture, MeanKeepDimsTest<DataType::QAsymmS8>) |
| 1246 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1247 | MeanMultipleDimsQuantisedAsymmS8, ClContextControlFixture, MeanMultipleDimsTest<DataType::QAsymmS8>) |
| 1248 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(MeanVts1QuantisedAsymmS8, ClContextControlFixture, MeanVts1Test<DataType::QAsymmS8>) |
| 1249 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(MeanVts2QuantisedAsymmS8, ClContextControlFixture, MeanVts2Test<DataType::QAsymmS8>) |
| 1250 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(MeanVts3QuantisedAsymmS8, ClContextControlFixture, MeanVts3Test<DataType::QAsymmS8>) |
Sadik Armagan | 303980c | 2020-04-17 12:45:14 +0100 | [diff] [blame] | 1251 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1252 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1253 | MeanSimpleQuantisedAsymm8, ClContextControlFixture, MeanSimpleTest<DataType::QAsymmU8>) |
| 1254 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1255 | MeanSimpleAxisQuantisedAsymm8, ClContextControlFixture, MeanSimpleAxisTest<DataType::QAsymmU8>) |
| 1256 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1257 | MeanKeepDimsQuantisedAsymm8, ClContextControlFixture, MeanKeepDimsTest<DataType::QAsymmU8>) |
| 1258 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1259 | MeanMultipleDimsQuantisedAsymm8, ClContextControlFixture, MeanMultipleDimsTest<DataType::QAsymmU8>) |
| 1260 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(MeanVts1QuantisedAsymm8, ClContextControlFixture, MeanVts1Test<DataType::QAsymmU8>) |
| 1261 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(MeanVts2QuantisedAsymm8, ClContextControlFixture, MeanVts2Test<DataType::QAsymmU8>) |
| 1262 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(MeanVts3QuantisedAsymm8, ClContextControlFixture, MeanVts3Test<DataType::QAsymmU8>) |
Matteo Martincigh | 28dcab6 | 2018-10-19 16:40:03 +0100 | [diff] [blame] | 1263 | |
saoste01 | 9292aa3 | 2019-01-08 13:55:59 +0000 | [diff] [blame] | 1264 | // Minimum |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1265 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(MinimumBroadcast1Element1, ClContextControlFixture, MinimumBroadcast1ElementTest1) |
| 1266 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(MinimumBroadcast1Element2, ClContextControlFixture, MinimumBroadcast1ElementTest2) |
| 1267 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1268 | MinimumBroadcast1DVectorUint8, ClContextControlFixture, MinimumBroadcast1DVectorUint8Test) |
saoste01 | 9292aa3 | 2019-01-08 13:55:59 +0000 | [diff] [blame] | 1269 | |
Teresa Charlin | 2b030d9 | 2020-03-27 16:40:56 +0000 | [diff] [blame] | 1270 | // Equal |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1271 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(EqualSimple, ClContextControlFixture, EqualSimpleTest) |
| 1272 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(EqualBroadcast1Element, ClContextControlFixture, EqualBroadcast1ElementTest) |
| 1273 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(EqualBroadcast1dVector, ClContextControlFixture, EqualBroadcast1dVectorTest) |
Teresa Charlin | 2b030d9 | 2020-03-27 16:40:56 +0000 | [diff] [blame] | 1274 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1275 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(EqualSimpleFloat16, ClContextControlFixture, EqualSimpleFloat16Test) |
| 1276 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1277 | EqualBroadcast1ElementFloat16, ClContextControlFixture, EqualBroadcast1ElementFloat16Test) |
| 1278 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1279 | EqualBroadcast1dVectorFloat16, ClContextControlFixture, EqualBroadcast1dVectorFloat16Test) |
Teresa Charlin | 2b030d9 | 2020-03-27 16:40:56 +0000 | [diff] [blame] | 1280 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1281 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(EqualSimpleUint8, ClContextControlFixture, EqualSimpleUint8Test) |
| 1282 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(EqualBroadcast1ElementUint8, ClContextControlFixture, EqualBroadcast1ElementUint8Test) |
| 1283 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(EqualBroadcast1dVectorUint8, ClContextControlFixture, EqualBroadcast1dVectorUint8Test) |
Teresa Charlin | 2b030d9 | 2020-03-27 16:40:56 +0000 | [diff] [blame] | 1284 | |
Nattapat Chaimanowong | c6a41ff | 2019-01-29 09:56:02 +0000 | [diff] [blame] | 1285 | // Greater |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1286 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(GreaterSimple, ClContextControlFixture, GreaterSimpleTest) |
| 1287 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(GreaterBroadcast1Element, ClContextControlFixture, GreaterBroadcast1ElementTest) |
| 1288 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(GreaterBroadcast1dVector, ClContextControlFixture, GreaterBroadcast1dVectorTest) |
Aron Virginas-Tar | 3bc00ec | 2019-10-18 15:42:58 +0100 | [diff] [blame] | 1289 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1290 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(GreaterSimpleFloat16, ClContextControlFixture, GreaterSimpleFloat16Test) |
| 1291 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1292 | GreaterBroadcast1ElementFloat16, ClContextControlFixture, GreaterBroadcast1ElementFloat16Test) |
| 1293 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1294 | GreaterBroadcast1dVectorFloat16, ClContextControlFixture, GreaterBroadcast1dVectorFloat16Test) |
Teresa Charlin | 2b030d9 | 2020-03-27 16:40:56 +0000 | [diff] [blame] | 1295 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1296 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(GreaterSimpleUint8, ClContextControlFixture, GreaterSimpleUint8Test) |
| 1297 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1298 | GreaterBroadcast1ElementUint8, ClContextControlFixture, GreaterBroadcast1ElementUint8Test) |
| 1299 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1300 | GreaterBroadcast1dVectorUint8, ClContextControlFixture, GreaterBroadcast1dVectorUint8Test) |
Nattapat Chaimanowong | c6a41ff | 2019-01-29 09:56:02 +0000 | [diff] [blame] | 1301 | |
Teresa Charlin | 2b030d9 | 2020-03-27 16:40:56 +0000 | [diff] [blame] | 1302 | // GreaterOrEqual |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1303 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(GreaterOrEqualSimple, ClContextControlFixture, GreaterOrEqualSimpleTest) |
| 1304 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1305 | GreaterOrEqualBroadcast1Element, ClContextControlFixture, GreaterOrEqualBroadcast1ElementTest) |
| 1306 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1307 | GreaterOrEqualBroadcast1dVector, ClContextControlFixture, GreaterOrEqualBroadcast1dVectorTest) |
Teresa Charlin | 2b030d9 | 2020-03-27 16:40:56 +0000 | [diff] [blame] | 1308 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1309 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1310 | GreaterOrEqualSimpleFloat16, ClContextControlFixture, GreaterOrEqualSimpleFloat16Test) |
| 1311 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1312 | GreaterOrEqualBroadcast1ElementFloat16, ClContextControlFixture, GreaterOrEqualBroadcast1ElementFloat16Test) |
| 1313 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1314 | GreaterOrEqualBroadcast1dVectorFloat16, ClContextControlFixture, GreaterOrEqualBroadcast1dVectorFloat16Test) |
Teresa Charlin | 2b030d9 | 2020-03-27 16:40:56 +0000 | [diff] [blame] | 1315 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1316 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(GreaterOrEqualSimpleUint8, ClContextControlFixture, GreaterOrEqualSimpleUint8Test) |
| 1317 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1318 | GreaterOrEqualBroadcast1ElementUint8, ClContextControlFixture, GreaterOrEqualBroadcast1ElementUint8Test) |
| 1319 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1320 | GreaterOrEqualBroadcast1dVectorUint8, ClContextControlFixture, GreaterOrEqualBroadcast1dVectorUint8Test) |
Teresa Charlin | 2b030d9 | 2020-03-27 16:40:56 +0000 | [diff] [blame] | 1321 | |
| 1322 | // Less |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1323 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(LessSimple, ClContextControlFixture, LessSimpleTest) |
| 1324 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(LessBroadcast1Element, ClContextControlFixture, LessBroadcast1ElementTest) |
| 1325 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(LessBroadcast1dVector, ClContextControlFixture, LessBroadcast1dVectorTest) |
Teresa Charlin | 2b030d9 | 2020-03-27 16:40:56 +0000 | [diff] [blame] | 1326 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1327 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(LessSimpleFloat16, ClContextControlFixture, LessSimpleFloat16Test) |
| 1328 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1329 | LessBroadcast1ElementFloat16, ClContextControlFixture, LessBroadcast1ElementFloat16Test) |
| 1330 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1331 | LessBroadcast1dVectorFloat16, ClContextControlFixture, LessBroadcast1dVectorFloat16Test) |
Teresa Charlin | 2b030d9 | 2020-03-27 16:40:56 +0000 | [diff] [blame] | 1332 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1333 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(LessSimpleUint8, ClContextControlFixture, LessSimpleUint8Test) |
| 1334 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(LessBroadcast1ElementUint8, ClContextControlFixture, LessBroadcast1ElementUint8Test) |
| 1335 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(LessBroadcast1dVectorUint8, ClContextControlFixture, LessBroadcast1dVectorUint8Test) |
Teresa Charlin | 2b030d9 | 2020-03-27 16:40:56 +0000 | [diff] [blame] | 1336 | |
| 1337 | // LessOrEqual |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1338 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(LessOrEqualSimple, ClContextControlFixture, LessOrEqualSimpleTest) |
| 1339 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1340 | LessOrEqualBroadcast1Element, ClContextControlFixture, LessOrEqualBroadcast1ElementTest) |
| 1341 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1342 | LessOrEqualBroadcast1dVector, ClContextControlFixture, LessOrEqualBroadcast1dVectorTest) |
Teresa Charlin | 2b030d9 | 2020-03-27 16:40:56 +0000 | [diff] [blame] | 1343 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1344 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(LessOrEqualSimpleFloat16, ClContextControlFixture, LessOrEqualSimpleFloat16Test) |
| 1345 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1346 | LessOrEqualBroadcast1ElementFloat16, ClContextControlFixture, LessOrEqualBroadcast1ElementFloat16Test) |
| 1347 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1348 | LessOrEqualBroadcast1dVectorFloat16, ClContextControlFixture, LessOrEqualBroadcast1dVectorFloat16Test) |
Teresa Charlin | 2b030d9 | 2020-03-27 16:40:56 +0000 | [diff] [blame] | 1349 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1350 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(LessOrEqualSimpleUint8, ClContextControlFixture, LessOrEqualSimpleUint8Test) |
| 1351 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1352 | LessOrEqualBroadcast1ElementUint8, ClContextControlFixture, LessOrEqualBroadcast1ElementUint8Test) |
| 1353 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1354 | LessOrEqualBroadcast1dVectorUint8, ClContextControlFixture, LessOrEqualBroadcast1dVectorUint8Test) |
Teresa Charlin | 2b030d9 | 2020-03-27 16:40:56 +0000 | [diff] [blame] | 1355 | |
| 1356 | // NotEqual |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1357 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(NotEqualSimple, ClContextControlFixture, NotEqualSimpleTest) |
| 1358 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(NotEqualBroadcast1Element, ClContextControlFixture, NotEqualBroadcast1ElementTest) |
| 1359 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(NotEqualBroadcast1dVector, ClContextControlFixture, NotEqualBroadcast1dVectorTest) |
Teresa Charlin | 2b030d9 | 2020-03-27 16:40:56 +0000 | [diff] [blame] | 1360 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1361 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(NotEqualSimpleFloat16, ClContextControlFixture, NotEqualSimpleFloat16Test) |
| 1362 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1363 | NotEqualBroadcast1ElementFloat16, ClContextControlFixture, NotEqualBroadcast1ElementFloat16Test) |
| 1364 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1365 | NotEqualBroadcast1dVectorFloat16, ClContextControlFixture, NotEqualBroadcast1dVectorFloat16Test) |
Teresa Charlin | 2b030d9 | 2020-03-27 16:40:56 +0000 | [diff] [blame] | 1366 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1367 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(NotEqualSimpleUint8, ClContextControlFixture, NotEqualSimpleUint8Test) |
| 1368 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1369 | NotEqualBroadcast1ElementUint8, ClContextControlFixture, NotEqualBroadcast1ElementUint8Test) |
| 1370 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1371 | NotEqualBroadcast1dVectorUint8, ClContextControlFixture, NotEqualBroadcast1dVectorUint8Test) |
Teresa Charlin | 2b030d9 | 2020-03-27 16:40:56 +0000 | [diff] [blame] | 1372 | |
Narumol Prangnawarat | 65d3096 | 2019-03-14 11:55:03 +0000 | [diff] [blame] | 1373 | // Softmax |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1374 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleSoftmaxBeta1, ClContextControlFixture, SimpleSoftmaxTest, 1.0f) |
| 1375 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleSoftmaxBeta2, ClContextControlFixture, SimpleSoftmaxTest, 2.0f) |
| 1376 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleSoftmaxBeta1Uint8, ClContextControlFixture, SimpleSoftmaxUint8Test, 1.0f) |
| 1377 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleSoftmaxBeta2Uint8, ClContextControlFixture, SimpleSoftmaxUint8Test, 2.0f) |
Narumol Prangnawarat | 65d3096 | 2019-03-14 11:55:03 +0000 | [diff] [blame] | 1378 | |
Teresa Charlin | 8398edc | 2020-07-20 14:23:02 +0100 | [diff] [blame] | 1379 | // LogSoftmax |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1380 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(LogSoftmaxFloat32_1, ClContextControlFixture, LogSoftmaxTest1<DataType::Float32>) |
Teresa Charlin | 8398edc | 2020-07-20 14:23:02 +0100 | [diff] [blame] | 1381 | |
Sadik Armagan | f446432 | 2018-12-20 16:19:12 +0000 | [diff] [blame] | 1382 | // Space To Batch Nd |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1383 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SpaceToBatchNdSimpleFloat32, ClContextControlFixture, SpaceToBatchNdSimpleFloat32Test) |
| 1384 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1385 | SpaceToBatchNdMultiChannelsFloat32, ClContextControlFixture, SpaceToBatchNdMultiChannelsFloat32Test) |
| 1386 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1387 | SpaceToBatchNdMultiBlockFloat32, ClContextControlFixture, SpaceToBatchNdMultiBlockFloat32Test) |
| 1388 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1389 | SpaceToBatchNdPaddingFloat32, ClContextControlFixture, SpaceToBatchNdPaddingFloat32Test) |
Sadik Armagan | f446432 | 2018-12-20 16:19:12 +0000 | [diff] [blame] | 1390 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1391 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SpaceToBatchNdSimpleUint8, ClContextControlFixture, SpaceToBatchNdSimpleUint8Test) |
| 1392 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1393 | SpaceToBatchNdMultiChannelsUint8, ClContextControlFixture, SpaceToBatchNdMultiChannelsUint8Test) |
| 1394 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1395 | SpaceToBatchNdMultiBlockUint8, ClContextControlFixture, SpaceToBatchNdMultiBlockUint8Test) |
| 1396 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1397 | SpaceToBatchNdPaddingUint8, ClContextControlFixture, SpaceToBatchNdPaddingUint8Test) |
Sadik Armagan | f446432 | 2018-12-20 16:19:12 +0000 | [diff] [blame] | 1398 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1399 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1400 | SpaceToBatchNdSimpleNhwcFloat32, ClContextControlFixture, SpaceToBatchNdSimpleNhwcFloat32Test) |
| 1401 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1402 | SpaceToBatchNdMultiChannelsNhwcFloat32, ClContextControlFixture, SpaceToBatchNdMultiChannelsNhwcFloat32Test) |
| 1403 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1404 | SpaceToBatchNdMultiBlockNhwcFloat32, ClContextControlFixture, SpaceToBatchNdMultiBlockNhwcFloat32Test) |
| 1405 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1406 | SpaceToBatchNdPaddingNhwcFloat32, ClContextControlFixture, SpaceToBatchNdPaddingNhwcFloat32Test) |
Sadik Armagan | f446432 | 2018-12-20 16:19:12 +0000 | [diff] [blame] | 1407 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1408 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1409 | SpaceToBatchNdSimpleNhwcUint8, ClContextControlFixture, SpaceToBatchNdSimpleNhwcUint8Test) |
| 1410 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1411 | SpaceToBatchNdMultiChannelsNhwcUint8, ClContextControlFixture, SpaceToBatchNdMultiChannelsNhwcUint8Test) |
| 1412 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1413 | SpaceToBatchNdMultiBlockNhwcUint8, ClContextControlFixture, SpaceToBatchNdMultiBlockNhwcUint8Test) |
| 1414 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1415 | SpaceToBatchNdPaddingNhwcUint8, ClContextControlFixture, SpaceToBatchNdPaddingNhwcUint8Test) |
Sadik Armagan | f446432 | 2018-12-20 16:19:12 +0000 | [diff] [blame] | 1416 | |
James Conroy | d2aa85e | 2019-07-01 17:12:40 +0100 | [diff] [blame] | 1417 | // Space To Depth |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1418 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SpaceToDepthNhwcAsymmQ8, ClContextControlFixture, SpaceToDepthNhwcAsymmQ8Test) |
| 1419 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SpaceToDepthNchwAsymmQ8, ClContextControlFixture, SpaceToDepthNchwAsymmQ8Test) |
James Conroy | d2aa85e | 2019-07-01 17:12:40 +0100 | [diff] [blame] | 1420 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1421 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SpaceToDepthNhwx1Float32, ClContextControlFixture, SpaceToDepthNhwcFloat32Test1) |
| 1422 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SpaceToDepthNchw1Float32, ClContextControlFixture, SpaceToDepthNchwFloat32Test1) |
James Conroy | d2aa85e | 2019-07-01 17:12:40 +0100 | [diff] [blame] | 1423 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1424 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SpaceToDepthNhwc2Float32, ClContextControlFixture, SpaceToDepthNhwcFloat32Test2) |
| 1425 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SpaceToDepthNchw2Float32, ClContextControlFixture, SpaceToDepthNchwFloat32Test2) |
James Conroy | d2aa85e | 2019-07-01 17:12:40 +0100 | [diff] [blame] | 1426 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1427 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SpaceToDepthNhwcQSymm16, ClContextControlFixture, SpaceToDepthNhwcQSymm16Test) |
| 1428 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SpaceToDepthNchwQSymm16, ClContextControlFixture, SpaceToDepthNchwQSymm16Test) |
James Conroy | d2aa85e | 2019-07-01 17:12:40 +0100 | [diff] [blame] | 1429 | |
Matthew Jackson | d516610 | 2019-07-31 14:06:28 +0100 | [diff] [blame] | 1430 | // Stack |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1431 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Stack0Axis, ClContextControlFixture, StackAxis0Float32Test) |
| 1432 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(StackOutput4DAxis1, ClContextControlFixture, StackOutput4DAxis1Float32Test) |
| 1433 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(StackOutput4DAxis2, ClContextControlFixture, StackOutput4DAxis2Float32Test) |
| 1434 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(StackOutput4DAxis3, ClContextControlFixture, StackOutput4DAxis3Float32Test) |
| 1435 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(StackOutput3DInputs3, ClContextControlFixture, StackOutput3DInputs3Float32Test) |
| 1436 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(StackOutput5D, ClContextControlFixture, StackOutput5DFloat32Test) |
| 1437 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(StackFloat16, ClContextControlFixture, StackFloat16Test) |
Matthew Jackson | d516610 | 2019-07-31 14:06:28 +0100 | [diff] [blame] | 1438 | |
Aron Virginas-Tar | 94c4fef | 2019-11-25 15:37:08 +0000 | [diff] [blame] | 1439 | // Slice |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1440 | ARMNN_AUTO_TEST_FIXTURE(Slice4dFloat32, ClContextControlFixture, Slice4dFloat32Test) |
| 1441 | ARMNN_AUTO_TEST_FIXTURE(Slice3dFloat32, ClContextControlFixture, Slice3dFloat32Test) |
| 1442 | ARMNN_AUTO_TEST_FIXTURE(Slice2dFloat32, ClContextControlFixture, Slice2dFloat32Test) |
| 1443 | ARMNN_AUTO_TEST_FIXTURE(Slice1dFloat32, ClContextControlFixture, Slice1dFloat32Test) |
| 1444 | ARMNN_AUTO_TEST_FIXTURE(Slice4dUint8, ClContextControlFixture, Slice4dUint8Test) |
| 1445 | ARMNN_AUTO_TEST_FIXTURE(Slice3dUint8, ClContextControlFixture, Slice3dUint8Test) |
| 1446 | ARMNN_AUTO_TEST_FIXTURE(Slice2dUint8, ClContextControlFixture, Slice2dUint8Test) |
| 1447 | ARMNN_AUTO_TEST_FIXTURE(Slice1dUint8, ClContextControlFixture, Slice1dUint8Test) |
| 1448 | ARMNN_AUTO_TEST_FIXTURE(Slice4dInt16, ClContextControlFixture, Slice4dInt16Test) |
| 1449 | ARMNN_AUTO_TEST_FIXTURE(Slice3dInt16, ClContextControlFixture, Slice3dInt16Test) |
| 1450 | ARMNN_AUTO_TEST_FIXTURE(Slice2dInt16, ClContextControlFixture, Slice2dInt16Test) |
| 1451 | ARMNN_AUTO_TEST_FIXTURE(Slice1dInt16, ClContextControlFixture, Slice1dInt16Test) |
Aron Virginas-Tar | 94c4fef | 2019-11-25 15:37:08 +0000 | [diff] [blame] | 1452 | |
keidav01 | d74dc91 | 2018-12-10 18:16:07 +0000 | [diff] [blame] | 1453 | // Strided Slice |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1454 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(StridedSlice4dFloat32, ClContextControlFixture, StridedSlice4dFloat32Test) |
| 1455 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1456 | StridedSlice4dReverseFloat32, ClContextControlFixture, StridedSlice4dReverseFloat32Test) |
| 1457 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1458 | StridedSliceSimpleStrideFloat32, ClContextControlFixture, StridedSliceSimpleStrideFloat32Test) |
| 1459 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1460 | StridedSliceSimpleRangeMaskFloat32, ClContextControlFixture, StridedSliceSimpleRangeMaskFloat32Test) |
| 1461 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1462 | StridedSliceShrinkAxisMaskFloat32, ClContextControlFixture, StridedSliceShrinkAxisMaskFloat32Test) |
| 1463 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1464 | StridedSliceShrinkAxisMaskCTSFloat32, ClContextControlFixture, StridedSliceShrinkAxisMaskCTSFloat32Test) |
| 1465 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(StridedSliceShrinkAxisMaskBitPosition0Dim3Float32, ClContextControlFixture, |
Francis Murtagh | ec33a91 | 2019-11-05 14:26:23 +0000 | [diff] [blame] | 1466 | StridedSliceShrinkAxisMaskBitPosition0Dim3Float32Test) |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1467 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(StridedSliceShrinkAxisMaskBitPosition0Float32, |
| 1468 | ClContextControlFixture, |
| 1469 | StridedSliceShrinkAxisMaskBitPosition0Float32Test) |
| 1470 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(StridedSliceShrinkAxisMaskBitPosition1Float32, |
| 1471 | ClContextControlFixture, |
| 1472 | StridedSliceShrinkAxisMaskBitPosition1Float32Test) |
| 1473 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(StridedSliceShrinkAxisMaskBitPosition2Float32, |
| 1474 | ClContextControlFixture, |
| 1475 | StridedSliceShrinkAxisMaskBitPosition2Float32Test) |
| 1476 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(StridedSliceShrinkAxisMaskBitPosition3Float32, |
| 1477 | ClContextControlFixture, |
| 1478 | StridedSliceShrinkAxisMaskBitPosition3Float32Test) |
| 1479 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(StridedSliceShrinkAxisMaskBitPosition0And1Float32, |
| 1480 | ClContextControlFixture, |
| 1481 | StridedSliceShrinkAxisMaskBitPosition0And1Float32Test) |
| 1482 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(StridedSliceShrinkAxisMaskBitPosition0And2Float32, |
| 1483 | ClContextControlFixture, |
| 1484 | StridedSliceShrinkAxisMaskBitPosition0And2Float32Test) |
| 1485 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(StridedSliceShrinkAxisMaskBitPosition0And3Float32, |
| 1486 | ClContextControlFixture, |
| 1487 | StridedSliceShrinkAxisMaskBitPosition0And3Float32Test) |
| 1488 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(StridedSliceShrinkAxisMaskBitPosition0And1And3Float32, |
| 1489 | ClContextControlFixture, |
| 1490 | StridedSliceShrinkAxisMaskBitPosition0And1And3Float32Test) |
| 1491 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(StridedSlice3dFloat32, |
| 1492 | ClContextControlFixture, |
| 1493 | StridedSlice3dFloat32Test) |
| 1494 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1495 | StridedSlice3dReverseFloat32, ClContextControlFixture, StridedSlice3dReverseFloat32Test) |
| 1496 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1497 | StridedSlice2dFloat32, ClContextControlFixture, StridedSlice2dFloat32Test) |
| 1498 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1499 | StridedSlice2dReverseFloat32, ClContextControlFixture, StridedSlice2dReverseFloat32Test) |
keidav01 | d74dc91 | 2018-12-10 18:16:07 +0000 | [diff] [blame] | 1500 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1501 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(StridedSlice4dUint8, ClContextControlFixture, StridedSlice4dUint8Test) |
| 1502 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1503 | StridedSlice4dReverseUint8, ClContextControlFixture, StridedSlice4dReverseUint8Test) |
| 1504 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1505 | StridedSliceSimpleStrideUint8, ClContextControlFixture, StridedSliceSimpleStrideUint8Test) |
| 1506 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1507 | StridedSliceSimpleRangeMaskUint8, ClContextControlFixture, StridedSliceSimpleRangeMaskUint8Test) |
| 1508 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1509 | StridedSliceShrinkAxisMaskUint8, ClContextControlFixture, StridedSliceShrinkAxisMaskUint8Test) |
| 1510 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(StridedSliceShrinkAxisMaskBitPosition0Dim3Uint8, |
| 1511 | ClContextControlFixture, |
| 1512 | StridedSliceShrinkAxisMaskBitPosition0Dim3Uint8Test) |
| 1513 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(StridedSliceShrinkAxisMaskBitPosition0Uint8, |
| 1514 | ClContextControlFixture, |
| 1515 | StridedSliceShrinkAxisMaskBitPosition0Uint8Test) |
| 1516 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(StridedSliceShrinkAxisMaskBitPosition1Uint8, |
| 1517 | ClContextControlFixture, |
| 1518 | StridedSliceShrinkAxisMaskBitPosition1Uint8Test) |
| 1519 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(StridedSliceShrinkAxisMaskBitPosition2Uint8, |
| 1520 | ClContextControlFixture, |
| 1521 | StridedSliceShrinkAxisMaskBitPosition2Uint8Test) |
| 1522 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(StridedSliceShrinkAxisMaskBitPosition3Uint8, |
| 1523 | ClContextControlFixture, |
| 1524 | StridedSliceShrinkAxisMaskBitPosition3Uint8Test) |
| 1525 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(StridedSliceShrinkAxisMaskBitPosition0And1Uint8, |
| 1526 | ClContextControlFixture, |
| 1527 | StridedSliceShrinkAxisMaskBitPosition0And1Uint8Test) |
| 1528 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(StridedSliceShrinkAxisMaskBitPosition0And2Uint8, |
| 1529 | ClContextControlFixture, |
| 1530 | StridedSliceShrinkAxisMaskBitPosition0And2Uint8Test) |
| 1531 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(StridedSliceShrinkAxisMaskBitPosition0And3Uint8, |
| 1532 | ClContextControlFixture, |
| 1533 | StridedSliceShrinkAxisMaskBitPosition0And3Uint8Test) |
| 1534 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(StridedSliceShrinkAxisMaskBitPosition0And1And3Uint8, |
| 1535 | ClContextControlFixture, |
| 1536 | StridedSliceShrinkAxisMaskBitPosition0And1And3Uint8Test) |
| 1537 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(StridedSlice3dUint8, ClContextControlFixture, StridedSlice3dUint8Test) |
| 1538 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(StridedSlice3dReverseUint8, ClContextControlFixture, StridedSlice3dReverseUint8Test) |
| 1539 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(StridedSlice2dUint8, ClContextControlFixture, StridedSlice2dUint8Test) |
| 1540 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(StridedSlice2dReverseUint8, ClContextControlFixture, StridedSlice2dReverseUint8Test) |
keidav01 | d74dc91 | 2018-12-10 18:16:07 +0000 | [diff] [blame] | 1541 | |
Aron Virginas-Tar | cc0cefb | 2019-07-02 17:25:47 +0100 | [diff] [blame] | 1542 | // Resize Bilinear - NCHW |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1543 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleResizeBilinear, |
| 1544 | ClContextControlFixture, |
| 1545 | SimpleResizeBilinearTest<DataType::Float32>, |
| 1546 | DataLayout::NCHW) |
| 1547 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleResizeBilinearInt8, |
| 1548 | ClContextControlFixture, |
| 1549 | SimpleResizeBilinearTest<DataType::QAsymmS8>, |
| 1550 | DataLayout::NCHW) |
| 1551 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleResizeBilinearUint8, |
| 1552 | ClContextControlFixture, |
| 1553 | SimpleResizeBilinearTest<DataType::QAsymmU8>, |
| 1554 | DataLayout::NCHW) |
| 1555 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ResizeBilinearNop, |
| 1556 | ClContextControlFixture, |
| 1557 | ResizeBilinearNopTest<DataType::Float32>, |
| 1558 | DataLayout::NCHW) |
| 1559 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ResizeBilinearNopInt8, |
| 1560 | ClContextControlFixture, |
| 1561 | ResizeBilinearNopTest<DataType::QAsymmS8>, |
| 1562 | DataLayout::NCHW) |
| 1563 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ResizeBilinearNopUint8, |
| 1564 | ClContextControlFixture, |
| 1565 | ResizeBilinearNopTest<DataType::QAsymmU8>, |
| 1566 | DataLayout::NCHW) |
| 1567 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ResizeBilinearSqMin, |
| 1568 | ClContextControlFixture, |
| 1569 | ResizeBilinearSqMinTest<DataType::Float32>, |
| 1570 | DataLayout::NCHW) |
| 1571 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ResizeBilinearSqMinInt8, |
| 1572 | ClContextControlFixture, |
| 1573 | ResizeBilinearSqMinTest<DataType::QAsymmS8>, |
| 1574 | DataLayout::NCHW) |
| 1575 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ResizeBilinearSqMinUint8, |
| 1576 | ClContextControlFixture, |
| 1577 | ResizeBilinearSqMinTest<DataType::QAsymmU8>, |
| 1578 | DataLayout::NCHW) |
| 1579 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ResizeBilinearMin, |
| 1580 | ClContextControlFixture, |
| 1581 | ResizeBilinearMinTest<DataType::Float32>, |
| 1582 | DataLayout::NCHW) |
| 1583 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ResizeBilinearMinInt8, |
| 1584 | ClContextControlFixture, |
| 1585 | ResizeBilinearMinTest<DataType::QAsymmS8>, |
| 1586 | DataLayout::NCHW) |
| 1587 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ResizeBilinearMinUint8, |
| 1588 | ClContextControlFixture, |
| 1589 | ResizeBilinearMinTest<DataType::QAsymmU8>, |
| 1590 | DataLayout::NCHW) |
Aron Virginas-Tar | cc0cefb | 2019-07-02 17:25:47 +0100 | [diff] [blame] | 1591 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1592 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(HalfPixelCentersResizeBilinear, |
| 1593 | ClContextControlFixture, |
| 1594 | HalfPixelCentersResizeBilinearTest<DataType::Float32>, |
| 1595 | DataLayout::NCHW) |
| 1596 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(AlignCornersResizeBilinear, |
| 1597 | ClContextControlFixture, |
| 1598 | AlignCornersResizeBilinearTest<DataType::Float32>, |
| 1599 | DataLayout::NCHW) |
| 1600 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(HalfPixelCentersResizeBilinearInt8, |
| 1601 | ClContextControlFixture, |
| 1602 | HalfPixelCentersResizeBilinearTest<DataType::QAsymmS8>, |
| 1603 | DataLayout::NCHW) |
| 1604 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(AlignCornersResizeBilinearInt8, |
| 1605 | ClContextControlFixture, |
| 1606 | AlignCornersResizeBilinearTest<DataType::QAsymmS8>, |
| 1607 | DataLayout::NCHW) |
| 1608 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(HalfPixelCentersResizeBilinearUint8, |
| 1609 | ClContextControlFixture, |
| 1610 | HalfPixelCentersResizeBilinearTest<DataType::QAsymmU8>, |
| 1611 | DataLayout::NCHW) |
| 1612 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(AlignCornersResizeBilinearUint8, |
| 1613 | ClContextControlFixture, |
| 1614 | AlignCornersResizeBilinearTest<DataType::QAsymmU8>, |
| 1615 | DataLayout::NCHW) |
Teresa Charlin | 686f45c | 2020-07-23 17:59:00 +0100 | [diff] [blame] | 1616 | |
Aron Virginas-Tar | cc0cefb | 2019-07-02 17:25:47 +0100 | [diff] [blame] | 1617 | // Resize Bilinear - NHWC |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1618 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ResizeBilinearNopNhwc, |
| 1619 | ClContextControlFixture, |
| 1620 | ResizeBilinearNopTest<DataType::Float32>, |
| 1621 | DataLayout::NHWC) |
| 1622 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ResizeBilinearNopInt8Nhwc, |
| 1623 | ClContextControlFixture, |
| 1624 | ResizeBilinearNopTest<DataType::QAsymmS8>, |
| 1625 | DataLayout::NHWC) |
| 1626 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ResizeBilinearNopUint8Nhwc, |
| 1627 | ClContextControlFixture, |
| 1628 | ResizeBilinearNopTest<DataType::QAsymmU8>, |
| 1629 | DataLayout::NHWC) |
| 1630 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleResizeBilinearNhwc, |
| 1631 | ClContextControlFixture, |
| 1632 | SimpleResizeBilinearTest<DataType::Float32>, |
| 1633 | DataLayout::NHWC) |
| 1634 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleResizeBilinearInt8Nhwc, |
| 1635 | ClContextControlFixture, |
| 1636 | SimpleResizeBilinearTest<DataType::QAsymmS8>, |
| 1637 | DataLayout::NHWC) |
| 1638 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleResizeBilinearUint8Nhwc, |
| 1639 | ClContextControlFixture, |
| 1640 | SimpleResizeBilinearTest<DataType::QAsymmU8>, |
| 1641 | DataLayout::NHWC) |
| 1642 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ResizeBilinearSqMinNhwc, |
| 1643 | ClContextControlFixture, |
| 1644 | ResizeBilinearSqMinTest<DataType::Float32>, |
| 1645 | DataLayout::NHWC) |
| 1646 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ResizeBilinearSqMinInt8Nhwc, |
| 1647 | ClContextControlFixture, |
| 1648 | ResizeBilinearSqMinTest<DataType::QAsymmS8>, |
| 1649 | DataLayout::NHWC) |
| 1650 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ResizeBilinearSqMinUint8Nhwc, |
| 1651 | ClContextControlFixture, |
| 1652 | ResizeBilinearSqMinTest<DataType::QAsymmU8>, |
| 1653 | DataLayout::NHWC) |
| 1654 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ResizeBilinearMinNhwc, |
| 1655 | ClContextControlFixture, |
| 1656 | ResizeBilinearMinTest<DataType::Float32>, |
| 1657 | DataLayout::NHWC) |
| 1658 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ResizeBilinearMinInt8Nhwc, |
| 1659 | ClContextControlFixture, |
| 1660 | ResizeBilinearMinTest<DataType::QAsymmS8>, |
| 1661 | DataLayout::NHWC) |
| 1662 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ResizeBilinearMinUint8Nhwc, |
| 1663 | ClContextControlFixture, |
| 1664 | ResizeBilinearMinTest<DataType::QAsymmU8>, |
| 1665 | DataLayout::NHWC) |
Aron Virginas-Tar | cc0cefb | 2019-07-02 17:25:47 +0100 | [diff] [blame] | 1666 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1667 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(HalfPixelCentersResizeBilinearNhwc, |
| 1668 | ClContextControlFixture, |
| 1669 | HalfPixelCentersResizeBilinearTest<DataType::Float32>, |
| 1670 | DataLayout::NHWC) |
| 1671 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(AlignCornersResizeBilinearNhwc, |
| 1672 | ClContextControlFixture, |
| 1673 | AlignCornersResizeBilinearTest<DataType::Float32>, |
| 1674 | DataLayout::NHWC) |
| 1675 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(HalfPixelCentersResizeBilinearInt8Nhwc, |
| 1676 | ClContextControlFixture, |
| 1677 | HalfPixelCentersResizeBilinearTest<DataType::QAsymmS8>, |
| 1678 | DataLayout::NHWC) |
| 1679 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(AlignCornersResizeBilinearInt8Nhwc, |
| 1680 | ClContextControlFixture, |
| 1681 | AlignCornersResizeBilinearTest<DataType::QAsymmS8>, |
| 1682 | DataLayout::NHWC) |
| 1683 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(HalfPixelCentersResizeBilinearUint8Nhwc, |
| 1684 | ClContextControlFixture, |
| 1685 | HalfPixelCentersResizeBilinearTest<DataType::QAsymmU8>, |
| 1686 | DataLayout::NHWC) |
| 1687 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(AlignCornersResizeBilinearUint8Nhwc, |
| 1688 | ClContextControlFixture, |
| 1689 | AlignCornersResizeBilinearTest<DataType::QAsymmU8>, |
| 1690 | DataLayout::NHWC) |
Teresa Charlin | 686f45c | 2020-07-23 17:59:00 +0100 | [diff] [blame] | 1691 | |
Aron Virginas-Tar | cc0cefb | 2019-07-02 17:25:47 +0100 | [diff] [blame] | 1692 | // Resize NearestNeighbor - NCHW |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1693 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleResizeNearestNeighbor, |
| 1694 | ClContextControlFixture, |
| 1695 | SimpleResizeNearestNeighborTest<DataType::Float32>, |
| 1696 | DataLayout::NCHW) |
| 1697 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleResizeNearestNeighborInt8, |
| 1698 | ClContextControlFixture, |
| 1699 | SimpleResizeNearestNeighborTest<DataType::QAsymmS8>, |
| 1700 | DataLayout::NCHW) |
| 1701 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleResizeNearestNeighborUint8, |
| 1702 | ClContextControlFixture, |
| 1703 | SimpleResizeNearestNeighborTest<DataType::QAsymmU8>, |
| 1704 | DataLayout::NCHW) |
| 1705 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ResizeNearestNeighborNop, |
| 1706 | ClContextControlFixture, |
| 1707 | ResizeNearestNeighborNopTest<DataType::Float32>, |
| 1708 | DataLayout::NCHW) |
| 1709 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ResizeNearestNeighborNopInt8, |
| 1710 | ClContextControlFixture, |
| 1711 | ResizeNearestNeighborNopTest<DataType::QAsymmS8>, |
| 1712 | DataLayout::NCHW) |
| 1713 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ResizeNearestNeighborNopUint8, |
| 1714 | ClContextControlFixture, |
| 1715 | ResizeNearestNeighborNopTest<DataType::QAsymmU8>, |
| 1716 | DataLayout::NCHW) |
| 1717 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ResizeNearestNeighborSqMin, |
| 1718 | ClContextControlFixture, |
| 1719 | ResizeNearestNeighborSqMinTest<DataType::Float32>, |
| 1720 | DataLayout::NCHW) |
| 1721 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ResizeNearestNeighborSqMinInt8, |
| 1722 | ClContextControlFixture, |
| 1723 | ResizeNearestNeighborSqMinTest<DataType::QAsymmS8>, |
| 1724 | DataLayout::NCHW) |
| 1725 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ResizeNearestNeighborSqMinUint8, |
| 1726 | ClContextControlFixture, |
| 1727 | ResizeNearestNeighborSqMinTest<DataType::QAsymmU8>, |
| 1728 | DataLayout::NCHW) |
| 1729 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ResizeNearestNeighborMin, |
| 1730 | ClContextControlFixture, |
| 1731 | ResizeNearestNeighborMinTest<DataType::Float32>, |
| 1732 | DataLayout::NCHW) |
| 1733 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ResizeNearestNeighborMinInt8, |
| 1734 | ClContextControlFixture, |
| 1735 | ResizeNearestNeighborMinTest<DataType::QAsymmS8>, |
| 1736 | DataLayout::NCHW) |
| 1737 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ResizeNearestNeighborMinUint8, |
| 1738 | ClContextControlFixture, |
| 1739 | ResizeNearestNeighborMinTest<DataType::QAsymmU8>, |
| 1740 | DataLayout::NCHW) |
| 1741 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ResizeNearestNeighborMag, |
| 1742 | ClContextControlFixture, |
| 1743 | ResizeNearestNeighborMagTest<DataType::Float32>, |
| 1744 | DataLayout::NCHW, 0.1f, 50, 0.1f, 50) |
| 1745 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ResizeNearestNeighborMagInt8, |
| 1746 | ClContextControlFixture, |
| 1747 | ResizeNearestNeighborMagTest<DataType::QAsymmS8>, |
| 1748 | DataLayout::NCHW, 0.1f, 50, 0.1f, 50) |
| 1749 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ResizeNearestNeighborMagUint8, |
| 1750 | ClContextControlFixture, |
| 1751 | ResizeNearestNeighborMagTest<DataType::QAsymmU8>, |
| 1752 | DataLayout::NCHW, 0.1f, 50, 0.1f, 50) |
Aron Virginas-Tar | cc0cefb | 2019-07-02 17:25:47 +0100 | [diff] [blame] | 1753 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1754 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(HalfPixelCentersResizeNearestNeighbour, |
| 1755 | ClContextControlFixture, |
| 1756 | HalfPixelCentersResizeNearestNeighbourTest<DataType::Float32>, |
| 1757 | DataLayout::NCHW) |
| 1758 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(AlignCornersResizeNearestNeighbour, |
| 1759 | ClContextControlFixture, |
| 1760 | AlignCornersResizeNearestNeighbourTest<DataType::Float32>, |
| 1761 | DataLayout::NCHW) |
| 1762 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(HalfPixelCentersResizeNearestNeighbourInt8, |
| 1763 | ClContextControlFixture, |
| 1764 | HalfPixelCentersResizeNearestNeighbourTest<DataType::QAsymmS8>, |
| 1765 | DataLayout::NCHW) |
| 1766 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(AlignCornersResizeNearestNeighbourInt8, |
| 1767 | ClContextControlFixture, |
| 1768 | AlignCornersResizeNearestNeighbourTest<DataType::QAsymmS8>, |
| 1769 | DataLayout::NCHW) |
| 1770 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(HalfPixelCentersResizeNearestNeighbourUint8, |
| 1771 | ClContextControlFixture, |
| 1772 | HalfPixelCentersResizeNearestNeighbourTest<DataType::QAsymmU8>, |
| 1773 | DataLayout::NCHW) |
| 1774 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(AlignCornersResizeNearestNeighbourUint8, |
| 1775 | ClContextControlFixture, |
| 1776 | AlignCornersResizeNearestNeighbourTest<DataType::QAsymmU8>, |
| 1777 | DataLayout::NCHW) |
Teresa Charlin | 686f45c | 2020-07-23 17:59:00 +0100 | [diff] [blame] | 1778 | |
Aron Virginas-Tar | cc0cefb | 2019-07-02 17:25:47 +0100 | [diff] [blame] | 1779 | // Resize NearestNeighbor - NHWC |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1780 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ResizeNearestNeighborNopNhwc, |
| 1781 | ClContextControlFixture, |
| 1782 | ResizeNearestNeighborNopTest<DataType::Float32>, |
| 1783 | DataLayout::NHWC) |
| 1784 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ResizeNearestNeighborNopInt8Nhwc, |
| 1785 | ClContextControlFixture, |
| 1786 | ResizeNearestNeighborNopTest<DataType::QAsymmS8>, |
| 1787 | DataLayout::NHWC) |
| 1788 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ResizeNearestNeighborNopUint8Nhwc, |
| 1789 | ClContextControlFixture, |
| 1790 | ResizeNearestNeighborNopTest<DataType::QAsymmU8>, |
| 1791 | DataLayout::NHWC) |
| 1792 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleResizeNearestNeighborNhwc, |
| 1793 | ClContextControlFixture, |
| 1794 | SimpleResizeNearestNeighborTest<DataType::Float32>, |
| 1795 | DataLayout::NHWC) |
| 1796 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleResizeNearestNeighborInt8Nhwc, |
| 1797 | ClContextControlFixture, |
| 1798 | SimpleResizeNearestNeighborTest<DataType::QAsymmS8>, |
| 1799 | DataLayout::NHWC) |
| 1800 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleResizeNearestNeighborUint8Nhwc, |
| 1801 | ClContextControlFixture, |
| 1802 | SimpleResizeNearestNeighborTest<DataType::QAsymmU8>, |
| 1803 | DataLayout::NHWC) |
| 1804 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ResizeNearestNeighborSqMinNhwc, |
| 1805 | ClContextControlFixture, |
| 1806 | ResizeNearestNeighborSqMinTest<DataType::Float32>, |
| 1807 | DataLayout::NHWC) |
| 1808 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ResizeNearestNeighborSqMinInt8Nhwc, |
| 1809 | ClContextControlFixture, |
| 1810 | ResizeNearestNeighborSqMinTest<DataType::QAsymmS8>, |
| 1811 | DataLayout::NHWC) |
| 1812 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ResizeNearestNeighborSqMinUint8Nhwc, |
| 1813 | ClContextControlFixture, |
| 1814 | ResizeNearestNeighborSqMinTest<DataType::QAsymmU8>, |
| 1815 | DataLayout::NHWC) |
| 1816 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ResizeNearestNeighborMinNhwc, |
| 1817 | ClContextControlFixture, |
| 1818 | ResizeNearestNeighborMinTest<DataType::Float32>, |
| 1819 | DataLayout::NHWC) |
| 1820 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ResizeNearestNeighborMinInt8Nhwc, |
| 1821 | ClContextControlFixture, |
| 1822 | ResizeNearestNeighborMinTest<DataType::QAsymmS8>, |
| 1823 | DataLayout::NHWC) |
| 1824 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ResizeNearestNeighborMinUint8Nhwc, |
| 1825 | ClContextControlFixture, |
| 1826 | ResizeNearestNeighborMinTest<DataType::QAsymmU8>, |
| 1827 | DataLayout::NHWC) |
| 1828 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ResizeNearestNeighborMagNhwc, |
| 1829 | ClContextControlFixture, |
| 1830 | ResizeNearestNeighborMagTest<DataType::Float32>, |
| 1831 | DataLayout::NHWC, 0.1f, 50, 0.1f, 50) |
| 1832 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ResizeNearestNeighborMagInt8Nhwc, |
| 1833 | ClContextControlFixture, |
| 1834 | ResizeNearestNeighborMagTest<DataType::QAsymmS8>, |
| 1835 | DataLayout::NHWC, 0.1f, 50, 0.1f, 50) |
| 1836 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ResizeNearestNeighborMagUint8Nhwc, |
| 1837 | ClContextControlFixture, |
| 1838 | ResizeNearestNeighborMagTest<DataType::QAsymmU8>, |
| 1839 | DataLayout::NHWC, 0.1f, 50, 0.1f, 50) |
Aron Virginas-Tar | cc0cefb | 2019-07-02 17:25:47 +0100 | [diff] [blame] | 1840 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1841 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(HalfPixelCentersResizeNearestNeighbourNhwc, |
| 1842 | ClContextControlFixture, |
| 1843 | HalfPixelCentersResizeNearestNeighbourTest<DataType::Float32>, |
| 1844 | DataLayout::NHWC) |
| 1845 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(AlignCornersResizeNearestNeighbourNhwc, |
| 1846 | ClContextControlFixture, |
| 1847 | AlignCornersResizeNearestNeighbourTest<DataType::Float32>, |
| 1848 | DataLayout::NHWC) |
| 1849 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(HalfPixelCentersResizeNearestNeighbourInt8Nhwc, |
| 1850 | ClContextControlFixture, |
| 1851 | HalfPixelCentersResizeNearestNeighbourTest<DataType::QAsymmS8>, |
| 1852 | DataLayout::NHWC) |
| 1853 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(AlignCornersResizeNearestNeighbourInt8Nhwc, |
| 1854 | ClContextControlFixture, |
| 1855 | AlignCornersResizeNearestNeighbourTest<DataType::QAsymmS8>, |
| 1856 | DataLayout::NHWC) |
| 1857 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(HalfPixelCentersResizeNearestNeighbourUint8Nhwc, |
| 1858 | ClContextControlFixture, |
| 1859 | HalfPixelCentersResizeNearestNeighbourTest<DataType::QAsymmU8>, |
| 1860 | DataLayout::NHWC) |
| 1861 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(AlignCornersResizeNearestNeighbourUint8Nhwc, |
| 1862 | ClContextControlFixture, |
| 1863 | AlignCornersResizeNearestNeighbourTest<DataType::QAsymmU8>, |
| 1864 | DataLayout::NHWC) |
Teresa Charlin | 686f45c | 2020-07-23 17:59:00 +0100 | [diff] [blame] | 1865 | |
Aron Virginas-Tar | 1a763dd | 2019-09-10 12:32:08 +0100 | [diff] [blame] | 1866 | // Rsqrt |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1867 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Rsqrt2d, ClContextControlFixture, Rsqrt2dTest<DataType::Float32>) |
| 1868 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Rsqrt3d, ClContextControlFixture, Rsqrt3dTest<DataType::Float32>) |
| 1869 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(RsqrtZero, ClContextControlFixture, RsqrtZeroTest<DataType::Float32>) |
| 1870 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(RsqrtNegative, ClContextControlFixture, RsqrtNegativeTest<DataType::Float32>) |
Aron Virginas-Tar | 1a763dd | 2019-09-10 12:32:08 +0100 | [diff] [blame] | 1871 | |
Teresa Charlin | 0302723 | 2022-05-09 17:27:08 +0100 | [diff] [blame] | 1872 | // Sqrt |
| 1873 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Sqrt2d, ClContextControlFixture, Sqrt2dTest<DataType::Float32>) |
| 1874 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Sqrt3d, ClContextControlFixture, Sqrt3dTest<DataType::Float32>) |
| 1875 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SqrtZero, ClContextControlFixture, SqrtZeroTest<DataType::Float32>) |
| 1876 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SqrtNegative, ClContextControlFixture, SqrtNegativeTest<DataType::Float32>) |
| 1877 | |
Sadik Armagan | 20ec249 | 2019-05-31 09:09:44 +0100 | [diff] [blame] | 1878 | // Quantize |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1879 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(QuantizeSimpleUint8, ClContextControlFixture, QuantizeSimpleUint8Test) |
| 1880 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(QuantizeClampUint8, ClContextControlFixture, QuantizeClampUint8Test) |
Sadik Armagan | 20ec249 | 2019-05-31 09:09:44 +0100 | [diff] [blame] | 1881 | |
Jim Flynn | 983daec | 2019-05-29 16:20:16 +0100 | [diff] [blame] | 1882 | // Dequantize |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1883 | ARMNN_AUTO_TEST_FIXTURE(DequantizeSimpleUint8, ClContextControlFixture, DequantizeSimpleUint8Test) |
| 1884 | ARMNN_AUTO_TEST_FIXTURE(DequantizeOffsetUint8, ClContextControlFixture, DequantizeOffsetUint8Test) |
| 1885 | ARMNN_AUTO_TEST_FIXTURE(DequantizeSimpleInt16, ClContextControlFixture, DequantizeSimpleInt16Test) |
| 1886 | ARMNN_AUTO_TEST_FIXTURE(DequantizeSimpleUint8ToFp16, ClContextControlFixture, DequantizeSimpleUint8ToFp16Test) |
| 1887 | ARMNN_AUTO_TEST_FIXTURE(DequantizeSimpleInt16ToFp16, ClContextControlFixture, DequantizeSimpleInt16ToFp16Test) |
Jim Flynn | 983daec | 2019-05-29 16:20:16 +0100 | [diff] [blame] | 1888 | |
Mike Kelly | c9ea45a | 2020-02-28 18:11:58 +0000 | [diff] [blame] | 1889 | // Transpose |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1890 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1891 | SimpleTransposeFloat32, ClContextControlFixture, SimpleTransposeTest<DataType::Float32>) |
| 1892 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1893 | TransposeFloat32ValueSet1Test, ClContextControlFixture, TransposeValueSet1Test<DataType::Float32>) |
| 1894 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1895 | TransposeFloat32ValueSet2Test, ClContextControlFixture, TransposeValueSet2Test<DataType::Float32>) |
| 1896 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1897 | TransposeFloat32ValueSet3Test, ClContextControlFixture, TransposeValueSet3Test<DataType::Float32>) |
| 1898 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1899 | SimpleTransposeQASymmS8, ClContextControlFixture, SimpleTransposeTest<DataType::QAsymmS8>) |
| 1900 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1901 | TransposeQASymmS8ValueSet1Test, ClContextControlFixture, TransposeValueSet1Test<DataType::QAsymmS8>) |
| 1902 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1903 | TransposeQASymmS8ValueSet2Test, ClContextControlFixture, TransposeValueSet2Test<DataType::QAsymmS8>) |
| 1904 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1905 | TransposeQASymmS8ValueSet3Test, ClContextControlFixture, TransposeValueSet3Test<DataType::QAsymmS8>) |
| 1906 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1907 | SimpleTransposeQASymm8, ClContextControlFixture, SimpleTransposeTest<DataType::QAsymmU8>) |
| 1908 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1909 | TransposeQASymm8ValueSet1Test, ClContextControlFixture, TransposeValueSet1Test<DataType::QAsymmU8>) |
| 1910 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1911 | TransposeQASymm8ValueSet2Test, ClContextControlFixture, TransposeValueSet2Test<DataType::QAsymmU8>) |
| 1912 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1913 | TransposeQASymm8ValueSet3Test, ClContextControlFixture, TransposeValueSet3Test<DataType::QAsymmU8>) |
| 1914 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1915 | SimpleTransposeQSymm16, ClContextControlFixture, SimpleTransposeTest<DataType::QSymmS16>) |
| 1916 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1917 | TransposeQSymm16ValueSet1Test, ClContextControlFixture, TransposeValueSet1Test<DataType::QSymmS16>) |
| 1918 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1919 | TransposeQSymm16ValueSet2Test, ClContextControlFixture, TransposeValueSet2Test<DataType::QSymmS16>) |
| 1920 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 1921 | TransposeQSymm16ValueSet3Test, ClContextControlFixture, TransposeValueSet3Test<DataType::QSymmS16>) |
Mike Kelly | c9ea45a | 2020-02-28 18:11:58 +0000 | [diff] [blame] | 1922 | |
Aron Virginas-Tar | 7a3e2fe | 2019-06-27 18:54:47 +0100 | [diff] [blame] | 1923 | // TransposeConvolution2d |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1924 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleTransposeConvolution2dFloatNchw, |
| 1925 | ClContextControlFixture, |
| 1926 | SimpleTransposeConvolution2dTest<DataType::Float32, DataType::Float32>, |
| 1927 | true, |
| 1928 | DataLayout::NCHW) |
| 1929 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleTransposeConvolution2dFloatNhwc, |
| 1930 | ClContextControlFixture, |
| 1931 | SimpleTransposeConvolution2dTest<DataType::Float32, DataType::Float32>, |
| 1932 | true, |
| 1933 | DataLayout::NHWC) |
| 1934 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleTransposeConvolution2dUint8Nchw, |
| 1935 | ClContextControlFixture, |
| 1936 | SimpleTransposeConvolution2dTest<DataType::QAsymmU8, DataType::Signed32>, |
| 1937 | true, |
| 1938 | DataLayout::NCHW) |
| 1939 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SimpleTransposeConvolution2dUint8Nhwc, |
| 1940 | ClContextControlFixture, |
| 1941 | SimpleTransposeConvolution2dTest<DataType::QAsymmU8, DataType::Signed32>, |
| 1942 | true, |
| 1943 | DataLayout::NHWC) |
Aron Virginas-Tar | 7a3e2fe | 2019-06-27 18:54:47 +0100 | [diff] [blame] | 1944 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1945 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(UnbiasedSimpleTransposeConvolution2dFloatNchw, |
| 1946 | ClContextControlFixture, |
| 1947 | SimpleTransposeConvolution2dTest<DataType::Float32, DataType::Float32>, |
| 1948 | false, |
| 1949 | DataLayout::NCHW) |
| 1950 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(UnbiasedSimpleTransposeConvolution2dFloatNhwc, |
| 1951 | ClContextControlFixture, |
| 1952 | SimpleTransposeConvolution2dTest<DataType::Float32, DataType::Float32>, |
| 1953 | true, |
| 1954 | DataLayout::NHWC) |
| 1955 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(UnbiasedSimpleTransposeConvolution2dUint8Nchw, |
| 1956 | ClContextControlFixture, |
| 1957 | SimpleTransposeConvolution2dTest<DataType::QAsymmU8, DataType::Signed32>, |
| 1958 | true, |
| 1959 | DataLayout::NCHW) |
| 1960 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(UnbiasedSimpleTransposeConvolution2dUint8Nhwc, |
| 1961 | ClContextControlFixture, |
| 1962 | SimpleTransposeConvolution2dTest<DataType::QAsymmU8, DataType::Signed32>, |
| 1963 | true, |
| 1964 | DataLayout::NHWC) |
Aron Virginas-Tar | 7a3e2fe | 2019-06-27 18:54:47 +0100 | [diff] [blame] | 1965 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1966 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(PaddedTransposeConvolution2dFloatNchw, |
| 1967 | ClContextControlFixture, |
| 1968 | PaddedTransposeConvolution2dTest<DataType::Float32, DataType::Float32>, |
| 1969 | true, |
| 1970 | DataLayout::NCHW) |
| 1971 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(PaddedTransposeConvolution2dFloatNhwc, |
| 1972 | ClContextControlFixture, |
| 1973 | PaddedTransposeConvolution2dTest<DataType::Float32, DataType::Float32>, |
| 1974 | true, |
| 1975 | DataLayout::NHWC) |
| 1976 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(PaddedTransposeConvolution2dUint8Nchw, |
| 1977 | ClContextControlFixture, |
| 1978 | PaddedTransposeConvolution2dTest<DataType::QAsymmU8, DataType::Signed32>, |
| 1979 | true, |
| 1980 | DataLayout::NCHW) |
| 1981 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(PaddedTransposeConvolution2dUint8Nhwc, |
| 1982 | ClContextControlFixture, |
| 1983 | PaddedTransposeConvolution2dTest<DataType::QAsymmU8, DataType::Signed32>, |
| 1984 | true, |
| 1985 | DataLayout::NHWC) |
Aron Virginas-Tar | 7a3e2fe | 2019-06-27 18:54:47 +0100 | [diff] [blame] | 1986 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1987 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(UnbiasedPaddedTransposeConvolution2dFloatNchw, |
| 1988 | ClContextControlFixture, |
| 1989 | PaddedTransposeConvolution2dTest<DataType::Float32, DataType::Float32>, |
| 1990 | false, |
| 1991 | DataLayout::NCHW) |
| 1992 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(UnbiasedPaddedTransposeConvolution2dFloatNhwc, |
| 1993 | ClContextControlFixture, |
| 1994 | PaddedTransposeConvolution2dTest<DataType::Float32, DataType::Float32>, |
| 1995 | true, |
| 1996 | DataLayout::NHWC) |
| 1997 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(UnbiasedPaddedTransposeConvolution2dUint8Nchw, |
| 1998 | ClContextControlFixture, |
| 1999 | PaddedTransposeConvolution2dTest<DataType::QAsymmU8, DataType::Signed32>, |
| 2000 | true, |
| 2001 | DataLayout::NCHW) |
| 2002 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(UnbiasedPaddedTransposeConvolution2dUint8Nhwc, |
| 2003 | ClContextControlFixture, |
| 2004 | PaddedTransposeConvolution2dTest<DataType::QAsymmU8, DataType::Signed32>, |
| 2005 | true, |
| 2006 | DataLayout::NHWC) |
Aron Virginas-Tar | 7a3e2fe | 2019-06-27 18:54:47 +0100 | [diff] [blame] | 2007 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 2008 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(StridedTransposeConvolution2dFloatNchw, |
| 2009 | ClContextControlFixture, |
| 2010 | StridedTransposeConvolution2dTest<DataType::Float32, DataType::Float32>, |
| 2011 | true, |
| 2012 | DataLayout::NCHW) |
| 2013 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(StridedTransposeConvolution2dFloatNhwc, |
| 2014 | ClContextControlFixture, |
| 2015 | StridedTransposeConvolution2dTest<DataType::Float32, DataType::Float32>, |
| 2016 | true, |
| 2017 | DataLayout::NHWC) |
| 2018 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(StridedTransposeConvolution2dUint8Nchw, |
| 2019 | ClContextControlFixture, |
| 2020 | StridedTransposeConvolution2dTest<DataType::QAsymmU8, DataType::Signed32>, |
| 2021 | true, |
| 2022 | DataLayout::NCHW) |
| 2023 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(StridedTransposeConvolution2dUint8Nhwc, |
| 2024 | ClContextControlFixture, |
| 2025 | StridedTransposeConvolution2dTest<DataType::QAsymmU8, DataType::Signed32>, |
| 2026 | true, |
| 2027 | DataLayout::NHWC) |
Aron Virginas-Tar | 7a3e2fe | 2019-06-27 18:54:47 +0100 | [diff] [blame] | 2028 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 2029 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(UnbiasedStridedTransposeConvolution2dFloatNchw, |
| 2030 | ClContextControlFixture, |
| 2031 | StridedTransposeConvolution2dTest<DataType::Float32, DataType::Float32>, |
| 2032 | false, |
| 2033 | DataLayout::NCHW) |
| 2034 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(UnbiasedStridedTransposeConvolution2dFloatNhwc, |
| 2035 | ClContextControlFixture, |
| 2036 | StridedTransposeConvolution2dTest<DataType::Float32, DataType::Float32>, |
| 2037 | true, |
| 2038 | DataLayout::NHWC) |
| 2039 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(UnbiasedStridedTransposeConvolution2dUint8Nchw, |
| 2040 | ClContextControlFixture, |
| 2041 | StridedTransposeConvolution2dTest<DataType::QAsymmU8, DataType::Signed32>, |
| 2042 | true, |
| 2043 | DataLayout::NCHW) |
| 2044 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(UnbiasedStridedTransposeConvolution2dUint8Nhwc, |
| 2045 | ClContextControlFixture, |
| 2046 | StridedTransposeConvolution2dTest<DataType::QAsymmU8, DataType::Signed32>, |
| 2047 | true, |
| 2048 | DataLayout::NHWC) |
Aron Virginas-Tar | 7a3e2fe | 2019-06-27 18:54:47 +0100 | [diff] [blame] | 2049 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 2050 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(MultiChannelTransposeConvolution2dFloatNchw, |
| 2051 | ClContextControlFixture, |
| 2052 | MultiChannelTransposeConvolution2dTest<DataType::Float32, DataType::Float32>, |
| 2053 | DataLayout::NCHW) |
| 2054 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(MultiChannelTransposeConvolution2dFloatNhwc, |
| 2055 | ClContextControlFixture, |
| 2056 | MultiChannelTransposeConvolution2dTest<DataType::Float32, DataType::Float32>, |
| 2057 | DataLayout::NHWC) |
| 2058 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(MultiChannelTransposeConvolution2dUint8Nchw, |
| 2059 | ClContextControlFixture, |
| 2060 | MultiChannelTransposeConvolution2dTest<DataType::QAsymmU8, DataType::Signed32>, |
| 2061 | DataLayout::NCHW) |
| 2062 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(MultiChannelTransposeConvolution2dUint8Nhwc, |
| 2063 | ClContextControlFixture, |
| 2064 | MultiChannelTransposeConvolution2dTest<DataType::QAsymmU8, DataType::Signed32>, |
| 2065 | DataLayout::NHWC) |
Aron Virginas-Tar | aec942c | 2019-08-14 14:37:42 +0100 | [diff] [blame] | 2066 | |
Aron Virginas-Tar | 8204694 | 2019-09-09 15:18:29 +0100 | [diff] [blame] | 2067 | // Abs |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 2068 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Abs2d, ClContextControlFixture, Abs2dTest<DataType::Float32>) |
| 2069 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Abs3d, ClContextControlFixture, Abs3dTest<DataType::Float32>) |
Aron Virginas-Tar | 8204694 | 2019-09-09 15:18:29 +0100 | [diff] [blame] | 2070 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 2071 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(AbsZero, ClContextControlFixture, AbsZeroTest<DataType::Float32>) |
Aron Virginas-Tar | 8204694 | 2019-09-09 15:18:29 +0100 | [diff] [blame] | 2072 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 2073 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Abs2dFloat16, ClContextControlFixture, Abs2dTest<DataType::Float16>) |
| 2074 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Abs3dFloat16, ClContextControlFixture, Abs3dTest<DataType::Float16>) |
Kevin May | b6482f3 | 2019-09-11 12:31:38 +0100 | [diff] [blame] | 2075 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 2076 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(AbsZeroFloat16, ClContextControlFixture, AbsZeroTest<DataType::Float16>) |
Kevin May | b6482f3 | 2019-09-11 12:31:38 +0100 | [diff] [blame] | 2077 | |
James Conroy | 2dc0572 | 2019-09-19 17:00:31 +0100 | [diff] [blame] | 2078 | // ArgMinMax |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 2079 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ArgMinFloat32, ClContextControlFixture, ArgMinSimpleTest<DataType::Float32>) |
| 2080 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ArgMaxFloat32, ClContextControlFixture, ArgMaxSimpleTest<DataType::Float32>) |
| 2081 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ArgMinChannel, ClContextControlFixture, ArgMinChannelTest<DataType::Float32>) |
| 2082 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ArgMaxChannel, ClContextControlFixture, ArgMaxChannelTest<DataType::Float32>) |
| 2083 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ArgMaxHeight, ClContextControlFixture, ArgMaxHeightTest<DataType::Float32>) |
| 2084 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ArgMinWidth, ClContextControlFixture, ArgMinWidthTest<DataType::Float32>) |
James Conroy | 2dc0572 | 2019-09-19 17:00:31 +0100 | [diff] [blame] | 2085 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 2086 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ArgMinQAsymm8, ClContextControlFixture, ArgMinSimpleTest<DataType::QAsymmU8>) |
| 2087 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ArgMaxQAsymm8, ClContextControlFixture, ArgMaxSimpleTest<DataType::QAsymmU8>) |
| 2088 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ArgMinChannelQAsymm8, ClContextControlFixture, ArgMinChannelTest<DataType::QAsymmU8>) |
| 2089 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ArgMaxChannelQAsymm8, ClContextControlFixture, ArgMaxChannelTest<DataType::QAsymmU8>) |
| 2090 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ArgMaxHeightQAsymm8, ClContextControlFixture, ArgMaxHeightTest<DataType::QAsymmU8>) |
| 2091 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ArgMinWidthQAsymm8, ClContextControlFixture, ArgMinWidthTest<DataType::QAsymmU8>) |
Ryan OShea | 1426a3f | 2020-01-23 11:56:05 +0000 | [diff] [blame] | 2092 | |
Sadik Armagan | ac47210 | 2020-03-24 09:54:36 +0000 | [diff] [blame] | 2093 | // Neg |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 2094 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Neg2d, ClContextControlFixture, Neg2dTest<DataType::Float32>) |
| 2095 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Neg3d, ClContextControlFixture, Neg3dTest<DataType::Float32>) |
| 2096 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(NegZero, ClContextControlFixture, NegZeroTest<DataType::Float32>) |
| 2097 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(NegNegative, ClContextControlFixture, NegNegativeTest<DataType::Float32>) |
| 2098 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Neg2dFloat16, ClContextControlFixture, Neg2dTest<DataType::Float16>) |
| 2099 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Neg3dFloat16, ClContextControlFixture, Neg3dTest<DataType::Float16>) |
Sadik Armagan | ac47210 | 2020-03-24 09:54:36 +0000 | [diff] [blame] | 2100 | |
Sadik Armagan | 9fabf43 | 2020-05-27 13:40:58 +0100 | [diff] [blame] | 2101 | // Exp |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 2102 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Exp2d, ClContextControlFixture, Exp2dTest<DataType::Float32>) |
Teresa Charlin | 50de4fa | 2021-05-31 18:47:33 +0100 | [diff] [blame] | 2103 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Exp3d, ClContextControlFixture, Exp3dTest<DataType::Float32>) |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 2104 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ExpZero, ClContextControlFixture, ExpZeroTest<DataType::Float32>) |
| 2105 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ExpNegative, ClContextControlFixture, ExpNegativeTest<DataType::Float32>) |
| 2106 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Exp2dFloat16, ClContextControlFixture, Exp2dTest<DataType::Float16>) |
| 2107 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Exp3dFloat16, ClContextControlFixture, Exp3dTest<DataType::Float16>) |
Sadik Armagan | 9fabf43 | 2020-05-27 13:40:58 +0100 | [diff] [blame] | 2108 | |
Teresa Charlin | 50de4fa | 2021-05-31 18:47:33 +0100 | [diff] [blame] | 2109 | // Sin |
| 2110 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Sin2d, ClContextControlFixture, Sin2dTest<DataType::Float32>) |
| 2111 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Sin3d, ClContextControlFixture, Sin3dTest<DataType::Float32>) |
| 2112 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SinZero, ClContextControlFixture, SinZeroTest<DataType::Float32>) |
| 2113 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(SinNegative, ClContextControlFixture, SinNegativeTest<DataType::Float32>) |
| 2114 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Sin2dFloat16, ClContextControlFixture, Sin2dTest<DataType::Float16>) |
| 2115 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Sin3dFloat16, ClContextControlFixture, Sin3dTest<DataType::Float16>) |
| 2116 | |
| 2117 | // Log |
| 2118 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Log2d, ClContextControlFixture, Log2dTest<DataType::Float32>) |
| 2119 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Log3d, ClContextControlFixture, Log3dTest<DataType::Float32>) |
| 2120 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(LogZero, ClContextControlFixture, LogZeroTest<DataType::Float32>) |
| 2121 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(LogNegative, ClContextControlFixture, LogNegativeTest<DataType::Float32>) |
| 2122 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Log2dFloat16, ClContextControlFixture, Log2dTest<DataType::Float16>) |
| 2123 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(Log3dFloat16, ClContextControlFixture, Log3dTest<DataType::Float16>) |
| 2124 | |
James Conroy | fe3ec94 | 2020-11-18 14:20:53 +0000 | [diff] [blame] | 2125 | // Logical |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 2126 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(LogicalNot, ClContextControlFixture, LogicalNotTest) |
| 2127 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(LogicalNotInt, ClContextControlFixture, LogicalNotIntTest) |
James Conroy | fe3ec94 | 2020-11-18 14:20:53 +0000 | [diff] [blame] | 2128 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 2129 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(LogicalAnd, ClContextControlFixture, LogicalAndTest) |
| 2130 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(LogicalAndInt, ClContextControlFixture, LogicalAndIntTest) |
| 2131 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(LogicalAndBroadcast1, ClContextControlFixture, LogicalAndBroadcast1Test) |
| 2132 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(LogicalAndBroadcast2, ClContextControlFixture, LogicalAndBroadcast2Test) |
| 2133 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(LogicalAndBroadcast3, ClContextControlFixture, LogicalAndBroadcast3Test) |
James Conroy | fe3ec94 | 2020-11-18 14:20:53 +0000 | [diff] [blame] | 2134 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 2135 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(LogicalOr, ClContextControlFixture, LogicalOrTest) |
| 2136 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(LogicalOrInt, ClContextControlFixture, LogicalOrIntTest) |
| 2137 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(LogicalOrBroadcast1, ClContextControlFixture, LogicalOrBroadcast1Test) |
| 2138 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(LogicalOrBroadcast2, ClContextControlFixture, LogicalOrBroadcast2Test) |
| 2139 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(LogicalOrBroadcast3, ClContextControlFixture, LogicalOrBroadcast3Test) |
James Conroy | fe3ec94 | 2020-11-18 14:20:53 +0000 | [diff] [blame] | 2140 | |
Sadik Armagan | a274748 | 2021-02-09 10:28:54 +0000 | [diff] [blame] | 2141 | // ReduceSum |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 2142 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ReduceSumFloat32, ClContextControlFixture, ReduceSumSimpleTest<DataType::Float32>) |
| 2143 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 2144 | ReduceSumSingleAxisFloat32_1, ClContextControlFixture, ReduceSumSingleAxisTest1<DataType::Float32>) |
| 2145 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 2146 | ReduceSumSingleAxisFloat32_2, ClContextControlFixture, ReduceSumSingleAxisTest2<DataType::Float32>) |
| 2147 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 2148 | ReduceSumSingleAxisFloat32_3, ClContextControlFixture, ReduceSumSingleAxisTest3<DataType::Float32>) |
Sadik Armagan | a274748 | 2021-02-09 10:28:54 +0000 | [diff] [blame] | 2149 | |
Teresa Charlin | 4e3e831 | 2021-08-05 12:34:37 +0100 | [diff] [blame] | 2150 | // ReduceProd |
| 2151 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ReduceProdFloat32, ClContextControlFixture, ReduceProdSimpleTest<DataType::Float32>) |
| 2152 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 2153 | ReduceProdSingleAxisFloat32_1, ClContextControlFixture, ReduceProdSingleAxisTest1<DataType::Float32>) |
| 2154 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 2155 | ReduceProdSingleAxisFloat32_2, ClContextControlFixture, ReduceProdSingleAxisTest2<DataType::Float32>) |
| 2156 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 2157 | ReduceProdSingleAxisFloat32_3, ClContextControlFixture, ReduceProdSingleAxisTest3<DataType::Float32>) |
| 2158 | |
Sadik Armagan | a274748 | 2021-02-09 10:28:54 +0000 | [diff] [blame] | 2159 | // ReduceMax |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 2160 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ReduceMaxFloat32, ClContextControlFixture, ReduceMaxSimpleTest<DataType::Float32>) |
| 2161 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 2162 | ReduceMaxNegativeAxisFloat32, ClContextControlFixture, ReduceMaxNegativeAxisTest<DataType::Float32>) |
| 2163 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ReduceMax2Float32, ClContextControlFixture, ReduceMaxSimpleTest2<DataType::Float32>) |
Sadik Armagan | a274748 | 2021-02-09 10:28:54 +0000 | [diff] [blame] | 2164 | |
| 2165 | // ReduceMin |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 2166 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(ReduceMinFloat32, ClContextControlFixture, ReduceMinSimpleTest<DataType::Float32>) |
| 2167 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF( |
| 2168 | ReduceMinNegativeAxisFloat32, ClContextControlFixture, ReduceMinNegativeAxisTest<DataType::Float32>) |
Sadik Armagan | a274748 | 2021-02-09 10:28:54 +0000 | [diff] [blame] | 2169 | |
Sadik Armagan | f40d6d4 | 2021-04-22 09:12:11 +0100 | [diff] [blame] | 2170 | // Cast |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 2171 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(CastInt32ToFloat, ClContextControlFixture, CastInt32ToFloat2dTest) |
| 2172 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(CastFloat16ToFloat32, ClContextControlFixture, CastFloat16ToFloat322dTest) |
| 2173 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(CastFloatToFloat16, ClContextControlFixture, CastFloat32ToFloat162dTest) |
| 2174 | ARMNN_AUTO_TEST_FIXTURE_WITH_THF(CastFloatToUInt8, ClContextControlFixture, CastFloat32ToUInt82dTest) |
Sadik Armagan | f40d6d4 | 2021-04-22 09:12:11 +0100 | [diff] [blame] | 2175 | |
Teresa Charlin | 1222dbd | 2021-09-02 13:58:52 +0100 | [diff] [blame] | 2176 | // ChannelShuffle |
| 2177 | ARMNN_AUTO_TEST_CASE_WITH_THF(ChannelShuffle4DFloat32, ChannelShuffle4DTest<DataType::Float32>) |
| 2178 | ARMNN_AUTO_TEST_CASE_WITH_THF(ChannelShuffle4DQAsymmU8, ChannelShuffle4DTest<DataType::QAsymmU8>) |
Teresa Charlin | eb852bb | 2021-09-30 12:44:33 +0100 | [diff] [blame] | 2179 | ARMNN_AUTO_TEST_CASE_WITH_THF(ChannelShuffle4DQAsymmS8, ChannelShuffle4DTest<DataType::QAsymmS8>) |
Teresa Charlin | 1222dbd | 2021-09-02 13:58:52 +0100 | [diff] [blame] | 2180 | |
Matteo Martincigh | db16dd3 | 2019-08-27 16:41:11 +0100 | [diff] [blame] | 2181 | #if defined(ARMNNREF_ENABLED) |
Matteo Martincigh | e67edb2 | 2019-08-14 14:05:46 +0100 | [diff] [blame] | 2182 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 2183 | TEST_CASE_FIXTURE(ClContextControlFixture, "ClContextControlFixture") {} |
| 2184 | |
Matteo Martincigh | e67edb2 | 2019-08-14 14:05:46 +0100 | [diff] [blame] | 2185 | // The ARMNN_COMPARE_REF_AUTO_TEST_CASE and the ARMNN_COMPARE_REF_FIXTURE_TEST_CASE test units are not available |
| 2186 | // if the reference backend is not built |
| 2187 | |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 2188 | // COMPARE tests |
| 2189 | |
Sadik Armagan | 56785c7 | 2020-08-27 12:57:20 +0100 | [diff] [blame] | 2190 | ARMNN_COMPARE_REF_AUTO_TEST_CASE_WITH_THF(CompareSoftmaxBeta1WithReference, CompareSoftmaxTest, 1.0f) |
| 2191 | ARMNN_COMPARE_REF_AUTO_TEST_CASE_WITH_THF(CompareSoftmaxBeta2WithReference, CompareSoftmaxTest, 2.0f) |
| 2192 | ARMNN_COMPARE_REF_AUTO_TEST_CASE_WITH_THF(CompareSoftmaxUint8, CompareSoftmaxUint8Test, 1.0f) |
Matteo Martincigh | e67edb2 | 2019-08-14 14:05:46 +0100 | [diff] [blame] | 2193 | |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 2194 | ARMNN_COMPARE_REF_AUTO_TEST_CASE_WITH_THF(CompareConv2dWithReference, CompareConvolution2dTest) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 2195 | |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 2196 | ARMNN_COMPARE_REF_AUTO_TEST_CASE_WITH_THF(CompareDepthwiseConv2dWithReferenceFloat32, |
Nattapat Chaimanowong | 649dd95 | 2019-01-22 16:10:44 +0000 | [diff] [blame] | 2197 | CompareDepthwiseConvolution2dFloatTest, |
Aron Virginas-Tar | d8edabb | 2019-08-12 14:29:59 +0100 | [diff] [blame] | 2198 | DataLayout::NCHW) |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 2199 | ARMNN_COMPARE_REF_AUTO_TEST_CASE_WITH_THF(CompareDepthwiseConv2dWithReferenceUint8, |
Nattapat Chaimanowong | 649dd95 | 2019-01-22 16:10:44 +0000 | [diff] [blame] | 2200 | CompareDepthwiseConvolution2dUint8Test, |
Aron Virginas-Tar | d8edabb | 2019-08-12 14:29:59 +0100 | [diff] [blame] | 2201 | DataLayout::NCHW) |
jimfly01 | 7af00da | 2018-10-31 14:43:53 +0000 | [diff] [blame] | 2202 | |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 2203 | ARMNN_COMPARE_REF_AUTO_TEST_CASE_WITH_THF(CompareDepthwiseConv2dWithReferenceFloat32Nhwc, |
Nattapat Chaimanowong | 649dd95 | 2019-01-22 16:10:44 +0000 | [diff] [blame] | 2204 | CompareDepthwiseConvolution2dFloatTest, |
Aron Virginas-Tar | d8edabb | 2019-08-12 14:29:59 +0100 | [diff] [blame] | 2205 | DataLayout::NHWC) |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 2206 | ARMNN_COMPARE_REF_AUTO_TEST_CASE_WITH_THF(CompareDepthwiseConv2dWithReferenceUint8Nhwc, |
Nattapat Chaimanowong | 649dd95 | 2019-01-22 16:10:44 +0000 | [diff] [blame] | 2207 | CompareDepthwiseConvolution2dUint8Test, |
Aron Virginas-Tar | d8edabb | 2019-08-12 14:29:59 +0100 | [diff] [blame] | 2208 | DataLayout::NHWC) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 2209 | |
Finn Williams | 826a543 | 2020-08-27 16:15:20 +0100 | [diff] [blame] | 2210 | ARMNN_COMPARE_REF_AUTO_TEST_CASE_WITH_THF(CompareNormalizationWithinWithReference, CompareNormalizationTest, |
| 2211 | NormalizationAlgorithmChannel::Within, |
| 2212 | NormalizationAlgorithmMethod::LocalBrightness) |
| 2213 | ARMNN_COMPARE_REF_AUTO_TEST_CASE_WITH_THF(CompareNormalizationAcrossWithReference, CompareNormalizationTest, |
| 2214 | NormalizationAlgorithmChannel::Across, |
| 2215 | NormalizationAlgorithmMethod::LocalBrightness) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 2216 | |
Finn Williams | 826a543 | 2020-08-27 16:15:20 +0100 | [diff] [blame] | 2217 | ARMNN_COMPARE_REF_AUTO_TEST_CASE_WITH_THF(CompareMaxPooling2dWithRef, ComparePooling2dTest, PoolingAlgorithm::Max) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 2218 | |
Finn Williams | 826a543 | 2020-08-27 16:15:20 +0100 | [diff] [blame] | 2219 | ARMNN_COMPARE_REF_AUTO_TEST_CASE_WITH_THF(CompareAveragePooling2dWithRef, |
| 2220 | ComparePooling2dTest, PoolingAlgorithm::Average) |
| 2221 | ARMNN_COMPARE_REF_AUTO_TEST_CASE_WITH_THF(CompareAveragePooling2dWithRefUint8, ComparePooling2dUint8Test, |
| 2222 | PoolingAlgorithm::Average) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 2223 | |
Finn Williams | 826a543 | 2020-08-27 16:15:20 +0100 | [diff] [blame] | 2224 | ARMNN_COMPARE_REF_AUTO_TEST_CASE_WITH_THF(CompareL2Pooling2dWithRef, ComparePooling2dTest, PoolingAlgorithm::L2) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 2225 | |
Ryan OShea | bab8fa9 | 2022-03-09 10:29:02 +0000 | [diff] [blame] | 2226 | ARMNN_COMPARE_REF_AUTO_TEST_CASE_WITH_THF(CompareMaxPooling3dWithRef, ComparePooling3dTest, PoolingAlgorithm::Max, |
| 2227 | DataLayout::NDHWC) |
| 2228 | |
| 2229 | ARMNN_COMPARE_REF_AUTO_TEST_CASE_WITH_THF(CompareAveragePooling3dWithRef, ComparePooling3dTest, |
| 2230 | PoolingAlgorithm::Average, DataLayout::NDHWC) |
| 2231 | |
| 2232 | ARMNN_COMPARE_REF_AUTO_TEST_CASE_WITH_THF(CompareL2Pooling3dWithRef, ComparePooling3dTest, PoolingAlgorithm::L2, |
| 2233 | DataLayout::NDHWC) |
| 2234 | |
Keith Davis | 33a626f | 2020-08-27 15:38:12 +0100 | [diff] [blame] | 2235 | ARMNN_COMPARE_REF_AUTO_TEST_CASE_WITH_THF(CompareAddition, CompareAdditionTest) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 2236 | |
Keith Davis | 33a626f | 2020-08-27 15:38:12 +0100 | [diff] [blame] | 2237 | ARMNN_COMPARE_REF_AUTO_TEST_CASE_WITH_THF(CompareMultiplicationWithRef, CompareMultiplicationTest) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 2238 | |
Keith Davis | 33a626f | 2020-08-27 15:38:12 +0100 | [diff] [blame] | 2239 | ARMNN_COMPARE_REF_AUTO_TEST_CASE_WITH_THF(CompareBatchNorm, CompareBatchNormTest) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 2240 | |
Keith Davis | 33a626f | 2020-08-27 15:38:12 +0100 | [diff] [blame] | 2241 | ARMNN_COMPARE_REF_AUTO_TEST_CASE_WITH_THF(CompareReLu1, CompareBoundedReLuTest, 1.0f, -1.0f) |
| 2242 | ARMNN_COMPARE_REF_AUTO_TEST_CASE_WITH_THF(CompareReLu6, CompareBoundedReLuTest, 6.0f, 0.0f) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 2243 | |
| 2244 | // ============================================================================ |
| 2245 | // FIXTURE tests |
| 2246 | |
Keith Davis | 33a626f | 2020-08-27 15:38:12 +0100 | [diff] [blame] | 2247 | ARMNN_COMPARE_REF_FIXTURE_TEST_CASE_WITH_THF(CompareSigmoidActivationWithReference, ActivationFixture, |
Aron Virginas-Tar | d8edabb | 2019-08-12 14:29:59 +0100 | [diff] [blame] | 2248 | CompareActivationTest, ActivationFunction::Sigmoid, 5u) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 2249 | |
Keith Davis | 33a626f | 2020-08-27 15:38:12 +0100 | [diff] [blame] | 2250 | ARMNN_COMPARE_REF_FIXTURE_TEST_CASE_WITH_THF(CompareTanhActivationWithReference, ActivationFixture, |
Aron Virginas-Tar | d8edabb | 2019-08-12 14:29:59 +0100 | [diff] [blame] | 2251 | CompareActivationTest, ActivationFunction::TanH, 5u) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 2252 | |
Keith Davis | 33a626f | 2020-08-27 15:38:12 +0100 | [diff] [blame] | 2253 | ARMNN_COMPARE_REF_FIXTURE_TEST_CASE_WITH_THF(CompareLinearActivationWithReference, ActivationFixture, |
Aron Virginas-Tar | d8edabb | 2019-08-12 14:29:59 +0100 | [diff] [blame] | 2254 | CompareActivationTest, ActivationFunction::Linear, 5u) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 2255 | |
Keith Davis | 33a626f | 2020-08-27 15:38:12 +0100 | [diff] [blame] | 2256 | ARMNN_COMPARE_REF_FIXTURE_TEST_CASE_WITH_THF(CompareReLuActivationWithReference, ActivationFixture, |
Aron Virginas-Tar | d8edabb | 2019-08-12 14:29:59 +0100 | [diff] [blame] | 2257 | CompareActivationTest, ActivationFunction::ReLu, 5u) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 2258 | |
Keith Davis | 33a626f | 2020-08-27 15:38:12 +0100 | [diff] [blame] | 2259 | ARMNN_COMPARE_REF_FIXTURE_TEST_CASE_WITH_THF(CompareBoundedReLuActivationWithReference, ActivationFixture, |
Aron Virginas-Tar | d8edabb | 2019-08-12 14:29:59 +0100 | [diff] [blame] | 2260 | CompareActivationTest, ActivationFunction::BoundedReLu, 5u) |
Keith Davis | 33a626f | 2020-08-27 15:38:12 +0100 | [diff] [blame] | 2261 | ARMNN_COMPARE_REF_FIXTURE_TEST_CASE_WITH_THF(CompareBoundedReLuActivationWithReferenceUint8, ActivationFixture, |
Aron Virginas-Tar | d8edabb | 2019-08-12 14:29:59 +0100 | [diff] [blame] | 2262 | CompareActivationUint8Test, ActivationFunction::BoundedReLu) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 2263 | |
Keith Davis | 33a626f | 2020-08-27 15:38:12 +0100 | [diff] [blame] | 2264 | ARMNN_COMPARE_REF_FIXTURE_TEST_CASE_WITH_THF(CompareSoftReLuActivationWithReference, ActivationFixture, |
Aron Virginas-Tar | d8edabb | 2019-08-12 14:29:59 +0100 | [diff] [blame] | 2265 | CompareActivationTest, ActivationFunction::SoftReLu, 5u) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 2266 | |
Keith Davis | 33a626f | 2020-08-27 15:38:12 +0100 | [diff] [blame] | 2267 | ARMNN_COMPARE_REF_FIXTURE_TEST_CASE_WITH_THF(CompareLeakyReLuActivationWithReference, ActivationFixture, |
Aron Virginas-Tar | d8edabb | 2019-08-12 14:29:59 +0100 | [diff] [blame] | 2268 | CompareActivationTest, ActivationFunction::LeakyReLu, 5u) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 2269 | |
Keith Davis | 33a626f | 2020-08-27 15:38:12 +0100 | [diff] [blame] | 2270 | ARMNN_COMPARE_REF_FIXTURE_TEST_CASE_WITH_THF(CompareAbsActivationWithReference, ActivationFixture, |
Aron Virginas-Tar | d8edabb | 2019-08-12 14:29:59 +0100 | [diff] [blame] | 2271 | CompareActivationTest, ActivationFunction::Abs, 5u) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 2272 | |
Keith Davis | 33a626f | 2020-08-27 15:38:12 +0100 | [diff] [blame] | 2273 | ARMNN_COMPARE_REF_FIXTURE_TEST_CASE_WITH_THF(CompareSqrtActivationWithReference, PositiveActivationFixture, |
Aron Virginas-Tar | d8edabb | 2019-08-12 14:29:59 +0100 | [diff] [blame] | 2274 | CompareActivationTest, ActivationFunction::Sqrt, 5u) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 2275 | |
Keith Davis | 33a626f | 2020-08-27 15:38:12 +0100 | [diff] [blame] | 2276 | ARMNN_COMPARE_REF_FIXTURE_TEST_CASE_WITH_THF(CompareSquareActivationWithReference, ActivationFixture, |
Aron Virginas-Tar | d8edabb | 2019-08-12 14:29:59 +0100 | [diff] [blame] | 2277 | CompareActivationTest, ActivationFunction::Square, 5u) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 2278 | |
Keith Davis | 33a626f | 2020-08-27 15:38:12 +0100 | [diff] [blame] | 2279 | ARMNN_COMPARE_REF_FIXTURE_TEST_CASE_WITH_THF(CompareEluActivationWithReference, ActivationFixture, |
Teresa Charlin | e32c844 | 2020-03-05 14:41:50 +0000 | [diff] [blame] | 2280 | CompareActivationTest, ActivationFunction::Elu, 5u) |
| 2281 | |
Matteo Martincigh | e67edb2 | 2019-08-14 14:05:46 +0100 | [diff] [blame] | 2282 | #endif |
| 2283 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 2284 | } |