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