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