Laurent Carlier | 749294b | 2020-06-01 09:03:17 +0100 | [diff] [blame] | 1 | // |
Teresa Charlin | 686f45c | 2020-07-23 17:59:00 +0100 | [diff] [blame] | 2 | // Copyright © 2017 Arm Ltd and Contributors. All rights reserved. |
David Beck | ecb56cd | 2018-09-05 12:52:57 +0100 | [diff] [blame] | 3 | // SPDX-License-Identifier: MIT |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 4 | // |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 5 | |
Aron Virginas-Tar | 5605519 | 2018-11-12 18:10:43 +0000 | [diff] [blame] | 6 | #include "NeonWorkloadFactoryHelper.hpp" |
| 7 | |
Colm Donelan | c42a987 | 2022-02-02 16:35:09 +0000 | [diff] [blame] | 8 | #include <armnnTestUtils/TensorHelpers.hpp> |
Sadik Armagan | a097d2a | 2021-11-24 15:47:28 +0000 | [diff] [blame] | 9 | #include <UnitTests.hpp> |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 10 | |
Aron Virginas-Tar | c9cc804 | 2018-11-01 16:15:57 +0000 | [diff] [blame] | 11 | #include <neon/NeonLayerSupport.hpp> |
| 12 | #include <neon/NeonWorkloadFactory.hpp> |
Aron Virginas-Tar | 00d306e | 2019-08-28 18:08:46 +0100 | [diff] [blame] | 13 | |
Aron Virginas-Tar | c9cc804 | 2018-11-01 16:15:57 +0000 | [diff] [blame] | 14 | #include <backendsCommon/test/ActivationFixture.hpp> |
| 15 | #include <backendsCommon/test/LayerTests.hpp> |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 16 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 17 | #include <doctest/doctest.h> |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 18 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 19 | TEST_SUITE("Compute_ArmComputeNeon") |
| 20 | { |
Sadik Armagan | 581742d | 2019-08-12 14:11:37 +0100 | [diff] [blame] | 21 | using namespace armnn; |
| 22 | |
| 23 | using FactoryType = NeonWorkloadFactory; |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 24 | |
| 25 | // ============================================================================ |
| 26 | // UNIT tests |
| 27 | |
Mike Kelly | 5685802 | 2020-01-27 12:14:47 +0000 | [diff] [blame] | 28 | // BatchToSpace |
Keith Davis | 33a626f | 2020-08-27 15:38:12 +0100 | [diff] [blame] | 29 | ARMNN_AUTO_TEST_CASE_WITH_THF(BatchToSpaceNdNhwcFloat321, BatchToSpaceNdNhwcTest1<DataType::Float32>) |
| 30 | ARMNN_AUTO_TEST_CASE_WITH_THF(BatchToSpaceNdNhwcFloat322, BatchToSpaceNdNhwcTest2<DataType::Float32>) |
| 31 | ARMNN_AUTO_TEST_CASE_WITH_THF(BatchToSpaceNdNhwcFloat323, BatchToSpaceNdNhwcTest3<DataType::Float32>) |
Mike Kelly | 5685802 | 2020-01-27 12:14:47 +0000 | [diff] [blame] | 32 | |
Keith Davis | 33a626f | 2020-08-27 15:38:12 +0100 | [diff] [blame] | 33 | ARMNN_AUTO_TEST_CASE_WITH_THF(BatchToSpaceNdNchwFloat321, BatchToSpaceNdNchwTest1<DataType::Float32>) |
| 34 | ARMNN_AUTO_TEST_CASE_WITH_THF(BatchToSpaceNdNchwFloat322, BatchToSpaceNdNchwTest2<DataType::Float32>) |
| 35 | ARMNN_AUTO_TEST_CASE_WITH_THF(BatchToSpaceNdNchwFloat323, BatchToSpaceNdNchwTest3<DataType::Float32>) |
Mike Kelly | 5685802 | 2020-01-27 12:14:47 +0000 | [diff] [blame] | 36 | |
Keith Davis | 33a626f | 2020-08-27 15:38:12 +0100 | [diff] [blame] | 37 | ARMNN_AUTO_TEST_CASE_WITH_THF(BatchToSpaceNdNhwcInt1, BatchToSpaceNdNhwcTest1<DataType::QAsymmS8>) |
| 38 | ARMNN_AUTO_TEST_CASE_WITH_THF(BatchToSpaceNdNhwcInt2, BatchToSpaceNdNhwcTest2<DataType::QAsymmS8>) |
| 39 | ARMNN_AUTO_TEST_CASE_WITH_THF(BatchToSpaceNdNhwcInt3, BatchToSpaceNdNhwcTest3<DataType::QAsymmS8>) |
Sadik Armagan | 303980c | 2020-04-17 12:45:14 +0100 | [diff] [blame] | 40 | |
Keith Davis | 33a626f | 2020-08-27 15:38:12 +0100 | [diff] [blame] | 41 | ARMNN_AUTO_TEST_CASE_WITH_THF(BatchToSpaceNdNchwInt1, BatchToSpaceNdNchwTest1<DataType::QAsymmS8>) |
| 42 | ARMNN_AUTO_TEST_CASE_WITH_THF(BatchToSpaceNdNchwInt2, BatchToSpaceNdNchwTest2<DataType::QAsymmS8>) |
| 43 | ARMNN_AUTO_TEST_CASE_WITH_THF(BatchToSpaceNdNchwInt3, BatchToSpaceNdNchwTest3<DataType::QAsymmS8>) |
Sadik Armagan | 303980c | 2020-04-17 12:45:14 +0100 | [diff] [blame] | 44 | |
Keith Davis | 33a626f | 2020-08-27 15:38:12 +0100 | [diff] [blame] | 45 | ARMNN_AUTO_TEST_CASE_WITH_THF(BatchToSpaceNdNhwcUint1, BatchToSpaceNdNhwcTest1<DataType::QAsymmU8>) |
| 46 | ARMNN_AUTO_TEST_CASE_WITH_THF(BatchToSpaceNdNhwcUint2, BatchToSpaceNdNhwcTest2<DataType::QAsymmU8>) |
| 47 | ARMNN_AUTO_TEST_CASE_WITH_THF(BatchToSpaceNdNhwcUint3, BatchToSpaceNdNhwcTest3<DataType::QAsymmU8>) |
Mike Kelly | 5685802 | 2020-01-27 12:14:47 +0000 | [diff] [blame] | 48 | |
Keith Davis | 33a626f | 2020-08-27 15:38:12 +0100 | [diff] [blame] | 49 | ARMNN_AUTO_TEST_CASE_WITH_THF(BatchToSpaceNdNchwUint1, BatchToSpaceNdNchwTest1<DataType::QAsymmU8>) |
| 50 | ARMNN_AUTO_TEST_CASE_WITH_THF(BatchToSpaceNdNchwUint2, BatchToSpaceNdNchwTest2<DataType::QAsymmU8>) |
| 51 | ARMNN_AUTO_TEST_CASE_WITH_THF(BatchToSpaceNdNchwUint3, BatchToSpaceNdNchwTest3<DataType::QAsymmU8>) |
Mike Kelly | 5685802 | 2020-01-27 12:14:47 +0000 | [diff] [blame] | 52 | |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 53 | // Convolution |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 54 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleConvolution1d, Convolution1dTest, true) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 55 | |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 56 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleConvolution2d, SimpleConvolution2d3x5Test, true, DataLayout::NCHW) |
| 57 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleConvolution2dNhwc, SimpleConvolution2d3x5Test, true, DataLayout::NHWC) |
| 58 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleConvolution2d3x3Uint8, SimpleConvolution2d3x3Uint8Test, true, DataLayout::NCHW) |
| 59 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleConvolution2d3x3Uint8Nhwc, SimpleConvolution2d3x3Uint8Test, true, DataLayout::NHWC) |
| 60 | ARMNN_AUTO_TEST_CASE_WITH_THF(UnbiasedConvolution2d, SimpleConvolution2d3x5Test, false, DataLayout::NCHW) |
| 61 | ARMNN_AUTO_TEST_CASE_WITH_THF(UnbiasedConvolution2dNhwc, SimpleConvolution2d3x5Test, false, DataLayout::NHWC) |
| 62 | ARMNN_AUTO_TEST_CASE_WITH_THF(UnbiasedConvolution2dStride2x2Nhwc, |
Sadik Armagan | 581742d | 2019-08-12 14:11:37 +0100 | [diff] [blame] | 63 | SimpleConvolution2d3x3Stride2x2Test, false, DataLayout::NHWC) |
jimfly01 | 0a088a6 | 2018-10-25 17:05:05 +0100 | [diff] [blame] | 64 | |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 65 | ARMNN_AUTO_TEST_CASE_WITH_THF(UnbiasedConvolution2dSquare, SimpleConvolution2d3x3Test, false, DataLayout::NCHW) |
| 66 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleConvolution2dAsymmetricPadding, |
| 67 | Convolution2dAsymmetricPaddingTest, |
| 68 | DataLayout::NCHW) |
narpra01 | 5f70318 | 2018-10-26 16:24:58 +0100 | [diff] [blame] | 69 | |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 70 | ARMNN_AUTO_TEST_CASE_WITH_THF(UnbiasedConvolution2dSquareNhwc, SimpleConvolution2d3x3Test, false, DataLayout::NHWC) |
| 71 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleConvolution2dAsymmetricPaddingNhwc, |
narpra01 | 5f70318 | 2018-10-26 16:24:58 +0100 | [diff] [blame] | 72 | Convolution2dAsymmetricPaddingTest, |
Sadik Armagan | 581742d | 2019-08-12 14:11:37 +0100 | [diff] [blame] | 73 | DataLayout::NHWC) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 74 | |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 75 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleConvolution2dSquareNhwc, SimpleConvolution2d3x3NhwcTest, false) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 76 | |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 77 | ARMNN_AUTO_TEST_CASE_WITH_THF(Convolution2d3x3Dilation3x3, |
Sadik Armagan | 581742d | 2019-08-12 14:11:37 +0100 | [diff] [blame] | 78 | Convolution2d3x3Dilation3x3Test<DataType::Float32, DataType::Float32>, |
Jan Eilers | 59c6670 | 2019-07-11 10:22:36 +0100 | [diff] [blame] | 79 | false, |
Sadik Armagan | 581742d | 2019-08-12 14:11:37 +0100 | [diff] [blame] | 80 | DataLayout::NCHW) |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 81 | ARMNN_AUTO_TEST_CASE_WITH_THF(Convolution2d3x3Dilation3x3Nhwc, |
Sadik Armagan | 581742d | 2019-08-12 14:11:37 +0100 | [diff] [blame] | 82 | Convolution2d3x3Dilation3x3Test<DataType::Float32, DataType::Float32>, |
Jan Eilers | 59c6670 | 2019-07-11 10:22:36 +0100 | [diff] [blame] | 83 | false, |
Sadik Armagan | 581742d | 2019-08-12 14:11:37 +0100 | [diff] [blame] | 84 | DataLayout::NHWC) |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 85 | ARMNN_AUTO_TEST_CASE_WITH_THF(Convolution2d3x3Dilation3x3Int8, |
Sadik Armagan | 303980c | 2020-04-17 12:45:14 +0100 | [diff] [blame] | 86 | Convolution2d3x3Dilation3x3Test<DataType::QAsymmS8, DataType::Signed32>, |
| 87 | false, |
| 88 | DataLayout::NCHW) |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 89 | ARMNN_AUTO_TEST_CASE_WITH_THF(Convolution2d3x3Dilation3x3NhwcInt8, |
Sadik Armagan | 303980c | 2020-04-17 12:45:14 +0100 | [diff] [blame] | 90 | Convolution2d3x3Dilation3x3Test<DataType::QAsymmS8, DataType::Signed32>, |
| 91 | false, |
| 92 | DataLayout::NHWC) |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 93 | ARMNN_AUTO_TEST_CASE_WITH_THF(Convolution2d3x3Dilation3x3Uint8, |
Derek Lamberti | f90c56d | 2020-01-10 17:14:08 +0000 | [diff] [blame] | 94 | Convolution2d3x3Dilation3x3Test<DataType::QAsymmU8, DataType::Signed32>, |
Jan Eilers | 59c6670 | 2019-07-11 10:22:36 +0100 | [diff] [blame] | 95 | false, |
Sadik Armagan | 581742d | 2019-08-12 14:11:37 +0100 | [diff] [blame] | 96 | DataLayout::NCHW) |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 97 | ARMNN_AUTO_TEST_CASE_WITH_THF(Convolution2d3x3Dilation3x3NhwcUint8, |
Derek Lamberti | f90c56d | 2020-01-10 17:14:08 +0000 | [diff] [blame] | 98 | Convolution2d3x3Dilation3x3Test<DataType::QAsymmU8, DataType::Signed32>, |
Jan Eilers | 59c6670 | 2019-07-11 10:22:36 +0100 | [diff] [blame] | 99 | false, |
Sadik Armagan | 581742d | 2019-08-12 14:11:37 +0100 | [diff] [blame] | 100 | DataLayout::NHWC) |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 101 | ARMNN_AUTO_TEST_CASE_WITH_THF(Convolution2d2x3x3Dilation3x3, |
Sadik Armagan | 581742d | 2019-08-12 14:11:37 +0100 | [diff] [blame] | 102 | Convolution2d2x3x3Dilation3x3Test<DataType::Float32, DataType::Float32>, |
Jan Eilers | 59c6670 | 2019-07-11 10:22:36 +0100 | [diff] [blame] | 103 | false, |
Sadik Armagan | 581742d | 2019-08-12 14:11:37 +0100 | [diff] [blame] | 104 | DataLayout::NCHW) |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 105 | ARMNN_AUTO_TEST_CASE_WITH_THF(Convolution2d2x3x3Dilation3x3Nhwc, |
Sadik Armagan | 581742d | 2019-08-12 14:11:37 +0100 | [diff] [blame] | 106 | Convolution2d2x3x3Dilation3x3Test<DataType::Float32, DataType::Float32>, |
Jan Eilers | 59c6670 | 2019-07-11 10:22:36 +0100 | [diff] [blame] | 107 | false, |
Sadik Armagan | 581742d | 2019-08-12 14:11:37 +0100 | [diff] [blame] | 108 | DataLayout::NHWC) |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 109 | ARMNN_AUTO_TEST_CASE_WITH_THF(Convolution2d2x3x3Dilation3x3Int8, |
Sadik Armagan | 303980c | 2020-04-17 12:45:14 +0100 | [diff] [blame] | 110 | Convolution2d2x3x3Dilation3x3Test<DataType::QAsymmS8, DataType::Signed32>, |
| 111 | false, |
| 112 | DataLayout::NCHW) |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 113 | ARMNN_AUTO_TEST_CASE_WITH_THF(Convolution2d2x3x3Dilation3x3NhwcInt8, |
Sadik Armagan | 303980c | 2020-04-17 12:45:14 +0100 | [diff] [blame] | 114 | Convolution2d2x3x3Dilation3x3Test<DataType::QAsymmS8, DataType::Signed32>, |
| 115 | false, |
| 116 | DataLayout::NHWC) |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 117 | ARMNN_AUTO_TEST_CASE_WITH_THF(Convolution2d2x3x3Dilation3x3Uint8, |
Derek Lamberti | f90c56d | 2020-01-10 17:14:08 +0000 | [diff] [blame] | 118 | Convolution2d2x3x3Dilation3x3Test<DataType::QAsymmU8, DataType::Signed32>, |
Jan Eilers | 59c6670 | 2019-07-11 10:22:36 +0100 | [diff] [blame] | 119 | false, |
Sadik Armagan | 581742d | 2019-08-12 14:11:37 +0100 | [diff] [blame] | 120 | DataLayout::NCHW) |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 121 | ARMNN_AUTO_TEST_CASE_WITH_THF(Convolution2d2x3x3Dilation3x3NhwcUint8, |
Derek Lamberti | f90c56d | 2020-01-10 17:14:08 +0000 | [diff] [blame] | 122 | Convolution2d2x3x3Dilation3x3Test<DataType::QAsymmU8, DataType::Signed32>, |
Jan Eilers | 59c6670 | 2019-07-11 10:22:36 +0100 | [diff] [blame] | 123 | false, |
Sadik Armagan | 581742d | 2019-08-12 14:11:37 +0100 | [diff] [blame] | 124 | DataLayout::NHWC) |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 125 | ARMNN_AUTO_TEST_CASE_WITH_THF(Convolution2d2x2Dilation2x2Padding2x2Stride3x3, |
Jan Eilers | 59c6670 | 2019-07-11 10:22:36 +0100 | [diff] [blame] | 126 | Convolution2d2x2Dilation2x2Padding2x2Stride3x3Test |
Sadik Armagan | 581742d | 2019-08-12 14:11:37 +0100 | [diff] [blame] | 127 | <DataType::Float32, DataType::Float32>, |
Jan Eilers | 59c6670 | 2019-07-11 10:22:36 +0100 | [diff] [blame] | 128 | false, |
Sadik Armagan | 581742d | 2019-08-12 14:11:37 +0100 | [diff] [blame] | 129 | DataLayout::NCHW) |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 130 | ARMNN_AUTO_TEST_CASE_WITH_THF(Convolution2d2x2Dilation2x2Padding2x2Stride3x3Nhwc, |
Jan Eilers | 59c6670 | 2019-07-11 10:22:36 +0100 | [diff] [blame] | 131 | Convolution2d2x2Dilation2x2Padding2x2Stride3x3Test |
Sadik Armagan | 581742d | 2019-08-12 14:11:37 +0100 | [diff] [blame] | 132 | <DataType::Float32, DataType::Float32>, |
Jan Eilers | 59c6670 | 2019-07-11 10:22:36 +0100 | [diff] [blame] | 133 | false, |
Sadik Armagan | 581742d | 2019-08-12 14:11:37 +0100 | [diff] [blame] | 134 | DataLayout::NHWC) |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 135 | ARMNN_AUTO_TEST_CASE_WITH_THF(Convolution2d2x2Dilation2x2Padding2x2Stride3x3Int8, |
Sadik Armagan | 303980c | 2020-04-17 12:45:14 +0100 | [diff] [blame] | 136 | Convolution2d2x2Dilation2x2Padding2x2Stride3x3Test |
| 137 | <DataType::QAsymmS8, DataType::Signed32>, |
| 138 | false, |
| 139 | DataLayout::NCHW) |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 140 | ARMNN_AUTO_TEST_CASE_WITH_THF(Convolution2d2x2Dilation2x2Padding2x2Stride3x3NhwcInt8, |
Sadik Armagan | 303980c | 2020-04-17 12:45:14 +0100 | [diff] [blame] | 141 | Convolution2d2x2Dilation2x2Padding2x2Stride3x3Test |
| 142 | <DataType::QAsymmS8, DataType::Signed32>, |
| 143 | false, |
| 144 | DataLayout::NHWC) |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 145 | ARMNN_AUTO_TEST_CASE_WITH_THF(Convolution2d2x2Dilation2x2Padding2x2Stride3x3Uint8, |
Jan Eilers | 59c6670 | 2019-07-11 10:22:36 +0100 | [diff] [blame] | 146 | Convolution2d2x2Dilation2x2Padding2x2Stride3x3Test |
Derek Lamberti | f90c56d | 2020-01-10 17:14:08 +0000 | [diff] [blame] | 147 | <DataType::QAsymmU8, DataType::Signed32>, |
Jan Eilers | 59c6670 | 2019-07-11 10:22:36 +0100 | [diff] [blame] | 148 | false, |
Sadik Armagan | 581742d | 2019-08-12 14:11:37 +0100 | [diff] [blame] | 149 | DataLayout::NCHW) |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 150 | ARMNN_AUTO_TEST_CASE_WITH_THF(Convolution2d2x2Dilation2x2Padding2x2Stride3x3NhwcUint8, |
Jan Eilers | 59c6670 | 2019-07-11 10:22:36 +0100 | [diff] [blame] | 151 | Convolution2d2x2Dilation2x2Padding2x2Stride3x3Test |
Derek Lamberti | f90c56d | 2020-01-10 17:14:08 +0000 | [diff] [blame] | 152 | <DataType::QAsymmU8, DataType::Signed32>, |
Jan Eilers | 59c6670 | 2019-07-11 10:22:36 +0100 | [diff] [blame] | 153 | false, |
Sadik Armagan | 581742d | 2019-08-12 14:11:37 +0100 | [diff] [blame] | 154 | DataLayout::NHWC) |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 155 | ARMNN_AUTO_TEST_CASE_WITH_THF(DepthwiseConvolution2dMult4, |
Kevin May | 665a964a | 2019-08-21 16:53:50 +0100 | [diff] [blame] | 156 | DepthwiseConvolution2dMult4Test<armnn::DataType::Float32, armnn::DataType::Float32>, |
| 157 | false, |
| 158 | armnn::DataLayout::NCHW) |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 159 | ARMNN_AUTO_TEST_CASE_WITH_THF(DepthwiseConvolution2dMult2, |
Kevin May | 665a964a | 2019-08-21 16:53:50 +0100 | [diff] [blame] | 160 | DepthwiseConvolution2dMult2Test<armnn::DataType::Float32, armnn::DataType::Float32>, |
| 161 | false, |
| 162 | armnn::DataLayout::NCHW) |
Jan Eilers | 59c6670 | 2019-07-11 10:22:36 +0100 | [diff] [blame] | 163 | |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 164 | ARMNN_AUTO_TEST_CASE_WITH_THF(Convolution2dPerAxisQuantTestNchw, Convolution2dPerAxisQuantTest, DataLayout::NCHW); |
| 165 | ARMNN_AUTO_TEST_CASE_WITH_THF(Convolution2dPerAxisQuantTestNhwc, Convolution2dPerAxisQuantTest, DataLayout::NHWC); |
Aron Virginas-Tar | 21fc28b | 2019-11-26 14:04:54 +0000 | [diff] [blame] | 166 | |
Teresa Charlin | ec5f7d1 | 2021-10-22 17:15:00 +0100 | [diff] [blame] | 167 | // Convolution 3d - NDHWC |
| 168 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleConvolution3d3x3x3Float32, |
| 169 | SimpleConvolution3d3x3x3Float32Test, |
| 170 | false, |
| 171 | DataLayout::NDHWC) |
| 172 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleConvolution3d3x3x3Int8, |
| 173 | SimpleConvolution3d3x3x3Int8Test, |
| 174 | false, |
| 175 | DataLayout::NDHWC) |
| 176 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleConvolution3d3x3x3Uint8, |
| 177 | SimpleConvolution3d3x3x3Uint8Test, |
| 178 | false, |
| 179 | DataLayout::NDHWC) |
| 180 | |
| 181 | ARMNN_AUTO_TEST_CASE_WITH_THF(Convolution3d2x2x2Strides3x5x5Float32, |
| 182 | Convolution3d2x2x2Strides3x5x5Float32Test, |
| 183 | false, |
| 184 | DataLayout::NDHWC) |
| 185 | ARMNN_AUTO_TEST_CASE_WITH_THF(Convolution3d2x2x2Strides3x5x5TestInt8, |
| 186 | Convolution3d2x2x2Strides3x5x5Int8Test, |
| 187 | true, |
| 188 | DataLayout::NDHWC) |
| 189 | ARMNN_AUTO_TEST_CASE_WITH_THF(Convolution3d2x2x2Strides3x5x5TestUint8, |
| 190 | Convolution3d2x2x2Strides3x5x5Uint8Test, |
| 191 | false, |
| 192 | DataLayout::NDHWC) |
| 193 | |
| 194 | ARMNN_AUTO_TEST_CASE_WITH_THF(Convolution3dPaddingSame3x3x3Float32, |
| 195 | Convolution3dPaddingSame3x3x3Float32Test, |
| 196 | false, |
| 197 | DataLayout::NDHWC) |
| 198 | ARMNN_AUTO_TEST_CASE_WITH_THF(Convolution3dPaddingSame3x3x3TestInt8, |
| 199 | Convolution3dPaddingSame3x3x3Int8Test, |
| 200 | false, |
| 201 | DataLayout::NDHWC) |
| 202 | ARMNN_AUTO_TEST_CASE_WITH_THF(Convolution3dPaddingSame3x3x3TestUint8, |
| 203 | Convolution3dPaddingSame3x3x3Uint8Test, |
| 204 | false, |
| 205 | DataLayout::NDHWC) |
| 206 | |
| 207 | ARMNN_AUTO_TEST_CASE_WITH_THF(Convolution3d2x2x2Stride3x3x3SmallTestFloat32, |
| 208 | Convolution3d2x2x2Stride3x3x3SmallFloat32Test, |
| 209 | false, |
| 210 | DataLayout::NDHWC) |
| 211 | #ifdef __ARM_FEATURE_FP16_VECTOR_ARITHMETIC |
| 212 | ARMNN_AUTO_TEST_CASE_WITH_THF(Convolution3d2x3x3TestFloat16, |
| 213 | Convolution3d2x3x3Float16Test, |
| 214 | true, |
| 215 | DataLayout::NDHWC) |
| 216 | ARMNN_AUTO_TEST_CASE_WITH_THF(Convolution3d2x2x2SmallTestFloat16, |
| 217 | Convolution3d2x2x2SmallFloat16Test, |
| 218 | false, |
| 219 | DataLayout::NDHWC) |
| 220 | #endif |
| 221 | |
Aron Virginas-Tar | 2f00b74 | 2019-09-30 13:28:08 +0100 | [diff] [blame] | 222 | // DepthToSpace |
| 223 | ARMNN_AUTO_TEST_CASE(DepthToSpaceNchwFloat32_1, DepthToSpaceTest1<DataType::Float32>, DataLayout::NCHW); |
| 224 | ARMNN_AUTO_TEST_CASE(DepthToSpaceNchwFloat32_2, DepthToSpaceTest2<DataType::Float32>, DataLayout::NCHW); |
| 225 | ARMNN_AUTO_TEST_CASE(DepthToSpaceNchwFloat32_3, DepthToSpaceTest3<DataType::Float32>, DataLayout::NCHW); |
| 226 | ARMNN_AUTO_TEST_CASE(DepthToSpaceNchwFloat32_4, DepthToSpaceTest4<DataType::Float32>, DataLayout::NCHW); |
| 227 | |
Aron Virginas-Tar | 99836d3 | 2019-09-30 16:34:31 +0100 | [diff] [blame] | 228 | ARMNN_AUTO_TEST_CASE(DepthToSpaceNchwFloat16_1, DepthToSpaceTest1<DataType::Float16>, DataLayout::NCHW); |
| 229 | ARMNN_AUTO_TEST_CASE(DepthToSpaceNchwFloat16_2, DepthToSpaceTest2<DataType::Float16>, DataLayout::NCHW); |
| 230 | ARMNN_AUTO_TEST_CASE(DepthToSpaceNchwFloat16_3, DepthToSpaceTest3<DataType::Float16>, DataLayout::NCHW); |
| 231 | ARMNN_AUTO_TEST_CASE(DepthToSpaceNchwFloat16_4, DepthToSpaceTest4<DataType::Float16>, DataLayout::NCHW); |
| 232 | |
Sadik Armagan | 303980c | 2020-04-17 12:45:14 +0100 | [diff] [blame] | 233 | ARMNN_AUTO_TEST_CASE(DepthToSpaceNchwInt8_1, DepthToSpaceTest1<DataType::QAsymmS8>, DataLayout::NCHW); |
| 234 | ARMNN_AUTO_TEST_CASE(DepthToSpaceNchwInt8_2, DepthToSpaceTest2<DataType::QAsymmS8>, DataLayout::NCHW); |
| 235 | ARMNN_AUTO_TEST_CASE(DepthToSpaceNchwInt8_3, DepthToSpaceTest3<DataType::QAsymmS8>, DataLayout::NCHW); |
| 236 | ARMNN_AUTO_TEST_CASE(DepthToSpaceNchwInt8_4, DepthToSpaceTest4<DataType::QAsymmS8>, DataLayout::NCHW); |
| 237 | |
Derek Lamberti | f90c56d | 2020-01-10 17:14:08 +0000 | [diff] [blame] | 238 | ARMNN_AUTO_TEST_CASE(DepthToSpaceNchwUint8_1, DepthToSpaceTest1<DataType::QAsymmU8>, DataLayout::NCHW); |
| 239 | ARMNN_AUTO_TEST_CASE(DepthToSpaceNchwUint8_2, DepthToSpaceTest2<DataType::QAsymmU8>, DataLayout::NCHW); |
| 240 | ARMNN_AUTO_TEST_CASE(DepthToSpaceNchwUint8_3, DepthToSpaceTest3<DataType::QAsymmU8>, DataLayout::NCHW); |
| 241 | ARMNN_AUTO_TEST_CASE(DepthToSpaceNchwUint8_4, DepthToSpaceTest4<DataType::QAsymmU8>, DataLayout::NCHW); |
Aron Virginas-Tar | 2f00b74 | 2019-09-30 13:28:08 +0100 | [diff] [blame] | 242 | |
Derek Lamberti | f90c56d | 2020-01-10 17:14:08 +0000 | [diff] [blame] | 243 | ARMNN_AUTO_TEST_CASE(DepthToSpaceNchwInt16_1, DepthToSpaceTest1<DataType::QSymmS16>, DataLayout::NCHW); |
| 244 | ARMNN_AUTO_TEST_CASE(DepthToSpaceNchwInt16_2, DepthToSpaceTest2<DataType::QSymmS16>, DataLayout::NCHW); |
| 245 | ARMNN_AUTO_TEST_CASE(DepthToSpaceNchwInt16_3, DepthToSpaceTest3<DataType::QSymmS16>, DataLayout::NCHW); |
| 246 | ARMNN_AUTO_TEST_CASE(DepthToSpaceNchwInt16_4, DepthToSpaceTest4<DataType::QSymmS16>, DataLayout::NCHW); |
Aron Virginas-Tar | 2f00b74 | 2019-09-30 13:28:08 +0100 | [diff] [blame] | 247 | |
| 248 | ARMNN_AUTO_TEST_CASE(DepthToSpaceNhwcFloat32_1, DepthToSpaceTest1<DataType::Float32>, DataLayout::NHWC); |
| 249 | ARMNN_AUTO_TEST_CASE(DepthToSpaceNhwcFloat32_2, DepthToSpaceTest2<DataType::Float32>, DataLayout::NHWC); |
| 250 | ARMNN_AUTO_TEST_CASE(DepthToSpaceNhwcFloat32_3, DepthToSpaceTest3<DataType::Float32>, DataLayout::NHWC); |
| 251 | ARMNN_AUTO_TEST_CASE(DepthToSpaceNhwcFloat32_4, DepthToSpaceTest4<DataType::Float32>, DataLayout::NHWC); |
| 252 | |
Aron Virginas-Tar | 99836d3 | 2019-09-30 16:34:31 +0100 | [diff] [blame] | 253 | ARMNN_AUTO_TEST_CASE(DepthToSpaceNhwcFloat16_1, DepthToSpaceTest1<DataType::Float16>, DataLayout::NHWC); |
| 254 | ARMNN_AUTO_TEST_CASE(DepthToSpaceNhwcFloat16_2, DepthToSpaceTest2<DataType::Float16>, DataLayout::NHWC); |
| 255 | ARMNN_AUTO_TEST_CASE(DepthToSpaceNhwcFloat16_3, DepthToSpaceTest3<DataType::Float16>, DataLayout::NHWC); |
| 256 | ARMNN_AUTO_TEST_CASE(DepthToSpaceNhwcFloat16_4, DepthToSpaceTest4<DataType::Float16>, DataLayout::NHWC); |
| 257 | |
Sadik Armagan | 303980c | 2020-04-17 12:45:14 +0100 | [diff] [blame] | 258 | ARMNN_AUTO_TEST_CASE(DepthToSpaceNhwcInt8_1, DepthToSpaceTest1<DataType::QAsymmS8>, DataLayout::NHWC); |
| 259 | ARMNN_AUTO_TEST_CASE(DepthToSpaceNhwcInt8_2, DepthToSpaceTest2<DataType::QAsymmS8>, DataLayout::NHWC); |
| 260 | ARMNN_AUTO_TEST_CASE(DepthToSpaceNhwcInt8_3, DepthToSpaceTest3<DataType::QAsymmS8>, DataLayout::NHWC); |
| 261 | ARMNN_AUTO_TEST_CASE(DepthToSpaceNhwcInt8_4, DepthToSpaceTest4<DataType::QAsymmS8>, DataLayout::NHWC); |
| 262 | |
Derek Lamberti | f90c56d | 2020-01-10 17:14:08 +0000 | [diff] [blame] | 263 | ARMNN_AUTO_TEST_CASE(DepthToSpaceNhwcUint8_1, DepthToSpaceTest1<DataType::QAsymmU8>, DataLayout::NHWC); |
| 264 | ARMNN_AUTO_TEST_CASE(DepthToSpaceNhwcUint8_2, DepthToSpaceTest2<DataType::QAsymmU8>, DataLayout::NHWC); |
| 265 | ARMNN_AUTO_TEST_CASE(DepthToSpaceNhwcUint8_3, DepthToSpaceTest3<DataType::QAsymmU8>, DataLayout::NHWC); |
| 266 | ARMNN_AUTO_TEST_CASE(DepthToSpaceNhwcUint8_4, DepthToSpaceTest4<DataType::QAsymmU8>, DataLayout::NHWC); |
Aron Virginas-Tar | 2f00b74 | 2019-09-30 13:28:08 +0100 | [diff] [blame] | 267 | |
Derek Lamberti | f90c56d | 2020-01-10 17:14:08 +0000 | [diff] [blame] | 268 | ARMNN_AUTO_TEST_CASE(DepthToSpaceNhwcInt16_1, DepthToSpaceTest1<DataType::QSymmS16>, DataLayout::NHWC); |
| 269 | ARMNN_AUTO_TEST_CASE(DepthToSpaceNhwcInt16_2, DepthToSpaceTest2<DataType::QSymmS16>, DataLayout::NHWC); |
| 270 | ARMNN_AUTO_TEST_CASE(DepthToSpaceNhwcInt16_3, DepthToSpaceTest3<DataType::QSymmS16>, DataLayout::NHWC); |
| 271 | ARMNN_AUTO_TEST_CASE(DepthToSpaceNhwcInt16_4, DepthToSpaceTest4<DataType::QSymmS16>, DataLayout::NHWC); |
Aron Virginas-Tar | 2f00b74 | 2019-09-30 13:28:08 +0100 | [diff] [blame] | 272 | |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 273 | // Depthwise Convolution |
Jan Eilers | 53ef795 | 2021-06-02 12:01:25 +0100 | [diff] [blame] | 274 | ARMNN_AUTO_TEST_CASE_WITH_THF(DepthwiseConvolution2d, DepthwiseConvolution2dTest, true, DataLayout::NCHW) |
| 275 | ARMNN_AUTO_TEST_CASE_WITH_THF(DepthwiseConvolution2dUint8, DepthwiseConvolution2dUint8Test, true, DataLayout::NCHW) |
| 276 | |
| 277 | ARMNN_AUTO_TEST_CASE_WITH_THF(UnbiasedDepthwiseConvolution2d, DepthwiseConvolution2dTest, false, DataLayout::NCHW) |
| 278 | |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 279 | ARMNN_AUTO_TEST_CASE_WITH_THF(DepthwiseConvolution2dDepthMul1, |
Sadik Armagan | 581742d | 2019-08-12 14:11:37 +0100 | [diff] [blame] | 280 | DepthwiseConvolution2dDepthMul1Test, true, DataLayout::NCHW) |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 281 | ARMNN_AUTO_TEST_CASE_WITH_THF(UnbiasedDepthwiseConvolution2dDepthMul1, |
Sadik Armagan | 581742d | 2019-08-12 14:11:37 +0100 | [diff] [blame] | 282 | DepthwiseConvolution2dDepthMul1Test, false, DataLayout::NCHW) |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 283 | ARMNN_AUTO_TEST_CASE_WITH_THF(DepthwiseConvolution2dDepthMul1Uint8, |
Sadik Armagan | 581742d | 2019-08-12 14:11:37 +0100 | [diff] [blame] | 284 | DepthwiseConvolution2dDepthMul1Uint8Test, true, DataLayout::NCHW) |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 285 | ARMNN_AUTO_TEST_CASE_WITH_THF(UnbiasedDepthwiseConvolution2dDepthMul1Uint8, |
Sadik Armagan | 581742d | 2019-08-12 14:11:37 +0100 | [diff] [blame] | 286 | DepthwiseConvolution2dDepthMul1Uint8Test, false, DataLayout::NCHW) |
jimfly01 | b9c8963 | 2018-10-26 16:50:13 +0100 | [diff] [blame] | 287 | |
| 288 | // NHWC Depthwise Convolution |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 289 | ARMNN_AUTO_TEST_CASE_WITH_THF(DepthwiseConvolution2dDepthMul1NHhwc, |
Sadik Armagan | 581742d | 2019-08-12 14:11:37 +0100 | [diff] [blame] | 290 | DepthwiseConvolution2dDepthMul1Test, true, DataLayout::NHWC) |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 291 | ARMNN_AUTO_TEST_CASE_WITH_THF(UnbiasedDepthwiseConvolution2dDepthMul1Nhwc, |
Sadik Armagan | 581742d | 2019-08-12 14:11:37 +0100 | [diff] [blame] | 292 | DepthwiseConvolution2dDepthMul1Test, false, DataLayout::NHWC) |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 293 | ARMNN_AUTO_TEST_CASE_WITH_THF(DepthwiseConvolution2dDepthMul1Uint8Nhwc, |
Sadik Armagan | 581742d | 2019-08-12 14:11:37 +0100 | [diff] [blame] | 294 | DepthwiseConvolution2dDepthMul1Uint8Test, true, DataLayout::NHWC) |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 295 | ARMNN_AUTO_TEST_CASE_WITH_THF(UnbiasedDepthwiseConvolution2dDepthMul1Uint8Nhwc, |
Sadik Armagan | 581742d | 2019-08-12 14:11:37 +0100 | [diff] [blame] | 296 | DepthwiseConvolution2dDepthMul1Uint8Test, false, DataLayout::NHWC) |
jimfly01 | b9c8963 | 2018-10-26 16:50:13 +0100 | [diff] [blame] | 297 | |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 298 | ARMNN_AUTO_TEST_CASE_WITH_THF(DepthwiseConvolution2dDepthNhwc, DepthwiseConvolution2dDepthNhwcTest, false) |
| 299 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleDepthwiseConvolution2d3x3Dilation3x3Nhwc, |
Bruno Goncalves | 22972f0 | 2019-04-26 21:03:24 -0300 | [diff] [blame] | 300 | SimpleDepthwiseConvolution2d3x3Dilation3x3NhwcTest) |
jimfly01 | b9c8963 | 2018-10-26 16:50:13 +0100 | [diff] [blame] | 301 | |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 302 | |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 303 | ARMNN_AUTO_TEST_CASE_WITH_THF(DepthwiseConvolution2dAsymmetric, |
Sadik Armagan | 581742d | 2019-08-12 14:11:37 +0100 | [diff] [blame] | 304 | DepthwiseConvolution2dAsymmetricTest, true, DataLayout::NCHW) |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 305 | ARMNN_AUTO_TEST_CASE_WITH_THF(UnbiasedDepthwiseConvolution2dAsymmetric, |
Sadik Armagan | 581742d | 2019-08-12 14:11:37 +0100 | [diff] [blame] | 306 | DepthwiseConvolution2dAsymmetricTest, false, DataLayout::NCHW) |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 307 | ARMNN_AUTO_TEST_CASE_WITH_THF(DepthwiseConvolution2dAsymmetricNhwc, |
Sadik Armagan | 581742d | 2019-08-12 14:11:37 +0100 | [diff] [blame] | 308 | DepthwiseConvolution2dAsymmetricTest, true, DataLayout::NHWC) |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 309 | ARMNN_AUTO_TEST_CASE_WITH_THF(UnbiasedDepthwiseConvolution2dAsymmetricNhwc, |
Sadik Armagan | 581742d | 2019-08-12 14:11:37 +0100 | [diff] [blame] | 310 | DepthwiseConvolution2dAsymmetricTest, false, DataLayout::NHWC) |
surmeh01 | 3537c2c | 2018-05-18 16:31:43 +0100 | [diff] [blame] | 311 | |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 312 | ARMNN_AUTO_TEST_CASE_WITH_THF(DepthwiseConvolution2dDepthMul64, DepthwiseConvolution2dDepthMul64Test); |
Matthew Jackson | 9910792 | 2019-07-25 12:58:56 +0100 | [diff] [blame] | 313 | |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 314 | ARMNN_AUTO_TEST_CASE_WITH_THF(DepthwiseConvolution2dPerAxisQuantTestNchw, DepthwiseConvolution2dPerAxisQuantTest, |
Aron Virginas-Tar | 2445744 | 2019-11-27 13:18:25 +0000 | [diff] [blame] | 315 | DataLayout::NCHW); |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 316 | ARMNN_AUTO_TEST_CASE_WITH_THF(DepthwiseConvolution2dPerAxisQuantTestNhwc, DepthwiseConvolution2dPerAxisQuantTest, |
Aron Virginas-Tar | 2445744 | 2019-11-27 13:18:25 +0000 | [diff] [blame] | 317 | DataLayout::NHWC); |
| 318 | |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 319 | namespace |
| 320 | { |
| 321 | |
Sadik Armagan | 581742d | 2019-08-12 14:11:37 +0100 | [diff] [blame] | 322 | DepthwiseConvolution2dDescriptor MakeDepthwiseConv2dDesc(uint32_t strideX, uint32_t strideY, |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 323 | uint32_t depthMultiplier = 1, uint32_t padLeft = 0, uint32_t padRight = 0, |
| 324 | uint32_t padTop = 0, uint32_t padBottom = 0) |
| 325 | { |
Jan Eilers | 8eb2560 | 2020-03-09 12:13:48 +0000 | [diff] [blame] | 326 | IgnoreUnused(depthMultiplier); |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 327 | |
Sadik Armagan | 581742d | 2019-08-12 14:11:37 +0100 | [diff] [blame] | 328 | DepthwiseConvolution2dDescriptor desc; |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 329 | |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 330 | desc.m_PadLeft = padLeft; |
| 331 | desc.m_PadRight = padRight; |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 332 | |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 333 | desc.m_PadTop = padTop; |
| 334 | desc.m_PadBottom = padBottom; |
| 335 | desc.m_StrideX = strideX; |
| 336 | desc.m_StrideY = strideY; |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 337 | desc.m_BiasEnabled = false; |
| 338 | |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 339 | return desc; |
| 340 | } |
| 341 | |
Sadik Armagan | 581742d | 2019-08-12 14:11:37 +0100 | [diff] [blame] | 342 | TensorInfo CreateOutputTensorInfo(const TensorInfo& inputInfo, |
| 343 | const TensorInfo& weightsInfo, |
| 344 | const DepthwiseConvolution2dDescriptor& descriptor, |
| 345 | DataType dataType) |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 346 | { |
Sadik Armagan | 581742d | 2019-08-12 14:11:37 +0100 | [diff] [blame] | 347 | const TensorShape& inputShape = inputInfo.GetShape(); |
| 348 | const TensorShape& filterShape = weightsInfo.GetShape(); |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 349 | |
| 350 | unsigned int inWidth = inputShape[3]; |
| 351 | unsigned int inHeight = inputShape[2]; |
| 352 | unsigned int inBatchSize = inputShape[0]; |
| 353 | |
Jan Eilers | 53ef795 | 2021-06-02 12:01:25 +0100 | [diff] [blame] | 354 | unsigned int filterWidth = filterShape[2]; |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 355 | unsigned int readWidth = (inWidth + descriptor.m_PadLeft + descriptor.m_PadRight) - (filterWidth); |
| 356 | unsigned int outWidth = 1u + (readWidth / descriptor.m_StrideX); |
| 357 | |
Jan Eilers | 53ef795 | 2021-06-02 12:01:25 +0100 | [diff] [blame] | 358 | unsigned int filterHeight = filterShape[1]; |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 359 | unsigned int readHeight = (inHeight + descriptor.m_PadTop + descriptor.m_PadBottom) - (filterHeight); |
| 360 | unsigned int outHeight = 1u + (readHeight / descriptor.m_StrideY); |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 361 | |
Jan Eilers | 53ef795 | 2021-06-02 12:01:25 +0100 | [diff] [blame] | 362 | unsigned int outChannels = filterShape[3]; |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 363 | unsigned int outBatchSize = inBatchSize; |
| 364 | |
Sadik Armagan | 581742d | 2019-08-12 14:11:37 +0100 | [diff] [blame] | 365 | TensorShape outputShape({outBatchSize, outChannels, outHeight, outWidth}); |
| 366 | return TensorInfo(outputShape, dataType); |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 367 | } |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 368 | } |
| 369 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 370 | TEST_CASE("DepthwiseConv2dUtils") |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 371 | { |
Sadik Armagan | 581742d | 2019-08-12 14:11:37 +0100 | [diff] [blame] | 372 | const DataType dataType = DataType::Float32; |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 373 | |
Sadik Armagan | 581742d | 2019-08-12 14:11:37 +0100 | [diff] [blame] | 374 | TensorInfo inputInfo({1, 1, 10, 10 }, dataType); |
| 375 | TensorInfo outputInfo; |
Jan Eilers | 53ef795 | 2021-06-02 12:01:25 +0100 | [diff] [blame] | 376 | TensorInfo weightsInfo3x3({ 1, 3, 3, 1 }, dataType); // [1,H,W,I*M] |
Sadik Armagan | 581742d | 2019-08-12 14:11:37 +0100 | [diff] [blame] | 377 | TensorInfo biasesInfo; |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 378 | |
Sadik Armagan | 581742d | 2019-08-12 14:11:37 +0100 | [diff] [blame] | 379 | DepthwiseConvolution2dDescriptor descriptor; |
| 380 | NeonLayerSupport layerSupport; |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 381 | |
| 382 | // Strides supported: 1,2,3 |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 383 | descriptor = MakeDepthwiseConv2dDesc(1, 1); |
| 384 | outputInfo = CreateOutputTensorInfo(inputInfo, weightsInfo3x3, descriptor, dataType); |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 385 | CHECK(layerSupport.IsDepthwiseConvolutionSupported(inputInfo, outputInfo, descriptor, |
Aron Virginas-Tar | fc82431 | 2018-10-15 15:00:13 +0100 | [diff] [blame] | 386 | weightsInfo3x3, biasesInfo)); |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 387 | |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 388 | descriptor = MakeDepthwiseConv2dDesc(1, 2); |
| 389 | outputInfo = CreateOutputTensorInfo(inputInfo, weightsInfo3x3, descriptor, dataType); |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 390 | CHECK(layerSupport.IsDepthwiseConvolutionSupported(inputInfo, outputInfo, descriptor, |
Aron Virginas-Tar | fc82431 | 2018-10-15 15:00:13 +0100 | [diff] [blame] | 391 | weightsInfo3x3, biasesInfo)); |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 392 | |
| 393 | descriptor = MakeDepthwiseConv2dDesc(1, 3); |
| 394 | outputInfo = CreateOutputTensorInfo(inputInfo, weightsInfo3x3, descriptor, dataType); |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 395 | CHECK(layerSupport.IsDepthwiseConvolutionSupported(inputInfo, outputInfo, descriptor, |
Aron Virginas-Tar | fc82431 | 2018-10-15 15:00:13 +0100 | [diff] [blame] | 396 | weightsInfo3x3, biasesInfo)); |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 397 | |
| 398 | descriptor = MakeDepthwiseConv2dDesc(2, 1); |
| 399 | outputInfo = CreateOutputTensorInfo(inputInfo, weightsInfo3x3, descriptor, dataType); |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 400 | CHECK(layerSupport.IsDepthwiseConvolutionSupported(inputInfo, outputInfo, descriptor, |
Aron Virginas-Tar | fc82431 | 2018-10-15 15:00:13 +0100 | [diff] [blame] | 401 | weightsInfo3x3, biasesInfo)); |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 402 | |
| 403 | descriptor = MakeDepthwiseConv2dDesc(2, 2); |
| 404 | outputInfo = CreateOutputTensorInfo(inputInfo, weightsInfo3x3, descriptor, dataType); |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 405 | CHECK(layerSupport.IsDepthwiseConvolutionSupported(inputInfo, outputInfo, descriptor, |
Aron Virginas-Tar | fc82431 | 2018-10-15 15:00:13 +0100 | [diff] [blame] | 406 | weightsInfo3x3, biasesInfo)); |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 407 | |
| 408 | descriptor = MakeDepthwiseConv2dDesc(2, 3); |
| 409 | outputInfo = CreateOutputTensorInfo(inputInfo, weightsInfo3x3, descriptor, dataType); |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 410 | CHECK(layerSupport.IsDepthwiseConvolutionSupported(inputInfo, outputInfo, descriptor, |
Aron Virginas-Tar | fc82431 | 2018-10-15 15:00:13 +0100 | [diff] [blame] | 411 | weightsInfo3x3, biasesInfo)); |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 412 | |
| 413 | descriptor = MakeDepthwiseConv2dDesc(3, 1); |
| 414 | outputInfo = CreateOutputTensorInfo(inputInfo, weightsInfo3x3, descriptor, dataType); |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 415 | CHECK(layerSupport.IsDepthwiseConvolutionSupported(inputInfo, outputInfo, descriptor, |
Aron Virginas-Tar | fc82431 | 2018-10-15 15:00:13 +0100 | [diff] [blame] | 416 | weightsInfo3x3, biasesInfo)); |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 417 | |
| 418 | descriptor = MakeDepthwiseConv2dDesc(3, 2); |
| 419 | outputInfo = CreateOutputTensorInfo(inputInfo, weightsInfo3x3, descriptor, dataType); |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 420 | CHECK(layerSupport.IsDepthwiseConvolutionSupported(inputInfo, outputInfo, descriptor, |
Aron Virginas-Tar | fc82431 | 2018-10-15 15:00:13 +0100 | [diff] [blame] | 421 | weightsInfo3x3, biasesInfo)); |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 422 | |
| 423 | descriptor = MakeDepthwiseConv2dDesc(3, 3); |
| 424 | outputInfo = CreateOutputTensorInfo(inputInfo, weightsInfo3x3, descriptor, dataType); |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 425 | CHECK(layerSupport.IsDepthwiseConvolutionSupported(inputInfo, outputInfo, descriptor, |
Aron Virginas-Tar | fc82431 | 2018-10-15 15:00:13 +0100 | [diff] [blame] | 426 | weightsInfo3x3, biasesInfo)); |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 427 | |
| 428 | // Supported stride 4 |
| 429 | descriptor = MakeDepthwiseConv2dDesc(4, 1); |
| 430 | outputInfo = CreateOutputTensorInfo(inputInfo, weightsInfo3x3, descriptor, dataType); |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 431 | CHECK(layerSupport.IsDepthwiseConvolutionSupported(inputInfo, outputInfo, descriptor, |
Aron Virginas-Tar | fc82431 | 2018-10-15 15:00:13 +0100 | [diff] [blame] | 432 | weightsInfo3x3, biasesInfo)); |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 433 | |
| 434 | // Supported weights shape 1x1 |
Sadik Armagan | 581742d | 2019-08-12 14:11:37 +0100 | [diff] [blame] | 435 | TensorInfo weightsInfo1x1({ 1, 1, 1, 1 }, DataType::Float32); |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 436 | descriptor = MakeDepthwiseConv2dDesc(1, 1); |
| 437 | outputInfo = CreateOutputTensorInfo(inputInfo, weightsInfo1x1, descriptor, dataType); |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 438 | CHECK(layerSupport.IsDepthwiseConvolutionSupported(inputInfo, outputInfo, descriptor, |
Aron Virginas-Tar | fc82431 | 2018-10-15 15:00:13 +0100 | [diff] [blame] | 439 | weightsInfo1x1, biasesInfo)); |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 440 | |
| 441 | // Supported shape 2x2 |
Jan Eilers | 53ef795 | 2021-06-02 12:01:25 +0100 | [diff] [blame] | 442 | TensorInfo weightsInfo2x2({ 1, 2, 2, 1 }, DataType::Float32); |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 443 | descriptor = MakeDepthwiseConv2dDesc(1, 1); |
| 444 | outputInfo = CreateOutputTensorInfo(inputInfo, weightsInfo2x2, descriptor, dataType); |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 445 | CHECK(layerSupport.IsDepthwiseConvolutionSupported(inputInfo, outputInfo, descriptor, |
Aron Virginas-Tar | fc82431 | 2018-10-15 15:00:13 +0100 | [diff] [blame] | 446 | weightsInfo2x2, biasesInfo)); |
surmeh01 | 3537c2c | 2018-05-18 16:31:43 +0100 | [diff] [blame] | 447 | |
| 448 | // Asymmetric padding |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 449 | descriptor = MakeDepthwiseConv2dDesc(1, 1, 1, 1, 2, 1, 2); |
| 450 | outputInfo = CreateOutputTensorInfo(inputInfo, weightsInfo3x3, descriptor, dataType); |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 451 | CHECK(layerSupport.IsDepthwiseConvolutionSupported(inputInfo, outputInfo, descriptor, |
Aron Virginas-Tar | fc82431 | 2018-10-15 15:00:13 +0100 | [diff] [blame] | 452 | weightsInfo3x3, biasesInfo)); |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 453 | } |
| 454 | |
Narumol Prangnawarat | 01961a7 | 2019-05-30 16:47:12 +0100 | [diff] [blame] | 455 | // Dequantize |
Jan Eilers | f710793 | 2019-11-01 11:09:36 +0000 | [diff] [blame] | 456 | // Fp16 is only supported if __ARM_FEATURE_FP16_VECTOR_ARITHMETIC is enabled |
Narumol Prangnawarat | 01961a7 | 2019-05-30 16:47:12 +0100 | [diff] [blame] | 457 | ARMNN_AUTO_TEST_CASE(DequantizeSimpleUint8, DequantizeSimpleUint8Test) |
| 458 | ARMNN_AUTO_TEST_CASE(DequantizeOffsetUint8, DequantizeOffsetUint8Test) |
Jan Eilers | f710793 | 2019-11-01 11:09:36 +0000 | [diff] [blame] | 459 | ARMNN_AUTO_TEST_CASE(DequantizeSimpleInt16, DequantizeSimpleInt16Test) |
Narumol Prangnawarat | 01961a7 | 2019-05-30 16:47:12 +0100 | [diff] [blame] | 460 | |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 461 | // Pooling |
Finn Williams | 826a543 | 2020-08-27 16:15:20 +0100 | [diff] [blame] | 462 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleMaxPooling2dSize3x3Stride2x4, |
| 463 | SimpleMaxPooling2dSize3x3Stride2x4Test, true) |
| 464 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleMaxPooling2dSize3x3Stride2x4Uint8, |
| 465 | SimpleMaxPooling2dSize3x3Stride2x4Uint8Test, true) |
James Conroy | 45a9b77 | 2018-10-31 11:47:53 +0000 | [diff] [blame] | 466 | |
Finn Williams | 826a543 | 2020-08-27 16:15:20 +0100 | [diff] [blame] | 467 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleMaxPooling2d, SimpleMaxPooling2dTest, DataLayout::NCHW) |
| 468 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleMaxPooling2dNhwc, SimpleMaxPooling2dTest, DataLayout::NHWC) |
| 469 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleMaxPooling2dUint8, SimpleMaxPooling2dUint8Test, DataLayout::NCHW) |
| 470 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleMaxPooling2dUint8Nhwc, SimpleMaxPooling2dUint8Test, DataLayout::NHWC) |
James Conroy | 45a9b77 | 2018-10-31 11:47:53 +0000 | [diff] [blame] | 471 | |
Finn Williams | 826a543 | 2020-08-27 16:15:20 +0100 | [diff] [blame] | 472 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleAveragePooling2d, SimpleAveragePooling2dTest, DataLayout::NCHW) |
| 473 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleAveragePooling2dNhwc, SimpleAveragePooling2dTest, DataLayout::NCHW) |
| 474 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleAveragePooling2dUint8, |
| 475 | SimpleAveragePooling2dUint8Test, DataLayout::NCHW) |
| 476 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleAveragePooling2dUint8Nhwc, |
| 477 | SimpleAveragePooling2dUint8Test, DataLayout::NHWC) |
surmeh01 | bceff2f | 2018-03-29 16:29:27 +0100 | [diff] [blame] | 478 | |
Finn Williams | 826a543 | 2020-08-27 16:15:20 +0100 | [diff] [blame] | 479 | ARMNN_AUTO_TEST_CASE_WITH_THF(LargeTensorsAveragePooling2d, LargeTensorsAveragePooling2dTest) |
| 480 | ARMNN_AUTO_TEST_CASE_WITH_THF(LargeTensorsAveragePooling2dUint8, LargeTensorsAveragePooling2dUint8Test) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 481 | |
Finn Williams | 826a543 | 2020-08-27 16:15:20 +0100 | [diff] [blame] | 482 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleL2Pooling2d, SimpleL2Pooling2dTest, DataLayout::NCHW) |
| 483 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleL2Pooling2dNeon, SimpleL2Pooling2dTest, DataLayout::NHWC) |
| 484 | ARMNN_AUTO_TEST_CASE_WITH_THF(UNSUPPORTED_SimpleL2Pooling2dUint8, SimpleL2Pooling2dUint8Test, DataLayout::NCHW) |
James Conroy | 45a9b77 | 2018-10-31 11:47:53 +0000 | [diff] [blame] | 485 | |
Finn Williams | 826a543 | 2020-08-27 16:15:20 +0100 | [diff] [blame] | 486 | ARMNN_AUTO_TEST_CASE_WITH_THF(L2Pooling2dSize3Stride1, L2Pooling2dSize3Stride1Test) |
| 487 | ARMNN_AUTO_TEST_CASE_WITH_THF(UNSUPPORTED_L2Pooling2dSize3Stride1Uint8, L2Pooling2dSize3Stride1Uint8Test) |
| 488 | ARMNN_AUTO_TEST_CASE_WITH_THF(L2Pooling2dSize3Stride3, L2Pooling2dSize3Stride3Test) |
| 489 | ARMNN_AUTO_TEST_CASE_WITH_THF(UNSUPPORTED_L2Pooling2dSize3Stride3Uint8, L2Pooling2dSize3Stride3Uint8Test) |
| 490 | ARMNN_AUTO_TEST_CASE_WITH_THF(L2Pooling2dSize3Stride4, L2Pooling2dSize3Stride4Test) |
| 491 | ARMNN_AUTO_TEST_CASE_WITH_THF(UNSUPPORTED_L2Pooling2dSize3Stride4Uint8, L2Pooling2dSize3Stride4Uint8Test) |
| 492 | ARMNN_AUTO_TEST_CASE_WITH_THF(L2Pooling2dSize7, L2Pooling2dSize7Test) |
| 493 | ARMNN_AUTO_TEST_CASE_WITH_THF(UNSUPPORTED_L2Pooling2dSize7Uint8, L2Pooling2dSize7Uint8Test) |
| 494 | ARMNN_AUTO_TEST_CASE_WITH_THF(L2Pooling2dSize9, L2Pooling2dSize9Test) |
| 495 | ARMNN_AUTO_TEST_CASE_WITH_THF(UNSUPPORTED_L2Pooling2dSize9Uint8, L2Pooling2dSize9Uint8Test) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 496 | |
| 497 | // Ignore padding values for pooling but count padding fields into the divisor |
Finn Williams | 826a543 | 2020-08-27 16:15:20 +0100 | [diff] [blame] | 498 | ARMNN_AUTO_TEST_CASE_WITH_THF(IgnorePaddingSimpleMaxPooling2d, IgnorePaddingSimpleMaxPooling2dTest) |
| 499 | ARMNN_AUTO_TEST_CASE_WITH_THF(IgnorePaddingSimpleMaxPooling2dUint8, IgnorePaddingSimpleMaxPooling2dUint8Test) |
| 500 | ARMNN_AUTO_TEST_CASE_WITH_THF(IgnorePaddingMaxPooling2dSize3, IgnorePaddingMaxPooling2dSize3Test) |
| 501 | ARMNN_AUTO_TEST_CASE_WITH_THF(IgnorePaddingMaxPooling2dSize3Uint8, IgnorePaddingMaxPooling2dSize3Uint8Test) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 502 | |
Finn Williams | 826a543 | 2020-08-27 16:15:20 +0100 | [diff] [blame] | 503 | ARMNN_AUTO_TEST_CASE_WITH_THF(IgnorePaddingSimpleAveragePooling2d, IgnorePaddingSimpleAveragePooling2dTest) |
| 504 | ARMNN_AUTO_TEST_CASE_WITH_THF(IgnorePaddingSimpleAveragePooling2dUint8, IgnorePaddingSimpleAveragePooling2dUint8Test) |
| 505 | ARMNN_AUTO_TEST_CASE_WITH_THF(IgnorePaddingSimpleAveragePooling2dNoPadding, |
| 506 | IgnorePaddingSimpleAveragePooling2dNoPaddingTest) |
| 507 | ARMNN_AUTO_TEST_CASE_WITH_THF(IgnorePaddingSimpleAveragePooling2dNoPaddingUint8, |
| 508 | IgnorePaddingSimpleAveragePooling2dNoPaddingUint8Test) |
| 509 | ARMNN_AUTO_TEST_CASE_WITH_THF(IgnorePaddingAveragePooling2dSize3, IgnorePaddingAveragePooling2dSize3Test) |
| 510 | ARMNN_AUTO_TEST_CASE_WITH_THF(IgnorePaddingAveragePooling2dSize3Uint8, |
| 511 | IgnorePaddingAveragePooling2dSize3Uint8Test) |
| 512 | ARMNN_AUTO_TEST_CASE_WITH_THF(IgnorePaddingAveragePooling2dSize3x2Stride2x2, |
| 513 | IgnorePaddingAveragePooling2dSize3x2Stride2x2Test, false) |
| 514 | ARMNN_AUTO_TEST_CASE_WITH_THF(IgnorePaddingAveragePooling2dSize3x2Stride2x2NoPadding, |
| 515 | IgnorePaddingAveragePooling2dSize3x2Stride2x2Test, |
| 516 | true) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 517 | |
Finn Williams | 826a543 | 2020-08-27 16:15:20 +0100 | [diff] [blame] | 518 | ARMNN_AUTO_TEST_CASE_WITH_THF(IgnorePaddingSimpleL2Pooling2d, IgnorePaddingSimpleL2Pooling2dTest) |
| 519 | ARMNN_AUTO_TEST_CASE_WITH_THF(UNSUPPORTED_IgnorePaddingSimpleL2Pooling2dUint8, |
| 520 | IgnorePaddingSimpleL2Pooling2dUint8Test) |
| 521 | ARMNN_AUTO_TEST_CASE_WITH_THF(IgnorePaddingL2Pooling2dSize3, IgnorePaddingL2Pooling2dSize3Test) |
| 522 | ARMNN_AUTO_TEST_CASE_WITH_THF(UNSUPPORTED_IgnorePaddingL2Pooling2dSize3Uint8, |
| 523 | IgnorePaddingL2Pooling2dSize3Uint8Test) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 524 | |
| 525 | // Activation |
Keith Davis | 33a626f | 2020-08-27 15:38:12 +0100 | [diff] [blame] | 526 | ARMNN_AUTO_TEST_CASE_WITH_THF(ConstantLinearActivation, ConstantLinearActivationTest) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 527 | |
Teresa Charlin | e32c844 | 2020-03-05 14:41:50 +0000 | [diff] [blame] | 528 | // Sigmoid Activation / Logistic |
Keith Davis | 33a626f | 2020-08-27 15:38:12 +0100 | [diff] [blame] | 529 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleSigmoid, SimpleSigmoidTest) |
| 530 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleSigmoidUint8, SimpleSigmoidUint8Test) |
Teresa Charlin | e32c844 | 2020-03-05 14:41:50 +0000 | [diff] [blame] | 531 | |
| 532 | // BoundedReLU Activation |
Keith Davis | 33a626f | 2020-08-27 15:38:12 +0100 | [diff] [blame] | 533 | ARMNN_AUTO_TEST_CASE_WITH_THF(ReLu1, BoundedReLuUpperAndLowerBoundTest) |
| 534 | ARMNN_AUTO_TEST_CASE_WITH_THF(ReLu6, BoundedReLuUpperBoundOnlyTest) |
| 535 | ARMNN_AUTO_TEST_CASE_WITH_THF(ReLu1Uint8, BoundedReLuUint8UpperAndLowerBoundTest) |
| 536 | ARMNN_AUTO_TEST_CASE_WITH_THF(ReLu6Uint8, BoundedReLuUint8UpperBoundOnlyTest) |
Narumol Prangnawarat | 65d3096 | 2019-03-14 11:55:03 +0000 | [diff] [blame] | 537 | |
Teresa Charlin | e32c844 | 2020-03-05 14:41:50 +0000 | [diff] [blame] | 538 | // ReLU Activation |
Keith Davis | 33a626f | 2020-08-27 15:38:12 +0100 | [diff] [blame] | 539 | ARMNN_AUTO_TEST_CASE_WITH_THF(ReLu, ReLuTest) |
| 540 | ARMNN_AUTO_TEST_CASE_WITH_THF(ReLuUint8, ReLuUint8Test) |
David Monahan | 3b3c381 | 2020-02-25 09:03:29 +0000 | [diff] [blame] | 541 | |
Teresa Charlin | e32c844 | 2020-03-05 14:41:50 +0000 | [diff] [blame] | 542 | // SoftReLU Activation |
Keith Davis | 33a626f | 2020-08-27 15:38:12 +0100 | [diff] [blame] | 543 | ARMNN_AUTO_TEST_CASE_WITH_THF(SoftReLu, SoftReLuTest) |
Teresa Charlin | e32c844 | 2020-03-05 14:41:50 +0000 | [diff] [blame] | 544 | |
| 545 | // LeakyReLU Activation |
Keith Davis | 33a626f | 2020-08-27 15:38:12 +0100 | [diff] [blame] | 546 | ARMNN_AUTO_TEST_CASE_WITH_THF(LeakyReLu, LeakyReLuTest) |
Teresa Charlin | e32c844 | 2020-03-05 14:41:50 +0000 | [diff] [blame] | 547 | |
| 548 | // Abs Activation |
Keith Davis | 33a626f | 2020-08-27 15:38:12 +0100 | [diff] [blame] | 549 | ARMNN_AUTO_TEST_CASE_WITH_THF(Abs, AbsTest) |
Narumol Prangnawarat | b98bbcf | 2019-04-15 14:14:27 +0100 | [diff] [blame] | 550 | |
Sadik Armagan | 6095ba5 | 2019-09-13 17:07:19 +0100 | [diff] [blame] | 551 | // Sqrt Activation |
Keith Davis | 33a626f | 2020-08-27 15:38:12 +0100 | [diff] [blame] | 552 | ARMNN_AUTO_TEST_CASE_WITH_THF(Sqrt, SqrtTest) |
| 553 | ARMNN_AUTO_TEST_CASE_WITH_THF(SqrtNN, SqrtNNTest) |
Sadik Armagan | 6095ba5 | 2019-09-13 17:07:19 +0100 | [diff] [blame] | 554 | |
Teresa Charlin | e32c844 | 2020-03-05 14:41:50 +0000 | [diff] [blame] | 555 | // Square Activation |
Keith Davis | 33a626f | 2020-08-27 15:38:12 +0100 | [diff] [blame] | 556 | ARMNN_AUTO_TEST_CASE_WITH_THF(Square, SquareTest) |
Teresa Charlin | e32c844 | 2020-03-05 14:41:50 +0000 | [diff] [blame] | 557 | |
| 558 | // Tanh Activation |
Keith Davis | 33a626f | 2020-08-27 15:38:12 +0100 | [diff] [blame] | 559 | ARMNN_AUTO_TEST_CASE_WITH_THF(Tanh, TanhTest) |
Teresa Charlin | e32c844 | 2020-03-05 14:41:50 +0000 | [diff] [blame] | 560 | |
| 561 | // Elu Activation |
Keith Davis | 33a626f | 2020-08-27 15:38:12 +0100 | [diff] [blame] | 562 | ARMNN_AUTO_TEST_CASE_WITH_THF(Elu, EluTest) |
Teresa Charlin | e32c844 | 2020-03-05 14:41:50 +0000 | [diff] [blame] | 563 | |
Narumol Prangnawarat | 65d3096 | 2019-03-14 11:55:03 +0000 | [diff] [blame] | 564 | // Softmax |
Colm Donelan | ade8c1d | 2021-03-24 14:51:31 +0000 | [diff] [blame] | 565 | // Moved to NeonLayerTests_NDK_Bug.cpp |
| 566 | //ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleSoftmaxBeta1, SimpleSoftmaxTest, 1.0f) |
| 567 | //ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleSoftmaxBeta2, SimpleSoftmaxTest, 2.0f) |
Sadik Armagan | 56785c7 | 2020-08-27 12:57:20 +0100 | [diff] [blame] | 568 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleSoftmaxBeta1Uint8, SimpleSoftmaxUint8Test, 1.0f) |
| 569 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleSoftmaxBeta2Uint8, SimpleSoftmaxUint8Test, 2.0f) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 570 | |
Keith Davis | 69e653f | 2020-07-02 11:49:26 +0100 | [diff] [blame] | 571 | // LogSoftmax |
Colm Donelan | ade8c1d | 2021-03-24 14:51:31 +0000 | [diff] [blame] | 572 | // Moved to NeonLayerTests_NDK_Bug.cpp |
| 573 | //ARMNN_AUTO_TEST_CASE_WITH_THF(LogSoftmaxFloat32_1, LogSoftmaxTest1<DataType::Float32>) |
Keith Davis | 69e653f | 2020-07-02 11:49:26 +0100 | [diff] [blame] | 574 | |
Mike Kelly | 0be3a88 | 2020-01-24 11:27:50 +0000 | [diff] [blame] | 575 | // Space To Batch Nd |
Sadik Armagan | 714fe5b | 2020-08-27 12:46:36 +0100 | [diff] [blame] | 576 | ARMNN_AUTO_TEST_CASE_WITH_THF(SpaceToBatchNdSimpleFloat32, SpaceToBatchNdSimpleFloat32Test) |
| 577 | ARMNN_AUTO_TEST_CASE_WITH_THF(SpaceToBatchNdMultiChannelsFloat32, SpaceToBatchNdMultiChannelsFloat32Test) |
| 578 | ARMNN_AUTO_TEST_CASE_WITH_THF(SpaceToBatchNdMultiBlockFloat32, SpaceToBatchNdMultiBlockFloat32Test) |
| 579 | ARMNN_AUTO_TEST_CASE_WITH_THF(SpaceToBatchNdPaddingFloat32, SpaceToBatchNdPaddingFloat32Test) |
Mike Kelly | 0be3a88 | 2020-01-24 11:27:50 +0000 | [diff] [blame] | 580 | |
Sadik Armagan | 714fe5b | 2020-08-27 12:46:36 +0100 | [diff] [blame] | 581 | ARMNN_AUTO_TEST_CASE_WITH_THF(SpaceToBatchNdSimpleUint8, SpaceToBatchNdSimpleUint8Test) |
| 582 | ARMNN_AUTO_TEST_CASE_WITH_THF(SpaceToBatchNdMultiChannelsUint8, SpaceToBatchNdMultiChannelsUint8Test) |
| 583 | ARMNN_AUTO_TEST_CASE_WITH_THF(SpaceToBatchNdMultiBlockUint8, SpaceToBatchNdMultiBlockUint8Test) |
| 584 | ARMNN_AUTO_TEST_CASE_WITH_THF(SpaceToBatchNdPaddingUint8, SpaceToBatchNdPaddingUint8Test) |
Mike Kelly | 0be3a88 | 2020-01-24 11:27:50 +0000 | [diff] [blame] | 585 | |
Sadik Armagan | 714fe5b | 2020-08-27 12:46:36 +0100 | [diff] [blame] | 586 | ARMNN_AUTO_TEST_CASE_WITH_THF(SpaceToBatchNdSimpleNhwcFloat32, SpaceToBatchNdSimpleNhwcFloat32Test) |
Finn Williams | 826a543 | 2020-08-27 16:15:20 +0100 | [diff] [blame] | 587 | ARMNN_AUTO_TEST_CASE_WITH_THF(SpaceToBatchNdMultiChannelsNhwcFloat32, |
| 588 | SpaceToBatchNdMultiChannelsNhwcFloat32Test) |
Sadik Armagan | 714fe5b | 2020-08-27 12:46:36 +0100 | [diff] [blame] | 589 | ARMNN_AUTO_TEST_CASE_WITH_THF(SpaceToBatchNdMultiBlockNhwcFloat32, SpaceToBatchNdMultiBlockNhwcFloat32Test) |
| 590 | ARMNN_AUTO_TEST_CASE_WITH_THF(SpaceToBatchNdPaddingNhwcFloat32, SpaceToBatchNdPaddingNhwcFloat32Test) |
Mike Kelly | 0be3a88 | 2020-01-24 11:27:50 +0000 | [diff] [blame] | 591 | |
Sadik Armagan | 714fe5b | 2020-08-27 12:46:36 +0100 | [diff] [blame] | 592 | ARMNN_AUTO_TEST_CASE_WITH_THF(SpaceToBatchNdSimpleNhwcUint8, SpaceToBatchNdSimpleNhwcUint8Test) |
Finn Williams | 826a543 | 2020-08-27 16:15:20 +0100 | [diff] [blame] | 593 | ARMNN_AUTO_TEST_CASE_WITH_THF(SpaceToBatchNdMultiChannelsNhwcUint8, |
| 594 | SpaceToBatchNdMultiChannelsNhwcUint8Test) |
Sadik Armagan | 714fe5b | 2020-08-27 12:46:36 +0100 | [diff] [blame] | 595 | ARMNN_AUTO_TEST_CASE_WITH_THF(SpaceToBatchNdMultiBlockNhwcUint8, SpaceToBatchNdMultiBlockNhwcUint8Test) |
| 596 | ARMNN_AUTO_TEST_CASE_WITH_THF(SpaceToBatchNdPaddingNhwcUint8, SpaceToBatchNdPaddingNhwcUint8Test) |
Mike Kelly | 0be3a88 | 2020-01-24 11:27:50 +0000 | [diff] [blame] | 597 | |
Ellen Norris-Thompson | 2979457 | 2019-06-26 16:40:36 +0100 | [diff] [blame] | 598 | // SpaceToDepth |
Sadik Armagan | 5e71984 | 2020-08-28 12:17:33 +0100 | [diff] [blame] | 599 | ARMNN_AUTO_TEST_CASE_WITH_THF(SpaceToDepthNchwAsymmQ8, SpaceToDepthNchwAsymmQ8Test) |
| 600 | ARMNN_AUTO_TEST_CASE_WITH_THF(SpaceToDepthNhwcsymmQ8, SpaceToDepthNhwcAsymmQ8Test) |
Ellen Norris-Thompson | 2979457 | 2019-06-26 16:40:36 +0100 | [diff] [blame] | 601 | |
Sadik Armagan | 5e71984 | 2020-08-28 12:17:33 +0100 | [diff] [blame] | 602 | ARMNN_AUTO_TEST_CASE_WITH_THF(SpaceToDepthNhwc1Float32, SpaceToDepthNhwcFloat32Test1) |
| 603 | ARMNN_AUTO_TEST_CASE_WITH_THF(SpaceToDepthNchw1Float32, SpaceToDepthNchwFloat32Test1) |
Ellen Norris-Thompson | 2979457 | 2019-06-26 16:40:36 +0100 | [diff] [blame] | 604 | |
Sadik Armagan | 5e71984 | 2020-08-28 12:17:33 +0100 | [diff] [blame] | 605 | ARMNN_AUTO_TEST_CASE_WITH_THF(SpaceToDepthNhwc2Float32, SpaceToDepthNhwcFloat32Test2) |
| 606 | ARMNN_AUTO_TEST_CASE_WITH_THF(SpaceToDepthNchw2Float32, SpaceToDepthNchwFloat32Test2) |
Ellen Norris-Thompson | 2979457 | 2019-06-26 16:40:36 +0100 | [diff] [blame] | 607 | |
Sadik Armagan | 5e71984 | 2020-08-28 12:17:33 +0100 | [diff] [blame] | 608 | ARMNN_AUTO_TEST_CASE_WITH_THF(SpaceToDepthNhwcQSymm16, SpaceToDepthNhwcQSymm16Test) |
| 609 | ARMNN_AUTO_TEST_CASE_WITH_THF(SpaceToDepthNchwQSymm16, SpaceToDepthNchwQSymm16Test) |
Ellen Norris-Thompson | 2979457 | 2019-06-26 16:40:36 +0100 | [diff] [blame] | 610 | |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 611 | // Splitter |
Sadik Armagan | 5e71984 | 2020-08-28 12:17:33 +0100 | [diff] [blame] | 612 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleSplitterFloat32, SplitterFloat32Test) |
| 613 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleSplitterUint8, SplitterUint8Test) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 614 | |
Sadik Armagan | 5e71984 | 2020-08-28 12:17:33 +0100 | [diff] [blame] | 615 | ARMNN_AUTO_TEST_CASE_WITH_THF(CopyViaSplitterFloat32, CopyViaSplitterFloat32Test) |
| 616 | ARMNN_AUTO_TEST_CASE_WITH_THF(CopyViaSplitterUint8, CopyViaSplitterUint8Test) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 617 | |
Jim Flynn | 4ed6c83 | 2019-05-20 11:02:46 +0100 | [diff] [blame] | 618 | // Concat |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 619 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleConcat, ConcatTest) |
| 620 | ARMNN_AUTO_TEST_CASE_WITH_THF(ConcatUint8, ConcatUint8Test) |
| 621 | ARMNN_AUTO_TEST_CASE_WITH_THF(ConcatUint8DifferentInputOutputQParam, |
Derek Lamberti | f90c56d | 2020-01-10 17:14:08 +0000 | [diff] [blame] | 622 | ConcatDifferentInputOutputQParamTest<DataType::QAsymmU8>, false) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 623 | |
Narumol Prangnawarat | 250d392 | 2020-03-30 16:11:04 +0100 | [diff] [blame] | 624 | // Convert from BFloat16 to Float32 |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 625 | ARMNN_AUTO_TEST_CASE_WITH_THF(ConvertBf16ToFp32, ConvertBf16ToFp32Test) |
Narumol Prangnawarat | 250d392 | 2020-03-30 16:11:04 +0100 | [diff] [blame] | 626 | |
| 627 | // Convert from Float32 to BFloat16 |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 628 | ARMNN_AUTO_TEST_CASE_WITH_THF(ConvertFp32ToBf16, ConvertFp32ToBf16Test) |
Narumol Prangnawarat | 250d392 | 2020-03-30 16:11:04 +0100 | [diff] [blame] | 629 | |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 630 | // Fully Connected |
Finn Williams | 7faf9a8 | 2020-08-27 10:37:36 +0100 | [diff] [blame] | 631 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleFullyConnected, FullyConnectedFloat32Test, false, false) |
| 632 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleFullyConnectedWithBias, FullyConnectedFloat32Test, true, false) |
| 633 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleFullyConnectedWithTranspose, FullyConnectedFloat32Test, false, true) |
| 634 | ARMNN_AUTO_TEST_CASE_WITH_THF(FullyConnectedLarge, FullyConnectedLargeTest, false) |
| 635 | ARMNN_AUTO_TEST_CASE_WITH_THF(FullyConnectedLargeTransposed, FullyConnectedLargeTest, true) |
Sadik Armagan | f0a6dec | 2021-03-25 07:46:55 +0000 | [diff] [blame] | 636 | ARMNN_AUTO_TEST_CASE_WITH_THF(FullyConnectedUint8, FullyConnectedTest<DataType::QAsymmU8>, false, true) |
| 637 | ARMNN_AUTO_TEST_CASE_WITH_THF(FullyConnectedBiasedUint8, FullyConnectedTest<DataType::QAsymmU8>, true, true) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 638 | |
| 639 | // Add |
Keith Davis | 33a626f | 2020-08-27 15:38:12 +0100 | [diff] [blame] | 640 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleAdd, AdditionTest) |
| 641 | ARMNN_AUTO_TEST_CASE_WITH_THF(Add5d, Addition5dTest) |
| 642 | ARMNN_AUTO_TEST_CASE_WITH_THF(AddBroadcast, AdditionBroadcastTest) |
| 643 | ARMNN_AUTO_TEST_CASE_WITH_THF(AddBroadcast1Element, AdditionBroadcast1ElementTest) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 644 | |
David Beck | bc39245 | 2018-09-10 14:47:28 +0100 | [diff] [blame] | 645 | // Sub |
Keith Davis | 33a626f | 2020-08-27 15:38:12 +0100 | [diff] [blame] | 646 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleSub, SubtractionTest) |
| 647 | ARMNN_AUTO_TEST_CASE_WITH_THF(SubBroadcast1Element, SubtractionBroadcast1ElementTest) |
| 648 | ARMNN_AUTO_TEST_CASE_WITH_THF(SubBroadcast, SubtractionBroadcastTest) |
| 649 | ARMNN_AUTO_TEST_CASE_WITH_THF(SubtractionUint8, SubtractionUint8Test) |
| 650 | ARMNN_AUTO_TEST_CASE_WITH_THF(SubBroadcastUint8, SubtractionBroadcastUint8Test) |
| 651 | ARMNN_AUTO_TEST_CASE_WITH_THF(SubBroadcast1ElementUint8, SubtractionBroadcast1ElementUint8Test) |
David Beck | bc39245 | 2018-09-10 14:47:28 +0100 | [diff] [blame] | 652 | |
Pablo Tello | e61f071 | 2020-01-23 10:37:17 +0000 | [diff] [blame] | 653 | // Div |
Keith Davis | 33a626f | 2020-08-27 15:38:12 +0100 | [diff] [blame] | 654 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleDivision, DivisionTest) |
| 655 | ARMNN_AUTO_TEST_CASE_WITH_THF(DivisionByZero, DivisionByZeroTest) |
| 656 | ARMNN_AUTO_TEST_CASE_WITH_THF(DivisionBroadcast1Element, DivisionBroadcast1ElementTest) |
| 657 | ARMNN_AUTO_TEST_CASE_WITH_THF(DivisionBroadcast1DVector, DivisionBroadcast1DVectorTest) |
Pablo Tello | e61f071 | 2020-01-23 10:37:17 +0000 | [diff] [blame] | 658 | |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 659 | // Mul |
Keith Davis | 33a626f | 2020-08-27 15:38:12 +0100 | [diff] [blame] | 660 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleMultiplication, MultiplicationTest) |
| 661 | ARMNN_AUTO_TEST_CASE_WITH_THF(MultiplicationBroadcast1Element, MultiplicationBroadcast1ElementTest) |
| 662 | ARMNN_AUTO_TEST_CASE_WITH_THF(MultiplicationBroadcast1DVector, MultiplicationBroadcast1DVectorTest) |
| 663 | ARMNN_AUTO_TEST_CASE_WITH_THF(MultiplicationUint8, MultiplicationUint8Test) |
| 664 | ARMNN_AUTO_TEST_CASE_WITH_THF(MultiplicationBroadcast1ElementUint8, MultiplicationBroadcast1ElementUint8Test) |
| 665 | ARMNN_AUTO_TEST_CASE_WITH_THF(MultiplicationBroadcast1DVectorUint8, MultiplicationBroadcast1DVectorUint8Test) |
| 666 | ARMNN_AUTO_TEST_CASE_WITH_THF(Multiplication5d, Multiplication5dTest) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 667 | |
| 668 | // Batch Norm |
Keith Davis | 33a626f | 2020-08-27 15:38:12 +0100 | [diff] [blame] | 669 | ARMNN_AUTO_TEST_CASE_WITH_THF(BatchNormFloat32, BatchNormFloat32Test) |
| 670 | ARMNN_AUTO_TEST_CASE_WITH_THF(BatchNormFloat32Nhwc, BatchNormFloat32NhwcTest) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 671 | |
David Monahan | 97451b4 | 2020-12-03 09:48:06 +0000 | [diff] [blame] | 672 | // Rank |
| 673 | ARMNN_AUTO_TEST_CASE_WITH_THF(RankDimSize1Float16, RankDimSize1Test<DataType::Float16>) |
| 674 | ARMNN_AUTO_TEST_CASE_WITH_THF(RankDimSize1Float32, RankDimSize1Test<DataType::Float32>) |
| 675 | ARMNN_AUTO_TEST_CASE_WITH_THF(RankDimSize1QAsymmU8, RankDimSize1Test<DataType::QAsymmU8>) |
| 676 | ARMNN_AUTO_TEST_CASE_WITH_THF(RankDimSize1Signed32, RankDimSize1Test<DataType::Signed32>) |
| 677 | ARMNN_AUTO_TEST_CASE_WITH_THF(RankDimSize1QSymmS16, RankDimSize1Test<DataType::QSymmS16>) |
| 678 | ARMNN_AUTO_TEST_CASE_WITH_THF(RankDimSize1QAsymmS8, RankDimSize1Test<DataType::QAsymmS8>) |
| 679 | ARMNN_AUTO_TEST_CASE_WITH_THF(RankDimSize1BFloat16, RankDimSize1Test<DataType::BFloat16>) |
| 680 | |
| 681 | ARMNN_AUTO_TEST_CASE_WITH_THF(RankDimSize2Float16, RankDimSize2Test<DataType::Float16>) |
| 682 | ARMNN_AUTO_TEST_CASE_WITH_THF(RankDimSize2Float32, RankDimSize2Test<DataType::Float32>) |
| 683 | ARMNN_AUTO_TEST_CASE_WITH_THF(RankDimSize2QAsymmU8, RankDimSize2Test<DataType::QAsymmU8>) |
| 684 | ARMNN_AUTO_TEST_CASE_WITH_THF(RankDimSize2Signed32, RankDimSize2Test<DataType::Signed32>) |
| 685 | ARMNN_AUTO_TEST_CASE_WITH_THF(RankDimSize2QSymmS16, RankDimSize2Test<DataType::QSymmS16>) |
| 686 | ARMNN_AUTO_TEST_CASE_WITH_THF(RankDimSize2QAsymmS8, RankDimSize2Test<DataType::QAsymmS8>) |
| 687 | ARMNN_AUTO_TEST_CASE_WITH_THF(RankDimSize2BFloat16, RankDimSize2Test<DataType::BFloat16>) |
| 688 | |
| 689 | ARMNN_AUTO_TEST_CASE_WITH_THF(RankDimSize3Float16, RankDimSize3Test<DataType::Float16>) |
| 690 | ARMNN_AUTO_TEST_CASE_WITH_THF(RankDimSize3Float32, RankDimSize3Test<DataType::Float32>) |
| 691 | ARMNN_AUTO_TEST_CASE_WITH_THF(RankDimSize3QAsymmU8, RankDimSize3Test<DataType::QAsymmU8>) |
| 692 | ARMNN_AUTO_TEST_CASE_WITH_THF(RankDimSize3Signed32, RankDimSize3Test<DataType::Signed32>) |
| 693 | ARMNN_AUTO_TEST_CASE_WITH_THF(RankDimSize3QSymmS16, RankDimSize3Test<DataType::QSymmS16>) |
| 694 | ARMNN_AUTO_TEST_CASE_WITH_THF(RankDimSize3QAsymmS8, RankDimSize3Test<DataType::QAsymmS8>) |
| 695 | ARMNN_AUTO_TEST_CASE_WITH_THF(RankDimSize3BFloat16, RankDimSize3Test<DataType::BFloat16>) |
| 696 | |
| 697 | ARMNN_AUTO_TEST_CASE_WITH_THF(RankDimSize4Float16, RankDimSize4Test<DataType::Float16>) |
| 698 | ARMNN_AUTO_TEST_CASE_WITH_THF(RankDimSize4Float32, RankDimSize4Test<DataType::Float32>) |
| 699 | ARMNN_AUTO_TEST_CASE_WITH_THF(RankDimSize4QAsymmU8, RankDimSize4Test<DataType::QAsymmU8>) |
| 700 | ARMNN_AUTO_TEST_CASE_WITH_THF(RankDimSize4Signed32, RankDimSize4Test<DataType::Signed32>) |
| 701 | ARMNN_AUTO_TEST_CASE_WITH_THF(RankDimSize4QSymmS16, RankDimSize4Test<DataType::QSymmS16>) |
| 702 | ARMNN_AUTO_TEST_CASE_WITH_THF(RankDimSize4QAsymmS8, RankDimSize4Test<DataType::QAsymmS8>) |
| 703 | ARMNN_AUTO_TEST_CASE_WITH_THF(RankDimSize4BFloat16, RankDimSize4Test<DataType::BFloat16>) |
| 704 | |
Sadik Armagan | 0d4863d | 2019-10-09 14:26:32 +0100 | [diff] [blame] | 705 | // InstanceNormalization |
Finn Williams | c43de6a | 2020-08-27 11:13:25 +0100 | [diff] [blame] | 706 | ARMNN_AUTO_TEST_CASE_WITH_THF(InstanceNormFloat32Nchw, InstanceNormFloat32Test, DataLayout::NCHW); |
| 707 | ARMNN_AUTO_TEST_CASE_WITH_THF(InstanceNormFloat32Nhwc, InstanceNormFloat32Test, DataLayout::NHWC); |
Sadik Armagan | 0d4863d | 2019-10-09 14:26:32 +0100 | [diff] [blame] | 708 | |
Finn Williams | c43de6a | 2020-08-27 11:13:25 +0100 | [diff] [blame] | 709 | ARMNN_AUTO_TEST_CASE_WITH_THF(InstanceNormFloat32Nchw2, InstanceNormFloat32Test2, DataLayout::NCHW); |
| 710 | ARMNN_AUTO_TEST_CASE_WITH_THF(InstanceNormFloat32Nhwc2, InstanceNormFloat32Test2, DataLayout::NHWC); |
Sadik Armagan | 0d4863d | 2019-10-09 14:26:32 +0100 | [diff] [blame] | 711 | |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 712 | // Constant |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 713 | ARMNN_AUTO_TEST_CASE_WITH_THF(Constant, ConstantTest) |
| 714 | ARMNN_AUTO_TEST_CASE_WITH_THF(ConstantUint8, ConstantUint8SimpleQuantizationScaleNoOffsetTest) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 715 | |
Aron Virginas-Tar | 00d306e | 2019-08-28 18:08:46 +0100 | [diff] [blame] | 716 | // Concat |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 717 | ARMNN_AUTO_TEST_CASE_WITH_THF(Concat1d, Concat1dTest) |
| 718 | ARMNN_AUTO_TEST_CASE_WITH_THF(Concat1dUint8, Concat1dUint8Test) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 719 | |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 720 | ARMNN_AUTO_TEST_CASE_WITH_THF(Concat2dDim0, Concat2dDim0Test) |
| 721 | ARMNN_AUTO_TEST_CASE_WITH_THF(Concat2dDim0Uint8, Concat2dDim0Uint8Test) |
| 722 | ARMNN_AUTO_TEST_CASE_WITH_THF(Concat2dDim1, Concat2dDim1Test) |
| 723 | ARMNN_AUTO_TEST_CASE_WITH_THF(Concat2dDim1Uint8, Concat2dDim1Uint8Test) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 724 | |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 725 | ARMNN_AUTO_TEST_CASE_WITH_THF(Concat2dDim0DiffInputDims, Concat2dDim0DiffInputDimsTest) |
| 726 | ARMNN_AUTO_TEST_CASE_WITH_THF(Concat2dDim0DiffInputDimsUint8, Concat2dDim0DiffInputDimsUint8Test) |
| 727 | ARMNN_AUTO_TEST_CASE_WITH_THF(Concat2dDim1DiffInputDims, Concat2dDim1DiffInputDimsTest) |
| 728 | ARMNN_AUTO_TEST_CASE_WITH_THF(Concat2dDim1DiffInputDimsUint8, Concat2dDim1DiffInputDimsUint8Test) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 729 | |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 730 | ARMNN_AUTO_TEST_CASE_WITH_THF(Concat3dDim0, Concat3dDim0Test) |
| 731 | ARMNN_AUTO_TEST_CASE_WITH_THF(Concat3dDim0Uint8, Concat3dDim0Uint8Test) |
| 732 | ARMNN_AUTO_TEST_CASE_WITH_THF(Concat3dDim1, Concat3dDim1Test) |
| 733 | ARMNN_AUTO_TEST_CASE_WITH_THF(Concat3dDim1Uint8, Concat3dDim1Uint8Test) |
| 734 | ARMNN_AUTO_TEST_CASE_WITH_THF(Concat3dDim2, Concat3dDim2Test, false) |
| 735 | ARMNN_AUTO_TEST_CASE_WITH_THF(Concat3dDim2Uint8, Concat3dDim2Uint8Test, false) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 736 | |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 737 | ARMNN_AUTO_TEST_CASE_WITH_THF(Concat3dDim0DiffInputDims, Concat3dDim0DiffInputDimsTest) |
| 738 | ARMNN_AUTO_TEST_CASE_WITH_THF(Concat3dDim0DiffInputDimsUint8, Concat3dDim0DiffInputDimsUint8Test) |
| 739 | ARMNN_AUTO_TEST_CASE_WITH_THF(Concat3dDim1DiffInputDims, Concat3dDim1DiffInputDimsTest) |
| 740 | ARMNN_AUTO_TEST_CASE_WITH_THF(Concat3dDim1DiffInputDimsUint8, Concat3dDim1DiffInputDimsUint8Test) |
| 741 | ARMNN_AUTO_TEST_CASE_WITH_THF(Concat3dDim2DiffInputDims, Concat3dDim2DiffInputDimsTest, false) |
| 742 | ARMNN_AUTO_TEST_CASE_WITH_THF(Concat3dDim2DiffInputDimsUint8, Concat3dDim2DiffInputDimsUint8Test, false) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 743 | |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 744 | ARMNN_AUTO_TEST_CASE_WITH_THF(Concat4dDim0, Concat4dDim0Test) |
| 745 | ARMNN_AUTO_TEST_CASE_WITH_THF(Concat4dDim1, Concat4dDim1Test) |
| 746 | ARMNN_AUTO_TEST_CASE_WITH_THF(Concat4dDim3, Concat4dDim3Test, false) |
| 747 | ARMNN_AUTO_TEST_CASE_WITH_THF(Concat4dDim0Uint8, Concat4dDim0Uint8Test) |
| 748 | ARMNN_AUTO_TEST_CASE_WITH_THF(Concat4dDim1Uint8, Concat4dDim1Uint8Test) |
| 749 | ARMNN_AUTO_TEST_CASE_WITH_THF(Concat4dDim3Uint8, Concat4dDim3Uint8Test, false) |
narpra01 | 5cdda35 | 2018-11-19 15:30:27 +0000 | [diff] [blame] | 750 | |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 751 | ARMNN_AUTO_TEST_CASE_WITH_THF(Concat4dDiffShapeDim0, Concat4dDiffShapeDim0Test) |
| 752 | ARMNN_AUTO_TEST_CASE_WITH_THF(Concat4dDiffShapeDim1, Concat4dDiffShapeDim1Test) |
| 753 | ARMNN_AUTO_TEST_CASE_WITH_THF(Concat4dDiffShapeDim3, Concat4dDiffShapeDim3Test, false) |
| 754 | ARMNN_AUTO_TEST_CASE_WITH_THF(Concat4dDiffShapeDim0Uint8, Concat4dDiffShapeDim0Uint8Test) |
| 755 | ARMNN_AUTO_TEST_CASE_WITH_THF(Concat4dDiffShapeDim1Uint8, Concat4dDiffShapeDim1Uint8Test) |
| 756 | ARMNN_AUTO_TEST_CASE_WITH_THF(Concat4dDiffShapeDim3Uint8, Concat4dDiffShapeDim3Uint8Test, false) |
Sadik Armagan | 0d4863d | 2019-10-09 14:26:32 +0100 | [diff] [blame] | 757 | |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 758 | // L2 Normalization |
Finn Williams | c43de6a | 2020-08-27 11:13:25 +0100 | [diff] [blame] | 759 | ARMNN_AUTO_TEST_CASE_WITH_THF(L2Normalization1d, L2Normalization1dTest, DataLayout::NCHW) |
| 760 | ARMNN_AUTO_TEST_CASE_WITH_THF(L2Normalization2d, L2Normalization2dTest, DataLayout::NCHW) |
| 761 | ARMNN_AUTO_TEST_CASE_WITH_THF(L2Normalization3d, L2Normalization3dTest, DataLayout::NCHW) |
| 762 | ARMNN_AUTO_TEST_CASE_WITH_THF(L2Normalization4d, L2Normalization4dTest, DataLayout::NCHW) |
Matteo Martincigh | 539b44d | 2018-10-01 09:26:39 +0100 | [diff] [blame] | 763 | |
Colm Donelan | ade8c1d | 2021-03-24 14:51:31 +0000 | [diff] [blame] | 764 | // Moved to NeonLayerTests_NDK_Bug.cpp |
| 765 | //ARMNN_AUTO_TEST_CASE_WITH_THF(L2Normalization1dNhwc, L2Normalization1dTest, DataLayout::NHWC) |
Finn Williams | c43de6a | 2020-08-27 11:13:25 +0100 | [diff] [blame] | 766 | ARMNN_AUTO_TEST_CASE_WITH_THF(L2Normalization2dNhwc, L2Normalization2dTest, DataLayout::NHWC) |
| 767 | ARMNN_AUTO_TEST_CASE_WITH_THF(L2Normalization3dNhwc, L2Normalization3dTest, DataLayout::NHWC) |
| 768 | ARMNN_AUTO_TEST_CASE_WITH_THF(L2Normalization4dNhwc, L2Normalization4dTest, DataLayout::NHWC) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 769 | |
Finn Williams | c43de6a | 2020-08-27 11:13:25 +0100 | [diff] [blame] | 770 | ARMNN_AUTO_TEST_CASE_WITH_THF(L2Normalization2dShape, L2Normalization2dShapeTest); |
Matthew Jackson | 82b15ed | 2019-07-25 16:14:30 +0100 | [diff] [blame] | 771 | |
Finn Williams | c43de6a | 2020-08-27 11:13:25 +0100 | [diff] [blame] | 772 | ARMNN_AUTO_TEST_CASE_WITH_THF(L2NormalizationDefaultEpsilon, L2NormalizationDefaultEpsilonTest, DataLayout::NCHW) |
| 773 | ARMNN_AUTO_TEST_CASE_WITH_THF(L2NormalizationNonDefaultEpsilon, L2NormalizationNonDefaultEpsilonTest, DataLayout::NCHW) |
Ferran Balaguer | 0c64f46 | 2019-06-18 16:32:30 +0100 | [diff] [blame] | 774 | |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 775 | // Floor |
Finn Williams | 7faf9a8 | 2020-08-27 10:37:36 +0100 | [diff] [blame] | 776 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleFloor, SimpleFloorTest<DataType::Float32>) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 777 | |
Teresa Charlin | f540eb8 | 2020-04-10 19:24:55 +0100 | [diff] [blame] | 778 | // Gather |
Finn Williams | c43de6a | 2020-08-27 11:13:25 +0100 | [diff] [blame] | 779 | ARMNN_AUTO_TEST_CASE_WITH_THF(Gather1dParamsFloat32, Gather1dParamsFloat32Test) |
| 780 | ARMNN_AUTO_TEST_CASE_WITH_THF(Gather1dParamsUint8, Gather1dParamsUint8Test) |
| 781 | ARMNN_AUTO_TEST_CASE_WITH_THF(GatherMultiDimParamsFloat32, GatherMultiDimParamsFloat32Test) |
| 782 | ARMNN_AUTO_TEST_CASE_WITH_THF(GatherMultiDimParamsUint8, GatherMultiDimParamsUint8Test) |
Teresa Charlin | f540eb8 | 2020-04-10 19:24:55 +0100 | [diff] [blame] | 783 | |
Teresa Charlin | bd22c7d | 2022-04-26 18:14:12 +0100 | [diff] [blame] | 784 | // GatherNd |
| 785 | ARMNN_AUTO_TEST_CASE_WITH_THF(GatherNd2dFloat32, SimpleGatherNd2dTest<DataType::Float32>) |
| 786 | ARMNN_AUTO_TEST_CASE_WITH_THF(GatherNd3dFloat32, SimpleGatherNd3dTest<DataType::Float32>) |
| 787 | ARMNN_AUTO_TEST_CASE_WITH_THF(GatherNd4dFloat32, SimpleGatherNd4dTest<DataType::Float32>) |
| 788 | ARMNN_AUTO_TEST_CASE_WITH_THF(GatherNd2dInt8, SimpleGatherNd2dTest<DataType::QAsymmS8>) |
| 789 | ARMNN_AUTO_TEST_CASE_WITH_THF(GatherNd3dInt8, SimpleGatherNd3dTest<DataType::QAsymmS8>) |
| 790 | ARMNN_AUTO_TEST_CASE_WITH_THF(GatherNd4dInt8, SimpleGatherNd4dTest<DataType::QAsymmS8>) |
| 791 | ARMNN_AUTO_TEST_CASE_WITH_THF(GatherNd2dInt32, SimpleGatherNd2dTest<DataType::Signed32>) |
| 792 | ARMNN_AUTO_TEST_CASE_WITH_THF(GatherNd3dInt32, SimpleGatherNd3dTest<DataType::Signed32>) |
| 793 | ARMNN_AUTO_TEST_CASE_WITH_THF(GatherNd4dInt32, SimpleGatherNd4dTest<DataType::Signed32>) |
| 794 | |
Teresa Charlin | cedd34f | 2020-03-30 11:17:30 +0100 | [diff] [blame] | 795 | // Equal |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 796 | ARMNN_AUTO_TEST_CASE_WITH_THF(EqualSimple, EqualSimpleTest) |
| 797 | ARMNN_AUTO_TEST_CASE_WITH_THF(EqualBroadcast1Element, EqualBroadcast1ElementTest) |
| 798 | ARMNN_AUTO_TEST_CASE_WITH_THF(EqualBroadcast1dVector, EqualBroadcast1dVectorTest) |
Teresa Charlin | cedd34f | 2020-03-30 11:17:30 +0100 | [diff] [blame] | 799 | |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 800 | ARMNN_AUTO_TEST_CASE_WITH_THF(EqualSimpleUint8, EqualSimpleUint8Test) |
| 801 | ARMNN_AUTO_TEST_CASE_WITH_THF(EqualBroadcast1ElementUint8, EqualBroadcast1ElementUint8Test) |
| 802 | ARMNN_AUTO_TEST_CASE_WITH_THF(EqualBroadcast1dVectorUint8, EqualBroadcast1dVectorUint8Test) |
Teresa Charlin | cedd34f | 2020-03-30 11:17:30 +0100 | [diff] [blame] | 803 | |
kevmay01 | eed8592 | 2019-01-28 08:37:25 +0000 | [diff] [blame] | 804 | // Greater |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 805 | ARMNN_AUTO_TEST_CASE_WITH_THF(GreaterSimple, GreaterSimpleTest) |
| 806 | ARMNN_AUTO_TEST_CASE_WITH_THF(GreaterBroadcast1Element, GreaterBroadcast1ElementTest) |
| 807 | ARMNN_AUTO_TEST_CASE_WITH_THF(GreaterBroadcast1dVector, GreaterBroadcast1dVectorTest) |
Aron Virginas-Tar | 3bc00ec | 2019-10-18 15:42:58 +0100 | [diff] [blame] | 808 | |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 809 | ARMNN_AUTO_TEST_CASE_WITH_THF(GreaterSimpleUint8, GreaterSimpleUint8Test) |
| 810 | ARMNN_AUTO_TEST_CASE_WITH_THF(GreaterBroadcast1ElementUint8, GreaterBroadcast1ElementUint8Test) |
| 811 | ARMNN_AUTO_TEST_CASE_WITH_THF(GreaterBroadcast1dVectorUint8, GreaterBroadcast1dVectorUint8Test) |
kevmay01 | eed8592 | 2019-01-28 08:37:25 +0000 | [diff] [blame] | 812 | |
Teresa Charlin | cedd34f | 2020-03-30 11:17:30 +0100 | [diff] [blame] | 813 | // GreaterOrEqual |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 814 | ARMNN_AUTO_TEST_CASE_WITH_THF(GreaterOrEqualSimple, GreaterOrEqualSimpleTest) |
| 815 | ARMNN_AUTO_TEST_CASE_WITH_THF(GreaterOrEqualBroadcast1Element, GreaterOrEqualBroadcast1ElementTest) |
| 816 | ARMNN_AUTO_TEST_CASE_WITH_THF(GreaterOrEqualBroadcast1dVector, GreaterOrEqualBroadcast1dVectorTest) |
Teresa Charlin | cedd34f | 2020-03-30 11:17:30 +0100 | [diff] [blame] | 817 | |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 818 | ARMNN_AUTO_TEST_CASE_WITH_THF(GreaterOrEqualSimpleUint8, GreaterOrEqualSimpleUint8Test) |
| 819 | ARMNN_AUTO_TEST_CASE_WITH_THF(GreaterOrEqualBroadcast1ElementUint8, GreaterOrEqualBroadcast1ElementUint8Test) |
| 820 | ARMNN_AUTO_TEST_CASE_WITH_THF(GreaterOrEqualBroadcast1dVectorUint8, GreaterOrEqualBroadcast1dVectorUint8Test) |
Teresa Charlin | cedd34f | 2020-03-30 11:17:30 +0100 | [diff] [blame] | 821 | |
| 822 | // Less |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 823 | ARMNN_AUTO_TEST_CASE_WITH_THF(LessSimple, LessSimpleTest) |
| 824 | ARMNN_AUTO_TEST_CASE_WITH_THF(LessBroadcast1Element, LessBroadcast1ElementTest) |
| 825 | ARMNN_AUTO_TEST_CASE_WITH_THF(LessBroadcast1dVector, LessBroadcast1dVectorTest) |
Teresa Charlin | cedd34f | 2020-03-30 11:17:30 +0100 | [diff] [blame] | 826 | |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 827 | ARMNN_AUTO_TEST_CASE_WITH_THF(LessSimpleUint8, LessSimpleUint8Test) |
| 828 | ARMNN_AUTO_TEST_CASE_WITH_THF(LessBroadcast1ElementUint8, LessBroadcast1ElementUint8Test) |
| 829 | ARMNN_AUTO_TEST_CASE_WITH_THF(LessBroadcast1dVectorUint8, LessBroadcast1dVectorUint8Test) |
Teresa Charlin | cedd34f | 2020-03-30 11:17:30 +0100 | [diff] [blame] | 830 | |
| 831 | // LessOrEqual |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 832 | ARMNN_AUTO_TEST_CASE_WITH_THF(LessOrEqualSimple, LessOrEqualSimpleTest) |
| 833 | ARMNN_AUTO_TEST_CASE_WITH_THF(LessOrEqualBroadcast1Element, LessOrEqualBroadcast1ElementTest) |
| 834 | ARMNN_AUTO_TEST_CASE_WITH_THF(LessOrEqualBroadcast1dVector, LessOrEqualBroadcast1dVectorTest) |
Teresa Charlin | cedd34f | 2020-03-30 11:17:30 +0100 | [diff] [blame] | 835 | |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 836 | ARMNN_AUTO_TEST_CASE_WITH_THF(LessOrEqualSimpleUint8, LessOrEqualSimpleUint8Test) |
| 837 | ARMNN_AUTO_TEST_CASE_WITH_THF(LessOrEqualBroadcast1ElementUint8, LessOrEqualBroadcast1ElementUint8Test) |
| 838 | ARMNN_AUTO_TEST_CASE_WITH_THF(LessOrEqualBroadcast1dVectorUint8, LessOrEqualBroadcast1dVectorUint8Test) |
Teresa Charlin | cedd34f | 2020-03-30 11:17:30 +0100 | [diff] [blame] | 839 | |
| 840 | // NotEqual |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 841 | ARMNN_AUTO_TEST_CASE_WITH_THF(NotEqualSimple, NotEqualSimpleTest) |
| 842 | ARMNN_AUTO_TEST_CASE_WITH_THF(NotEqualBroadcast1Element, NotEqualBroadcast1ElementTest) |
| 843 | ARMNN_AUTO_TEST_CASE_WITH_THF(NotEqualBroadcast1dVector, NotEqualBroadcast1dVectorTest) |
Teresa Charlin | cedd34f | 2020-03-30 11:17:30 +0100 | [diff] [blame] | 844 | |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 845 | ARMNN_AUTO_TEST_CASE_WITH_THF(NotEqualSimpleUint8, NotEqualSimpleUint8Test) |
| 846 | ARMNN_AUTO_TEST_CASE_WITH_THF(NotEqualBroadcast1ElementUint8, NotEqualBroadcast1ElementUint8Test) |
| 847 | ARMNN_AUTO_TEST_CASE_WITH_THF(NotEqualBroadcast1dVectorUint8, NotEqualBroadcast1dVectorUint8Test) |
Teresa Charlin | cedd34f | 2020-03-30 11:17:30 +0100 | [diff] [blame] | 848 | |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 849 | // Reshape |
Finn Williams | ec36d3e | 2020-08-28 13:17:05 +0100 | [diff] [blame] | 850 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleReshapeFloat32, SimpleReshapeTest<armnn::DataType::Float32>) |
| 851 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleReshapeInt8, SimpleReshapeTest<armnn::DataType::QAsymmS8>) |
| 852 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleReshapeUint8, SimpleReshapeTest<armnn::DataType::QAsymmU8>) |
| 853 | ARMNN_AUTO_TEST_CASE_WITH_THF(Reshape5d, Reshape5dTest<armnn::DataType::Float32>) |
Narumol Prangnawarat | 0c95f4c | 2020-11-18 16:52:07 +0000 | [diff] [blame] | 854 | ARMNN_AUTO_TEST_CASE_WITH_THF(ReshapeBoolean, ReshapeBooleanTest) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 855 | |
Teresa Charlin | f9de771 | 2021-10-28 11:31:16 +0100 | [diff] [blame] | 856 | // Pad - Constant |
Finn Williams | 826a543 | 2020-08-27 16:15:20 +0100 | [diff] [blame] | 857 | ARMNN_AUTO_TEST_CASE_WITH_THF(PadFloat322d, PadFloat322dTest) |
| 858 | ARMNN_AUTO_TEST_CASE_WITH_THF(PadFloat322dCustomPadding, PadFloat322dCustomPaddingTest) |
| 859 | ARMNN_AUTO_TEST_CASE_WITH_THF(PadFloat323d, PadFloat323dTest) |
| 860 | ARMNN_AUTO_TEST_CASE_WITH_THF(PadFloat324d, PadFloat324dTest) |
Éanna Ó Catháin | 1205574 | 2019-01-25 10:01:40 +0000 | [diff] [blame] | 861 | |
Finn Williams | 826a543 | 2020-08-27 16:15:20 +0100 | [diff] [blame] | 862 | ARMNN_AUTO_TEST_CASE_WITH_THF(PadUint82d, PadUint82dTest) |
| 863 | ARMNN_AUTO_TEST_CASE_WITH_THF(PadUint82dCustomPadding, PadUint82dCustomPaddingTest) |
| 864 | ARMNN_AUTO_TEST_CASE_WITH_THF(PadUint83d, PadUint83dTest) |
| 865 | ARMNN_AUTO_TEST_CASE_WITH_THF(PadUint84d, PadUint84dTest) |
Teresa Charlin | ec8e198 | 2019-07-02 16:24:09 +0100 | [diff] [blame] | 866 | |
Finn Williams | 826a543 | 2020-08-27 16:15:20 +0100 | [diff] [blame] | 867 | ARMNN_AUTO_TEST_CASE_WITH_THF(Pad2dQSymm16, Pad2dTestCommon<DataType::QSymmS16>, 2.0f, 0, 0.0f) |
| 868 | ARMNN_AUTO_TEST_CASE_WITH_THF(Pad2dQSymm16CustomPadding, Pad2dTestCommon<DataType::QSymmS16>, 2.0f, 0, 1.0f) |
| 869 | ARMNN_AUTO_TEST_CASE_WITH_THF(Pad3dQSymm16, Pad3dTestCommon<DataType::QSymmS16>, 2.0f, 0) |
| 870 | ARMNN_AUTO_TEST_CASE_WITH_THF(Pad4dQSymm16, Pad4dTestCommon<DataType::QSymmS16>, 2.0f, 0) |
FinnWilliamsArm | 8b797a8 | 2019-07-09 16:01:41 +0100 | [diff] [blame] | 871 | |
Teresa Charlin | f9de771 | 2021-10-28 11:31:16 +0100 | [diff] [blame] | 872 | // Pad - Symmetric & Reflect |
| 873 | ARMNN_AUTO_TEST_CASE_WITH_THF(PadSymmetric2dFloat32, PadSymmetric2dFloat32Test) |
| 874 | ARMNN_AUTO_TEST_CASE_WITH_THF(PadReflect2dFloat32, PadReflect2dFloat32Test) |
| 875 | ARMNN_AUTO_TEST_CASE_WITH_THF(PadSymmetric3dFloat32, PadSymmetric3dFloat32Test) |
| 876 | ARMNN_AUTO_TEST_CASE_WITH_THF(PadReflect3dFloat32, PadReflect3dFloat32Test) |
| 877 | ARMNN_AUTO_TEST_CASE_WITH_THF(PadSymmetric3dUint8, PadSymmetric3dUint8Test) |
| 878 | ARMNN_AUTO_TEST_CASE_WITH_THF(PadReflect3dUint8, PadReflect3dUint8Test) |
| 879 | ARMNN_AUTO_TEST_CASE_WITH_THF(PadSymmetric3dInt8, PadSymmetric3dInt8Test) |
| 880 | ARMNN_AUTO_TEST_CASE_WITH_THF(PadReflect3dInt8, PadReflect3dInt8Test) |
| 881 | ARMNN_AUTO_TEST_CASE_WITH_THF(PadSymmetric4dFloat32, PadSymmetric4dFloat32Test) |
| 882 | ARMNN_AUTO_TEST_CASE_WITH_THF(PadReflect4dFloat32, PadReflect4dFloat32Test) |
| 883 | ARMNN_AUTO_TEST_CASE_WITH_THF(PadSymmetric4dUint8, PadSymmetric4dUint8Test) |
| 884 | ARMNN_AUTO_TEST_CASE_WITH_THF(PadReflect4dUint8, PadReflect4dUint8Test) |
| 885 | ARMNN_AUTO_TEST_CASE_WITH_THF(PadSymmetric4dInt8, PadSymmetric4dInt8Test) |
| 886 | ARMNN_AUTO_TEST_CASE_WITH_THF(PadReflect4dInt8, PadReflect4dInt8Test) |
| 887 | |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 888 | // Permute |
Finn Williams | 826a543 | 2020-08-27 16:15:20 +0100 | [diff] [blame] | 889 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimplePermuteFloat32, SimplePermuteTest<DataType::Float32>) |
| 890 | ARMNN_AUTO_TEST_CASE_WITH_THF(PermuteFloat32ValueSet1Test, PermuteValueSet1Test<DataType::Float32>) |
| 891 | ARMNN_AUTO_TEST_CASE_WITH_THF(PermuteFloat32ValueSet2Test, PermuteValueSet2Test<DataType::Float32>) |
| 892 | ARMNN_AUTO_TEST_CASE_WITH_THF(PermuteFloat32ValueSet3Test, PermuteValueSet3Test<DataType::Float32>) |
| 893 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimplePermuteQASymmS8, SimplePermuteTest<DataType::QAsymmS8>) |
| 894 | ARMNN_AUTO_TEST_CASE_WITH_THF(PermuteQASymmS8ValueSet1Test, PermuteValueSet1Test<DataType::QAsymmS8>) |
| 895 | ARMNN_AUTO_TEST_CASE_WITH_THF(PermuteQASymmS8ValueSet2Test, PermuteValueSet2Test<DataType::QAsymmS8>) |
| 896 | ARMNN_AUTO_TEST_CASE_WITH_THF(PermuteQASymmS8ValueSet3Test, PermuteValueSet3Test<DataType::QAsymmS8>) |
| 897 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimplePermuteQASymm8, SimplePermuteTest<DataType::QAsymmU8>) |
| 898 | ARMNN_AUTO_TEST_CASE_WITH_THF(PermuteQASymm8ValueSet1Test, PermuteValueSet1Test<DataType::QAsymmU8>) |
| 899 | ARMNN_AUTO_TEST_CASE_WITH_THF(PermuteQASymm8ValueSet2Test, PermuteValueSet2Test<DataType::QAsymmU8>) |
| 900 | ARMNN_AUTO_TEST_CASE_WITH_THF(PermuteQASymm8ValueSet3Test, PermuteValueSet3Test<DataType::QAsymmU8>) |
surmeh01 | bceff2f | 2018-03-29 16:29:27 +0100 | [diff] [blame] | 901 | |
Les Bell | de9011b | 2018-10-03 10:37:52 +0100 | [diff] [blame] | 902 | // Lstm |
Finn Williams | c43de6a | 2020-08-27 11:13:25 +0100 | [diff] [blame] | 903 | ARMNN_AUTO_TEST_CASE_WITH_THF(LstmLayerFloat32WithCifgWithPeepholeNoProjection, |
| 904 | LstmLayerFloat32WithCifgWithPeepholeNoProjectionTest) |
| 905 | ARMNN_AUTO_TEST_CASE_WITH_THF(LstmLayerFloat32NoCifgNoPeepholeNoProjection, |
| 906 | LstmLayerFloat32NoCifgNoPeepholeNoProjectionTest) |
| 907 | ARMNN_AUTO_TEST_CASE_WITH_THF(LstmLayerFloat32NoCifgWithPeepholeWithProjection, |
| 908 | LstmLayerFloat32NoCifgWithPeepholeWithProjectionTest) |
Colm Donelan | ade8c1d | 2021-03-24 14:51:31 +0000 | [diff] [blame] | 909 | // Moved to NeonLayerTests_NDK_Bug.cpp |
| 910 | //ARMNN_AUTO_TEST_CASE_WITH_THF(LstmLayerFloat32NoCifgWithPeepholeWithProjectionWithLayerNorm, |
| 911 | // LstmLayerFloat32NoCifgWithPeepholeWithProjectionWithLayerNormTest) |
Les Bell | de9011b | 2018-10-03 10:37:52 +0100 | [diff] [blame] | 912 | |
James Conroy | cc34093 | 2020-05-12 18:08:52 +0100 | [diff] [blame] | 913 | // QLstm |
Finn Williams | c43de6a | 2020-08-27 11:13:25 +0100 | [diff] [blame] | 914 | ARMNN_AUTO_TEST_CASE_WITH_THF(QLstm, QLstmTest) |
| 915 | ARMNN_AUTO_TEST_CASE_WITH_THF(QLstm1, QLstmTest1) |
| 916 | ARMNN_AUTO_TEST_CASE_WITH_THF(QLstm2, QLstmTest2) |
James Conroy | cc34093 | 2020-05-12 18:08:52 +0100 | [diff] [blame] | 917 | |
| 918 | // QuantizedLstm |
Finn Williams | c43de6a | 2020-08-27 11:13:25 +0100 | [diff] [blame] | 919 | ARMNN_AUTO_TEST_CASE_WITH_THF(QuantizedLstm, QuantizedLstmTest) |
Francis Murtagh | 4fc3c48 | 2019-08-02 13:20:54 +0100 | [diff] [blame] | 920 | |
Cathal Corbett | fd5bec4 | 2022-03-03 15:13:23 +0000 | [diff] [blame] | 921 | // Unidirectional Sequence Lstm |
| 922 | ARMNN_AUTO_TEST_CASE_WITH_THF(UnidirectionalSequenceLstmLayerFloat32TimeMajorSingleBatch, |
| 923 | UnidirectionalSequenceLstmLayerFloat32TimeMajorSingleBatchTest) |
| 924 | ARMNN_AUTO_TEST_CASE_WITH_THF(UnidirectionalSequenceLstmLayerFloat32BatchMajorSingleBatch, |
| 925 | UnidirectionalSequenceLstmLayerFloat32BatchMajorSingleBatchTest) |
| 926 | ARMNN_AUTO_TEST_CASE_WITH_THF(UnidirectionalSequenceLstmLayerFloat32, |
| 927 | UnidirectionalSequenceLstmLayerFloat32Test) |
| 928 | ARMNN_AUTO_TEST_CASE_WITH_THF(UnidirectionalSequenceLstmLayerFloat32TimeMajor, |
| 929 | UnidirectionalSequenceLstmLayerFloat32TimeMajorTest) |
| 930 | ARMNN_AUTO_TEST_CASE_WITH_THF(UnidirectionalSequenceLstmLayerNoCifgWithPeepholeWithProjection, |
| 931 | UnidirectionalSequenceLstmLayerNoCifgWithPeepholeWithProjectionTest) |
Cathal Corbett | d83ffe0 | 2022-03-22 15:46:02 +0000 | [diff] [blame] | 932 | // Moved to NeonLayerTests_NDK_Bug.cpp |
| 933 | //ARMNN_AUTO_TEST_CASE_WITH_THF( |
| 934 | // UnidirectionalSequenceLstmLayerNoCifgWithPeepholeWithProjectionWithLayerNorm, |
| 935 | // UnidirectionalSequenceLstmLayerNoCifgWithPeepholeWithProjectionWithLayerNormTest) |
Cathal Corbett | fd5bec4 | 2022-03-03 15:13:23 +0000 | [diff] [blame] | 936 | ARMNN_AUTO_TEST_CASE_WITH_THF(UnidirectionalSequenceLstmWithCifgWithPeepholeNoProjection, |
| 937 | UnidirectionalSequenceLstmWithCifgWithPeepholeNoProjectionTest) |
| 938 | |
Matthew Bentham | fd89996 | 2018-12-31 15:49:42 +0000 | [diff] [blame] | 939 | // Mean |
Finn Williams | 826a543 | 2020-08-27 16:15:20 +0100 | [diff] [blame] | 940 | ARMNN_AUTO_TEST_CASE_WITH_THF(MeanSimpleFloat32, MeanSimpleTest<DataType::Float32>) |
| 941 | ARMNN_AUTO_TEST_CASE_WITH_THF(MeanSimpleAxisFloat32, MeanSimpleAxisTest<DataType::Float32>) |
| 942 | ARMNN_AUTO_TEST_CASE_WITH_THF(MeanKeepDimsFloat32, MeanKeepDimsTest<DataType::Float32>) |
| 943 | ARMNN_AUTO_TEST_CASE_WITH_THF(MeanMultipleDimsFloat32, MeanMultipleDimsTest<DataType::Float32>) |
| 944 | ARMNN_AUTO_TEST_CASE_WITH_THF(MeanVts1Float32, MeanVts1Test<DataType::Float32>) |
| 945 | ARMNN_AUTO_TEST_CASE_WITH_THF(MeanVts2Float32, MeanVts2Test<DataType::Float32>) |
| 946 | ARMNN_AUTO_TEST_CASE_WITH_THF(MeanVts3Float32, MeanVts3Test<DataType::Float32>) |
Matthew Bentham | fd89996 | 2018-12-31 15:49:42 +0000 | [diff] [blame] | 947 | |
Finn Williams | 826a543 | 2020-08-27 16:15:20 +0100 | [diff] [blame] | 948 | ARMNN_AUTO_TEST_CASE_WITH_THF(MeanSimpleQuantisedAsymmS8, MeanSimpleTest<DataType::QAsymmS8>) |
| 949 | ARMNN_AUTO_TEST_CASE_WITH_THF(MeanSimpleAxisQuantisedAsymmS8, MeanSimpleAxisTest<DataType::QAsymmS8>) |
| 950 | ARMNN_AUTO_TEST_CASE_WITH_THF(MeanKeepDimsQuantisedAsymmS8, MeanKeepDimsTest<DataType::QAsymmS8>) |
| 951 | ARMNN_AUTO_TEST_CASE_WITH_THF(MeanMultipleDimsQuantisedAsymmS8, MeanMultipleDimsTest<DataType::QAsymmS8>) |
| 952 | ARMNN_AUTO_TEST_CASE_WITH_THF(MeanVts1QuantisedAsymmS8, MeanVts1Test<DataType::QAsymmS8>) |
| 953 | ARMNN_AUTO_TEST_CASE_WITH_THF(MeanVts2QuantisedAsymmS8, MeanVts2Test<DataType::QAsymmS8>) |
| 954 | ARMNN_AUTO_TEST_CASE_WITH_THF(MeanVts3QuantisedAsymmS8, MeanVts3Test<DataType::QAsymmS8>) |
Sadik Armagan | 303980c | 2020-04-17 12:45:14 +0100 | [diff] [blame] | 955 | |
Finn Williams | 826a543 | 2020-08-27 16:15:20 +0100 | [diff] [blame] | 956 | ARMNN_AUTO_TEST_CASE_WITH_THF(MeanSimpleQuantisedAsymm8, MeanSimpleTest<DataType::QAsymmU8>) |
| 957 | ARMNN_AUTO_TEST_CASE_WITH_THF(MeanSimpleAxisQuantisedAsymm8, MeanSimpleAxisTest<DataType::QAsymmU8>) |
| 958 | ARMNN_AUTO_TEST_CASE_WITH_THF(MeanKeepDimsQuantisedAsymm8, MeanKeepDimsTest<DataType::QAsymmU8>) |
| 959 | ARMNN_AUTO_TEST_CASE_WITH_THF(MeanMultipleDimsQuantisedAsymm8, MeanMultipleDimsTest<DataType::QAsymmU8>) |
| 960 | ARMNN_AUTO_TEST_CASE_WITH_THF(MeanVts1QuantisedAsymm8, MeanVts1Test<DataType::QAsymmU8>) |
| 961 | ARMNN_AUTO_TEST_CASE_WITH_THF(MeanVts2QuantisedAsymm8, MeanVts2Test<DataType::QAsymmU8>) |
| 962 | ARMNN_AUTO_TEST_CASE_WITH_THF(MeanVts3QuantisedAsymm8, MeanVts3Test<DataType::QAsymmU8>) |
Matthew Bentham | fd89996 | 2018-12-31 15:49:42 +0000 | [diff] [blame] | 963 | |
Nattapat Chaimanowong | 4e6597a | 2018-12-20 14:14:06 +0000 | [diff] [blame] | 964 | // Max |
Keith Davis | 33a626f | 2020-08-27 15:38:12 +0100 | [diff] [blame] | 965 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleMaximum, MaximumSimpleTest) |
| 966 | ARMNN_AUTO_TEST_CASE_WITH_THF(MaximumBroadcast1Element, MaximumBroadcast1ElementTest) |
| 967 | ARMNN_AUTO_TEST_CASE_WITH_THF(MaximumBroadcast1DVector, MaximumBroadcast1DVectorTest) |
| 968 | ARMNN_AUTO_TEST_CASE_WITH_THF(MaximumUint8, MaximumUint8Test) |
| 969 | ARMNN_AUTO_TEST_CASE_WITH_THF(MaximumBroadcast1ElementUint8, MaximumBroadcast1ElementUint8Test) |
| 970 | ARMNN_AUTO_TEST_CASE_WITH_THF(MaximumBroadcast1DVectorUint8, MaximumBroadcast1DVectorUint8Test) |
Nattapat Chaimanowong | 4e6597a | 2018-12-20 14:14:06 +0000 | [diff] [blame] | 971 | |
Conor Kennedy | 54b2169 | 2019-01-09 07:57:38 +0000 | [diff] [blame] | 972 | // Min |
Keith Davis | 33a626f | 2020-08-27 15:38:12 +0100 | [diff] [blame] | 973 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleMinimum1, MinimumBroadcast1ElementTest1) |
| 974 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleMinimum2, MinimumBroadcast1ElementTest2) |
| 975 | ARMNN_AUTO_TEST_CASE_WITH_THF(Minimum1DVectorUint8, MinimumBroadcast1DVectorUint8Test) |
Conor Kennedy | 54b2169 | 2019-01-09 07:57:38 +0000 | [diff] [blame] | 976 | |
narpra01 | 55a97bc | 2018-10-02 14:35:53 +0100 | [diff] [blame] | 977 | // Normalization |
Finn Williams | 826a543 | 2020-08-27 16:15:20 +0100 | [diff] [blame] | 978 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleNormalizationAcross, SimpleNormalizationAcrossTest) |
| 979 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleNormalizationWithin, SimpleNormalizationWithinTest) |
| 980 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleNormalizationAcrossNhwc, SimpleNormalizationAcrossNhwcTest) |
Sadik Armagan | 483c811 | 2021-06-01 09:24:52 +0100 | [diff] [blame] | 981 | ARMNN_AUTO_TEST_CASE_WITH_THF(AcrossChannelNormalization, AcrossChannelNormalizationTest) |
narpra01 | 55a97bc | 2018-10-02 14:35:53 +0100 | [diff] [blame] | 982 | |
Sadik Armagan | c625f00 | 2018-12-17 11:32:16 +0000 | [diff] [blame] | 983 | // Resize Bilinear - NCHW data layout |
Finn Williams | ec36d3e | 2020-08-28 13:17:05 +0100 | [diff] [blame] | 984 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleResizeBilinear, SimpleResizeBilinearTest<DataType::Float32>, DataLayout::NCHW) |
| 985 | ARMNN_AUTO_TEST_CASE_WITH_THF(ResizeBilinearNop, ResizeBilinearNopTest<DataType::Float32>, DataLayout::NCHW) |
| 986 | ARMNN_AUTO_TEST_CASE_WITH_THF(ResizeBilinearSqMin, ResizeBilinearSqMinTest<DataType::Float32>, DataLayout::NCHW) |
| 987 | ARMNN_AUTO_TEST_CASE_WITH_THF(ResizeBilinearMin, ResizeBilinearMinTest<DataType::Float32>, DataLayout::NCHW) |
| 988 | ARMNN_AUTO_TEST_CASE_WITH_THF(ResizeBilinearMag, ResizeBilinearMagTest<DataType::Float32>, DataLayout::NCHW) |
Sadik Armagan | c625f00 | 2018-12-17 11:32:16 +0000 | [diff] [blame] | 989 | |
Finn Williams | ec36d3e | 2020-08-28 13:17:05 +0100 | [diff] [blame] | 990 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleResizeBilinearUint8, |
| 991 | SimpleResizeBilinearTest<DataType::QAsymmU8>, |
| 992 | DataLayout::NCHW) |
| 993 | ARMNN_AUTO_TEST_CASE_WITH_THF(ResizeBilinearNopUint8, |
| 994 | ResizeBilinearNopTest<DataType::QAsymmU8>, |
| 995 | DataLayout::NCHW) |
| 996 | ARMNN_AUTO_TEST_CASE_WITH_THF(ResizeBilinearSqMinUint8, |
| 997 | ResizeBilinearSqMinTest<DataType::QAsymmU8>, |
| 998 | DataLayout::NCHW) |
| 999 | ARMNN_AUTO_TEST_CASE_WITH_THF(ResizeBilinearMinUint8, |
| 1000 | ResizeBilinearMinTest<DataType::QAsymmU8>, |
| 1001 | DataLayout::NCHW) |
| 1002 | ARMNN_AUTO_TEST_CASE_WITH_THF(ResizeBilinearMagUint8, |
| 1003 | ResizeBilinearMagTest<DataType::QAsymmU8>, |
| 1004 | DataLayout::NCHW) |
Conor Kennedy | dc1c082 | 2019-02-01 07:23:17 +0000 | [diff] [blame] | 1005 | |
Finn Williams | ec36d3e | 2020-08-28 13:17:05 +0100 | [diff] [blame] | 1006 | ARMNN_AUTO_TEST_CASE_WITH_THF(HalfPixelCentersResizeBilinear, |
| 1007 | HalfPixelCentersResizeBilinearTest<DataType::Float32>, |
| 1008 | DataLayout::NCHW) |
| 1009 | ARMNN_AUTO_TEST_CASE_WITH_THF(AlignCornersResizeBilinear, |
| 1010 | AlignCornersResizeBilinearTest<DataType::Float32>, |
| 1011 | DataLayout::NCHW) |
| 1012 | ARMNN_AUTO_TEST_CASE_WITH_THF(HalfPixelCentersResizeBilinearInt8, |
| 1013 | HalfPixelCentersResizeBilinearTest<DataType::QAsymmS8>, |
| 1014 | DataLayout::NCHW) |
| 1015 | ARMNN_AUTO_TEST_CASE_WITH_THF(AlignCornersResizeBilinearInt8, |
| 1016 | AlignCornersResizeBilinearTest<DataType::QAsymmS8>, |
| 1017 | DataLayout::NCHW) |
| 1018 | ARMNN_AUTO_TEST_CASE_WITH_THF(HalfPixelCentersResizeBilinearUint8, |
| 1019 | HalfPixelCentersResizeBilinearTest<DataType::QAsymmU8>, |
| 1020 | DataLayout::NCHW) |
| 1021 | ARMNN_AUTO_TEST_CASE_WITH_THF(AlignCornersResizeBilinearUint8, |
| 1022 | AlignCornersResizeBilinearTest<DataType::QAsymmU8>, |
| 1023 | DataLayout::NCHW) |
Teresa Charlin | 686f45c | 2020-07-23 17:59:00 +0100 | [diff] [blame] | 1024 | |
Sadik Armagan | c625f00 | 2018-12-17 11:32:16 +0000 | [diff] [blame] | 1025 | // Resize Bilinear - NHWC data layout |
Finn Williams | ec36d3e | 2020-08-28 13:17:05 +0100 | [diff] [blame] | 1026 | ARMNN_AUTO_TEST_CASE_WITH_THF(ResizeBilinearNopNhwc, |
| 1027 | ResizeBilinearNopTest<DataType::Float32>, |
| 1028 | DataLayout::NHWC) |
| 1029 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleResizeBilinearNhwc, |
| 1030 | SimpleResizeBilinearTest<DataType::Float32>, |
| 1031 | DataLayout::NHWC) |
| 1032 | ARMNN_AUTO_TEST_CASE_WITH_THF(ResizeBilinearSqMinNhwc, |
| 1033 | ResizeBilinearSqMinTest<DataType::Float32>, |
| 1034 | DataLayout::NHWC) |
| 1035 | ARMNN_AUTO_TEST_CASE_WITH_THF(ResizeBilinearMinNhwc, |
| 1036 | ResizeBilinearMinTest<DataType::Float32>, |
| 1037 | DataLayout::NHWC) |
| 1038 | ARMNN_AUTO_TEST_CASE_WITH_THF(ResizeBilinearMagNhwc, |
| 1039 | ResizeBilinearMagTest<DataType::Float32>, |
| 1040 | DataLayout::NHWC) |
Ellen Norris-Thompson | c4223d1 | 2019-06-10 14:15:12 +0100 | [diff] [blame] | 1041 | |
Finn Williams | ec36d3e | 2020-08-28 13:17:05 +0100 | [diff] [blame] | 1042 | ARMNN_AUTO_TEST_CASE_WITH_THF(ResizeBilinearNopUint8Nhwc, |
| 1043 | ResizeBilinearNopTest<DataType::QAsymmU8>, |
| 1044 | DataLayout::NHWC) |
| 1045 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleResizeBilinearUint8Nhwc, |
| 1046 | SimpleResizeBilinearTest<DataType::QAsymmU8>, |
| 1047 | DataLayout::NHWC) |
| 1048 | ARMNN_AUTO_TEST_CASE_WITH_THF(ResizeBilinearSqMinUint8Nhwc, |
| 1049 | ResizeBilinearSqMinTest<DataType::QAsymmU8>, |
| 1050 | DataLayout::NHWC) |
| 1051 | ARMNN_AUTO_TEST_CASE_WITH_THF(ResizeBilinearMinUint8Nhwc, |
| 1052 | ResizeBilinearMinTest<DataType::QAsymmU8>, |
| 1053 | DataLayout::NHWC) |
| 1054 | ARMNN_AUTO_TEST_CASE_WITH_THF(ResizeBilinearMagUint8Nhwc, |
| 1055 | ResizeBilinearMagTest<DataType::QAsymmU8>, |
| 1056 | DataLayout::NHWC) |
Sadik Armagan | c625f00 | 2018-12-17 11:32:16 +0000 | [diff] [blame] | 1057 | |
Finn Williams | ec36d3e | 2020-08-28 13:17:05 +0100 | [diff] [blame] | 1058 | ARMNN_AUTO_TEST_CASE_WITH_THF(HalfPixelCentersResizeBilinearNhwc, |
| 1059 | HalfPixelCentersResizeBilinearTest<DataType::Float32>, |
| 1060 | DataLayout::NHWC) |
| 1061 | ARMNN_AUTO_TEST_CASE_WITH_THF(AlignCornersResizeBilinearNhwc, |
| 1062 | AlignCornersResizeBilinearTest<DataType::Float32>, |
| 1063 | DataLayout::NHWC) |
| 1064 | ARMNN_AUTO_TEST_CASE_WITH_THF(HalfPixelCentersResizeBilinearInt8Nhwc, |
| 1065 | HalfPixelCentersResizeBilinearTest<DataType::QAsymmS8>, |
| 1066 | DataLayout::NHWC) |
| 1067 | ARMNN_AUTO_TEST_CASE_WITH_THF(AlignCornersResizeBilinearInt8Nhwc, |
| 1068 | AlignCornersResizeBilinearTest<DataType::QAsymmS8>, |
| 1069 | DataLayout::NHWC) |
| 1070 | ARMNN_AUTO_TEST_CASE_WITH_THF(HalfPixelCentersResizeBilinearUint8Nhwc, |
| 1071 | HalfPixelCentersResizeBilinearTest<DataType::QAsymmU8>, |
| 1072 | DataLayout::NHWC) |
| 1073 | ARMNN_AUTO_TEST_CASE_WITH_THF(AlignCornersResizeBilinearUint8Nhwc, |
| 1074 | AlignCornersResizeBilinearTest<DataType::QAsymmU8>, |
| 1075 | DataLayout::NHWC) |
Teresa Charlin | 686f45c | 2020-07-23 17:59:00 +0100 | [diff] [blame] | 1076 | |
Ellen Norris-Thompson | 37e6868 | 2019-07-15 14:23:30 +0100 | [diff] [blame] | 1077 | // Resize NearestNeighbor - NCHW |
Finn Williams | ec36d3e | 2020-08-28 13:17:05 +0100 | [diff] [blame] | 1078 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleResizeNearestNeighbor, |
| 1079 | SimpleResizeNearestNeighborTest<DataType::Float32>, |
| 1080 | DataLayout::NCHW) |
| 1081 | ARMNN_AUTO_TEST_CASE_WITH_THF(ResizeNearestNeighborNop, |
| 1082 | ResizeNearestNeighborNopTest<DataType::Float32>, |
| 1083 | DataLayout::NCHW) |
| 1084 | ARMNN_AUTO_TEST_CASE_WITH_THF(ResizeNearestNeighborSqMin, |
| 1085 | ResizeNearestNeighborSqMinTest<DataType::Float32>, |
| 1086 | DataLayout::NCHW) |
| 1087 | ARMNN_AUTO_TEST_CASE_WITH_THF(ResizeNearestNeighborMin, |
| 1088 | ResizeNearestNeighborMinTest<DataType::Float32>, |
| 1089 | DataLayout::NCHW) |
| 1090 | ARMNN_AUTO_TEST_CASE_WITH_THF(ResizeNearestNeighborMag, |
| 1091 | ResizeNearestNeighborMagTest<DataType::Float32>, |
| 1092 | DataLayout::NCHW, 0.1f, 50, 0.1f, 50) |
Ellen Norris-Thompson | 37e6868 | 2019-07-15 14:23:30 +0100 | [diff] [blame] | 1093 | |
Finn Williams | ec36d3e | 2020-08-28 13:17:05 +0100 | [diff] [blame] | 1094 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleResizeNearestNeighborUint8, |
| 1095 | SimpleResizeNearestNeighborTest<DataType::QAsymmU8>, |
| 1096 | DataLayout::NCHW) |
| 1097 | ARMNN_AUTO_TEST_CASE_WITH_THF(ResizeNearestNeighborNopUint8, |
| 1098 | ResizeNearestNeighborNopTest<DataType::QAsymmU8>, |
| 1099 | DataLayout::NCHW) |
| 1100 | ARMNN_AUTO_TEST_CASE_WITH_THF(ResizeNearestNeighborSqMinUint8, |
| 1101 | ResizeNearestNeighborSqMinTest<DataType::QAsymmU8>, |
| 1102 | DataLayout::NCHW) |
| 1103 | ARMNN_AUTO_TEST_CASE_WITH_THF(ResizeNearestNeighborMinUint8, |
| 1104 | ResizeNearestNeighborMinTest<DataType::QAsymmU8>, |
| 1105 | DataLayout::NCHW) |
| 1106 | ARMNN_AUTO_TEST_CASE_WITH_THF(ResizeNearestNeighborMagUint8, |
| 1107 | ResizeNearestNeighborMagTest<DataType::QAsymmU8>, |
| 1108 | DataLayout::NCHW, 0.1f, 50, 0.1f, 50) |
Ellen Norris-Thompson | 37e6868 | 2019-07-15 14:23:30 +0100 | [diff] [blame] | 1109 | |
Finn Williams | ec36d3e | 2020-08-28 13:17:05 +0100 | [diff] [blame] | 1110 | ARMNN_AUTO_TEST_CASE_WITH_THF(HalfPixelCentersResizeNearestNeighbour, |
| 1111 | HalfPixelCentersResizeNearestNeighbourTest<DataType::Float32>, |
| 1112 | DataLayout::NCHW) |
| 1113 | ARMNN_AUTO_TEST_CASE_WITH_THF(AlignCornersResizeNearestNeighbour, |
| 1114 | AlignCornersResizeNearestNeighbourTest<DataType::Float32>, |
| 1115 | DataLayout::NCHW) |
| 1116 | ARMNN_AUTO_TEST_CASE_WITH_THF(HalfPixelCentersResizeNearestNeighbourInt8, |
| 1117 | HalfPixelCentersResizeNearestNeighbourTest<DataType::QAsymmS8>, |
| 1118 | DataLayout::NCHW) |
| 1119 | ARMNN_AUTO_TEST_CASE_WITH_THF(AlignCornersResizeNearestNeighbourInt8, |
| 1120 | AlignCornersResizeNearestNeighbourTest<DataType::QAsymmS8>, |
| 1121 | DataLayout::NCHW) |
| 1122 | ARMNN_AUTO_TEST_CASE_WITH_THF(HalfPixelCentersResizeNearestNeighbourUint8, |
| 1123 | HalfPixelCentersResizeNearestNeighbourTest<DataType::QAsymmU8>, |
| 1124 | DataLayout::NCHW) |
| 1125 | ARMNN_AUTO_TEST_CASE_WITH_THF(AlignCornersResizeNearestNeighbourUint8, |
| 1126 | AlignCornersResizeNearestNeighbourTest<DataType::QAsymmU8>, |
| 1127 | DataLayout::NCHW) |
Teresa Charlin | 686f45c | 2020-07-23 17:59:00 +0100 | [diff] [blame] | 1128 | |
Ellen Norris-Thompson | 37e6868 | 2019-07-15 14:23:30 +0100 | [diff] [blame] | 1129 | // Resize NearestNeighbor - NHWC |
Finn Williams | ec36d3e | 2020-08-28 13:17:05 +0100 | [diff] [blame] | 1130 | ARMNN_AUTO_TEST_CASE_WITH_THF(ResizeNearestNeighborNopNhwc, |
| 1131 | ResizeNearestNeighborNopTest<DataType::Float32>, |
| 1132 | DataLayout::NHWC) |
| 1133 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleResizeNearestNeighborNhwc, |
| 1134 | SimpleResizeNearestNeighborTest<DataType::Float32>, |
| 1135 | DataLayout::NHWC) |
| 1136 | ARMNN_AUTO_TEST_CASE_WITH_THF(ResizeNearestNeighborSqMinNhwc, |
| 1137 | ResizeNearestNeighborSqMinTest<DataType::Float32>, |
| 1138 | DataLayout::NHWC) |
| 1139 | ARMNN_AUTO_TEST_CASE_WITH_THF(ResizeNearestNeighborMinNhwc, |
| 1140 | ResizeNearestNeighborMinTest<DataType::Float32>, |
| 1141 | DataLayout::NHWC) |
| 1142 | ARMNN_AUTO_TEST_CASE_WITH_THF(ResizeNearestNeighborMagNhwc, |
| 1143 | ResizeNearestNeighborMagTest<DataType::Float32>, |
| 1144 | DataLayout::NHWC, 0.1f, 50, 0.1f, 50) |
Ellen Norris-Thompson | 37e6868 | 2019-07-15 14:23:30 +0100 | [diff] [blame] | 1145 | |
Finn Williams | ec36d3e | 2020-08-28 13:17:05 +0100 | [diff] [blame] | 1146 | ARMNN_AUTO_TEST_CASE_WITH_THF(ResizeNearestNeighborNopUint8Nhwc, |
| 1147 | ResizeNearestNeighborNopTest<DataType::QAsymmU8>, |
| 1148 | DataLayout::NHWC) |
| 1149 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleResizeNearestNeighborUint8Nhwc, |
| 1150 | SimpleResizeNearestNeighborTest<DataType::QAsymmU8>, |
| 1151 | DataLayout::NHWC) |
| 1152 | ARMNN_AUTO_TEST_CASE_WITH_THF(ResizeNearestNeighborSqMinUint8Nhwc, |
| 1153 | ResizeNearestNeighborSqMinTest<DataType::QAsymmU8>, |
| 1154 | DataLayout::NHWC) |
| 1155 | ARMNN_AUTO_TEST_CASE_WITH_THF(ResizeNearestNeighborMinUint8Nhwc, |
| 1156 | ResizeNearestNeighborMinTest<DataType::QAsymmU8>, |
| 1157 | DataLayout::NHWC) |
| 1158 | ARMNN_AUTO_TEST_CASE_WITH_THF(ResizeNearestNeighborMagUint8Nhwc, |
| 1159 | ResizeNearestNeighborMagTest<DataType::QAsymmU8>, |
| 1160 | DataLayout::NHWC, 0.1f, 50, 0.1f, 50) |
Ellen Norris-Thompson | 37e6868 | 2019-07-15 14:23:30 +0100 | [diff] [blame] | 1161 | |
Finn Williams | ec36d3e | 2020-08-28 13:17:05 +0100 | [diff] [blame] | 1162 | ARMNN_AUTO_TEST_CASE_WITH_THF(HalfPixelCentersResizeNearestNeighbourNhwc, |
| 1163 | HalfPixelCentersResizeNearestNeighbourTest<DataType::Float32>, |
| 1164 | DataLayout::NHWC) |
| 1165 | ARMNN_AUTO_TEST_CASE_WITH_THF(AlignCornersResizeNearestNeighbourNhwc, |
| 1166 | AlignCornersResizeNearestNeighbourTest<DataType::Float32>, |
| 1167 | DataLayout::NHWC) |
| 1168 | ARMNN_AUTO_TEST_CASE_WITH_THF(HalfPixelCentersResizeNearestNeighbourInt8Nhwc, |
| 1169 | HalfPixelCentersResizeNearestNeighbourTest<DataType::QAsymmS8>, |
| 1170 | DataLayout::NHWC) |
| 1171 | ARMNN_AUTO_TEST_CASE_WITH_THF(AlignCornersResizeNearestNeighbourInt8Nhwc, |
| 1172 | AlignCornersResizeNearestNeighbourTest<DataType::QAsymmS8>, |
| 1173 | DataLayout::NHWC) |
| 1174 | ARMNN_AUTO_TEST_CASE_WITH_THF(HalfPixelCentersResizeNearestNeighbourUint8Nhwc, |
| 1175 | HalfPixelCentersResizeNearestNeighbourTest<DataType::QAsymmU8>, |
| 1176 | DataLayout::NHWC) |
| 1177 | ARMNN_AUTO_TEST_CASE_WITH_THF(AlignCornersResizeNearestNeighbourUint8Nhwc, |
| 1178 | AlignCornersResizeNearestNeighbourTest<DataType::QAsymmU8>, |
| 1179 | DataLayout::NHWC) |
Teresa Charlin | 686f45c | 2020-07-23 17:59:00 +0100 | [diff] [blame] | 1180 | |
josh minor | 036f02d | 2019-11-15 14:53:22 -0600 | [diff] [blame] | 1181 | // Slice |
| 1182 | ARMNN_AUTO_TEST_CASE(Slice4dFloat32, Slice4dFloat32Test) |
| 1183 | ARMNN_AUTO_TEST_CASE(Slice3dFloat32, Slice3dFloat32Test) |
| 1184 | ARMNN_AUTO_TEST_CASE(Slice2dFloat32, Slice2dFloat32Test) |
| 1185 | ARMNN_AUTO_TEST_CASE(Slice1dFloat32, Slice1dFloat32Test) |
| 1186 | ARMNN_AUTO_TEST_CASE(Slice4dUint8, Slice4dUint8Test) |
| 1187 | ARMNN_AUTO_TEST_CASE(Slice3dUint8, Slice3dUint8Test) |
| 1188 | ARMNN_AUTO_TEST_CASE(Slice2dUint8, Slice2dUint8Test) |
| 1189 | ARMNN_AUTO_TEST_CASE(Slice1dUint8, Slice1dUint8Test) |
| 1190 | ARMNN_AUTO_TEST_CASE(Slice4dInt16, Slice4dInt16Test) |
| 1191 | ARMNN_AUTO_TEST_CASE(Slice3dInt16, Slice3dInt16Test) |
| 1192 | ARMNN_AUTO_TEST_CASE(Slice2dInt16, Slice2dInt16Test) |
| 1193 | ARMNN_AUTO_TEST_CASE(Slice1dInt16, Slice1dInt16Test) |
| 1194 | |
FinnWilliamsArm | 1fa1919 | 2019-08-02 17:26:31 +0100 | [diff] [blame] | 1195 | // Strided Slice |
Sadik Armagan | 5e71984 | 2020-08-28 12:17:33 +0100 | [diff] [blame] | 1196 | ARMNN_AUTO_TEST_CASE_WITH_THF(StridedSlice4dFloat32, StridedSlice4dFloat32Test) |
| 1197 | ARMNN_AUTO_TEST_CASE_WITH_THF(StridedSlice4dReverseFloat32, StridedSlice4dReverseFloat32Test) |
| 1198 | ARMNN_AUTO_TEST_CASE_WITH_THF(StridedSliceSimpleStrideFloat32, StridedSliceSimpleStrideFloat32Test) |
| 1199 | ARMNN_AUTO_TEST_CASE_WITH_THF(StridedSliceSimpleRangeMaskFloat32, StridedSliceSimpleRangeMaskFloat32Test) |
| 1200 | ARMNN_AUTO_TEST_CASE_WITH_THF(StridedSliceShrinkAxisMaskFloat32, StridedSliceShrinkAxisMaskFloat32Test) |
Finn Williams | 826a543 | 2020-08-27 16:15:20 +0100 | [diff] [blame] | 1201 | ARMNN_AUTO_TEST_CASE_WITH_THF(StridedSliceShrinkAxisMaskCTSFloat32, |
| 1202 | StridedSliceShrinkAxisMaskCTSFloat32Test) |
Sadik Armagan | 5e71984 | 2020-08-28 12:17:33 +0100 | [diff] [blame] | 1203 | ARMNN_AUTO_TEST_CASE_WITH_THF( |
| 1204 | StridedSliceShrinkAxisMaskBitPosition0Dim3Float32, StridedSliceShrinkAxisMaskBitPosition0Dim3Float32Test) |
| 1205 | ARMNN_AUTO_TEST_CASE_WITH_THF( |
| 1206 | StridedSliceShrinkAxisMaskBitPosition0Float32, StridedSliceShrinkAxisMaskBitPosition0Float32Test) |
| 1207 | ARMNN_AUTO_TEST_CASE_WITH_THF( |
| 1208 | StridedSliceShrinkAxisMaskBitPosition1Float32, StridedSliceShrinkAxisMaskBitPosition1Float32Test) |
| 1209 | ARMNN_AUTO_TEST_CASE_WITH_THF( |
| 1210 | StridedSliceShrinkAxisMaskBitPosition2Float32, StridedSliceShrinkAxisMaskBitPosition2Float32Test) |
| 1211 | ARMNN_AUTO_TEST_CASE_WITH_THF( |
| 1212 | StridedSliceShrinkAxisMaskBitPosition3Float32, StridedSliceShrinkAxisMaskBitPosition3Float32Test) |
| 1213 | ARMNN_AUTO_TEST_CASE_WITH_THF( |
| 1214 | StridedSliceShrinkAxisMaskBitPosition0And1Float32, StridedSliceShrinkAxisMaskBitPosition0And1Float32Test) |
| 1215 | ARMNN_AUTO_TEST_CASE_WITH_THF( |
| 1216 | StridedSliceShrinkAxisMaskBitPosition0And2Float32, StridedSliceShrinkAxisMaskBitPosition0And2Float32Test) |
| 1217 | ARMNN_AUTO_TEST_CASE_WITH_THF( |
| 1218 | StridedSliceShrinkAxisMaskBitPosition0And3Float32, StridedSliceShrinkAxisMaskBitPosition0And3Float32Test) |
| 1219 | ARMNN_AUTO_TEST_CASE_WITH_THF( |
| 1220 | StridedSliceShrinkAxisMaskBitPosition0And1And3Float32, StridedSliceShrinkAxisMaskBitPosition0And1And3Float32Test) |
| 1221 | ARMNN_AUTO_TEST_CASE_WITH_THF(StridedSlice3dFloat32, StridedSlice3dFloat32Test) |
| 1222 | ARMNN_AUTO_TEST_CASE_WITH_THF(StridedSlice3dReverseFloat32, StridedSlice3dReverseFloat32Test) |
| 1223 | ARMNN_AUTO_TEST_CASE_WITH_THF(StridedSlice2dFloat32, StridedSlice2dFloat32Test) |
| 1224 | ARMNN_AUTO_TEST_CASE_WITH_THF(StridedSlice2dReverseFloat32, StridedSlice2dReverseFloat32Test) |
FinnWilliamsArm | 1fa1919 | 2019-08-02 17:26:31 +0100 | [diff] [blame] | 1225 | |
Sadik Armagan | 5e71984 | 2020-08-28 12:17:33 +0100 | [diff] [blame] | 1226 | ARMNN_AUTO_TEST_CASE_WITH_THF(StridedSlice4dUint8, StridedSlice4dUint8Test) |
| 1227 | ARMNN_AUTO_TEST_CASE_WITH_THF(StridedSlice4dReverseUint8, StridedSlice4dReverseUint8Test) |
| 1228 | ARMNN_AUTO_TEST_CASE_WITH_THF(StridedSliceSimpleStrideUint8, StridedSliceSimpleStrideUint8Test) |
| 1229 | ARMNN_AUTO_TEST_CASE_WITH_THF(StridedSliceSimpleRangeMaskUint8, StridedSliceSimpleRangeMaskUint8Test) |
| 1230 | ARMNN_AUTO_TEST_CASE_WITH_THF(StridedSliceShrinkAxisMaskUint8, StridedSliceShrinkAxisMaskUint8Test) |
| 1231 | ARMNN_AUTO_TEST_CASE_WITH_THF( |
| 1232 | StridedSliceShrinkAxisMaskBitPosition0Dim3Uint8, StridedSliceShrinkAxisMaskBitPosition0Dim3Uint8Test) |
| 1233 | ARMNN_AUTO_TEST_CASE_WITH_THF( |
| 1234 | StridedSliceShrinkAxisMaskBitPosition0Uint8, StridedSliceShrinkAxisMaskBitPosition0Uint8Test) |
| 1235 | ARMNN_AUTO_TEST_CASE_WITH_THF( |
| 1236 | StridedSliceShrinkAxisMaskBitPosition1Uint8, StridedSliceShrinkAxisMaskBitPosition1Uint8Test) |
| 1237 | ARMNN_AUTO_TEST_CASE_WITH_THF( |
| 1238 | StridedSliceShrinkAxisMaskBitPosition2Uint8, StridedSliceShrinkAxisMaskBitPosition2Uint8Test) |
| 1239 | ARMNN_AUTO_TEST_CASE_WITH_THF( |
| 1240 | StridedSliceShrinkAxisMaskBitPosition3Uint8, StridedSliceShrinkAxisMaskBitPosition3Uint8Test) |
| 1241 | ARMNN_AUTO_TEST_CASE_WITH_THF( |
| 1242 | StridedSliceShrinkAxisMaskBitPosition0And1Uint8, StridedSliceShrinkAxisMaskBitPosition0And1Uint8Test) |
| 1243 | ARMNN_AUTO_TEST_CASE_WITH_THF( |
| 1244 | StridedSliceShrinkAxisMaskBitPosition0And2Uint8, StridedSliceShrinkAxisMaskBitPosition0And2Uint8Test) |
| 1245 | ARMNN_AUTO_TEST_CASE_WITH_THF( |
| 1246 | StridedSliceShrinkAxisMaskBitPosition0And3Uint8, StridedSliceShrinkAxisMaskBitPosition0And3Uint8Test) |
| 1247 | ARMNN_AUTO_TEST_CASE_WITH_THF( |
| 1248 | StridedSliceShrinkAxisMaskBitPosition0And1And3Uint8, StridedSliceShrinkAxisMaskBitPosition0And1And3Uint8Test) |
| 1249 | ARMNN_AUTO_TEST_CASE_WITH_THF(StridedSlice3dUint8, StridedSlice3dUint8Test) |
| 1250 | ARMNN_AUTO_TEST_CASE_WITH_THF(StridedSlice3dReverseUint8, StridedSlice3dReverseUint8Test) |
| 1251 | ARMNN_AUTO_TEST_CASE_WITH_THF(StridedSlice2dUint8, StridedSlice2dUint8Test) |
| 1252 | ARMNN_AUTO_TEST_CASE_WITH_THF(StridedSlice2dReverseUint8, StridedSlice2dReverseUint8Test) |
FinnWilliamsArm | 1fa1919 | 2019-08-02 17:26:31 +0100 | [diff] [blame] | 1253 | |
Sadik Armagan | fabc289 | 2019-05-31 09:05:11 +0100 | [diff] [blame] | 1254 | // Quantize |
Finn Williams | ec36d3e | 2020-08-28 13:17:05 +0100 | [diff] [blame] | 1255 | ARMNN_AUTO_TEST_CASE_WITH_THF(QuantizeSimpleUint8, QuantizeSimpleUint8Test) |
| 1256 | ARMNN_AUTO_TEST_CASE_WITH_THF(QuantizeClampUint8, QuantizeClampUint8Test) |
Sadik Armagan | fabc289 | 2019-05-31 09:05:11 +0100 | [diff] [blame] | 1257 | |
Nikhil Raj | 9b46148 | 2019-07-03 15:58:31 +0100 | [diff] [blame] | 1258 | // PReLU |
Finn Williams | 826a543 | 2020-08-27 16:15:20 +0100 | [diff] [blame] | 1259 | ARMNN_AUTO_TEST_CASE_WITH_THF(PreluFloat32, PreluTest<DataType::Float32>) |
| 1260 | ARMNN_AUTO_TEST_CASE_WITH_THF(PreluUint8, PreluTest<DataType::QAsymmU8>) |
Nikhil Raj | 9b46148 | 2019-07-03 15:58:31 +0100 | [diff] [blame] | 1261 | |
Matthew Jackson | 87f65ea | 2019-08-01 10:01:34 +0100 | [diff] [blame] | 1262 | // Stack |
Sadik Armagan | 5e71984 | 2020-08-28 12:17:33 +0100 | [diff] [blame] | 1263 | ARMNN_AUTO_TEST_CASE_WITH_THF(Stack0Axis, StackAxis0Float32Test) |
| 1264 | ARMNN_AUTO_TEST_CASE_WITH_THF(StackOutput4DAxis1, StackOutput4DAxis1Float32Test) |
| 1265 | ARMNN_AUTO_TEST_CASE_WITH_THF(StackOutput4DAxis2, StackOutput4DAxis2Float32Test) |
| 1266 | ARMNN_AUTO_TEST_CASE_WITH_THF(StackOutput4DAxis3, StackOutput4DAxis3Float32Test) |
| 1267 | ARMNN_AUTO_TEST_CASE_WITH_THF(StackOutput3DInputs3, StackOutput3DInputs3Float32Test) |
| 1268 | ARMNN_AUTO_TEST_CASE_WITH_THF(StackOutput5D, StackOutput5DFloat32Test) |
Matthew Jackson | 87f65ea | 2019-08-01 10:01:34 +0100 | [diff] [blame] | 1269 | |
Mike Kelly | c9ea45a | 2020-02-28 18:11:58 +0000 | [diff] [blame] | 1270 | // Transpose |
Finn Williams | ec36d3e | 2020-08-28 13:17:05 +0100 | [diff] [blame] | 1271 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleTransposeFloat32, SimpleTransposeTest<DataType::Float32>) |
| 1272 | ARMNN_AUTO_TEST_CASE_WITH_THF(TransposeFloat32ValueSet1Test, TransposeValueSet1Test<DataType::Float32>) |
| 1273 | ARMNN_AUTO_TEST_CASE_WITH_THF(TransposeFloat32ValueSet2Test, TransposeValueSet2Test<DataType::Float32>) |
| 1274 | ARMNN_AUTO_TEST_CASE_WITH_THF(TransposeFloat32ValueSet3Test, TransposeValueSet3Test<DataType::Float32>) |
| 1275 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleTransposeQASymms8, SimpleTransposeTest<DataType::QAsymmS8>) |
| 1276 | ARMNN_AUTO_TEST_CASE_WITH_THF(TransposeQASymmS8ValueSet1Test, TransposeValueSet1Test<DataType::QAsymmS8>) |
| 1277 | ARMNN_AUTO_TEST_CASE_WITH_THF(TransposeQASymmS8ValueSet2Test, TransposeValueSet2Test<DataType::QAsymmS8>) |
| 1278 | ARMNN_AUTO_TEST_CASE_WITH_THF(TransposeQASymmS8ValueSet3Test, TransposeValueSet3Test<DataType::QAsymmS8>) |
| 1279 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleTransposeQASymm8, SimpleTransposeTest<DataType::QAsymmU8>) |
| 1280 | ARMNN_AUTO_TEST_CASE_WITH_THF(TransposeQASymm8ValueSet1Test, TransposeValueSet1Test<DataType::QAsymmU8>) |
| 1281 | ARMNN_AUTO_TEST_CASE_WITH_THF(TransposeQASymm8ValueSet2Test, TransposeValueSet2Test<DataType::QAsymmU8>) |
| 1282 | ARMNN_AUTO_TEST_CASE_WITH_THF(TransposeQASymm8ValueSet3Test, TransposeValueSet3Test<DataType::QAsymmU8>) |
| 1283 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleTransposeQSymm16, SimpleTransposeTest<DataType::QSymmS16>) |
| 1284 | ARMNN_AUTO_TEST_CASE_WITH_THF(TransposeQSymm16ValueSet1Test, TransposeValueSet1Test<DataType::QSymmS16>) |
| 1285 | ARMNN_AUTO_TEST_CASE_WITH_THF(TransposeQSymm16ValueSet2Test, TransposeValueSet2Test<DataType::QSymmS16>) |
| 1286 | ARMNN_AUTO_TEST_CASE_WITH_THF(TransposeQSymm16ValueSet3Test, TransposeValueSet3Test<DataType::QSymmS16>) |
Mike Kelly | c9ea45a | 2020-02-28 18:11:58 +0000 | [diff] [blame] | 1287 | |
Sadik Armagan | 581742d | 2019-08-12 14:11:37 +0100 | [diff] [blame] | 1288 | // TransposeConvolution2d |
Finn Williams | ec36d3e | 2020-08-28 13:17:05 +0100 | [diff] [blame] | 1289 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleTransposeConvolution2dFloatNchw, |
| 1290 | SimpleTransposeConvolution2dTest<DataType::Float32, DataType::Float32>, |
| 1291 | true, |
| 1292 | DataLayout::NCHW) |
| 1293 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleTransposeConvolution2dFloatNhwc, |
| 1294 | SimpleTransposeConvolution2dTest<DataType::Float32, DataType::Float32>, |
| 1295 | true, |
| 1296 | DataLayout::NHWC) |
| 1297 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleTransposeConvolution2dUint8Nchw, |
| 1298 | SimpleTransposeConvolution2dTest<DataType::QAsymmU8, DataType::Signed32>, |
| 1299 | true, |
| 1300 | DataLayout::NCHW) |
| 1301 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleTransposeConvolution2dUint8Nhwc, |
| 1302 | SimpleTransposeConvolution2dTest<DataType::QAsymmU8, DataType::Signed32>, |
| 1303 | true, |
| 1304 | DataLayout::NHWC) |
Sadik Armagan | 581742d | 2019-08-12 14:11:37 +0100 | [diff] [blame] | 1305 | |
Finn Williams | ec36d3e | 2020-08-28 13:17:05 +0100 | [diff] [blame] | 1306 | ARMNN_AUTO_TEST_CASE_WITH_THF(UnbiasedSimpleTransposeConvolution2dFloatNchw, |
| 1307 | SimpleTransposeConvolution2dTest<DataType::Float32, DataType::Float32>, |
| 1308 | false, |
| 1309 | DataLayout::NCHW) |
| 1310 | ARMNN_AUTO_TEST_CASE_WITH_THF(UnbiasedSimpleTransposeConvolution2dFloatNhwc, |
| 1311 | SimpleTransposeConvolution2dTest<DataType::Float32, DataType::Float32>, |
| 1312 | true, |
| 1313 | DataLayout::NHWC) |
| 1314 | ARMNN_AUTO_TEST_CASE_WITH_THF(UnbiasedSimpleTransposeConvolution2dUint8Nchw, |
| 1315 | SimpleTransposeConvolution2dTest<DataType::QAsymmU8, DataType::Signed32>, |
| 1316 | true, |
| 1317 | DataLayout::NCHW) |
| 1318 | ARMNN_AUTO_TEST_CASE_WITH_THF(UnbiasedSimpleTransposeConvolution2dUint8Nhwc, |
| 1319 | SimpleTransposeConvolution2dTest<DataType::QAsymmU8, DataType::Signed32>, |
| 1320 | true, |
| 1321 | DataLayout::NHWC) |
Sadik Armagan | 581742d | 2019-08-12 14:11:37 +0100 | [diff] [blame] | 1322 | |
Finn Williams | ec36d3e | 2020-08-28 13:17:05 +0100 | [diff] [blame] | 1323 | ARMNN_AUTO_TEST_CASE_WITH_THF(PaddedTransposeConvolution2dFloatNchw, |
| 1324 | PaddedTransposeConvolution2dTest<DataType::Float32, DataType::Float32>, |
| 1325 | true, |
| 1326 | DataLayout::NCHW) |
| 1327 | ARMNN_AUTO_TEST_CASE_WITH_THF(PaddedTransposeConvolution2dFloatNhwc, |
| 1328 | PaddedTransposeConvolution2dTest<DataType::Float32, DataType::Float32>, |
| 1329 | true, |
| 1330 | DataLayout::NHWC) |
| 1331 | ARMNN_AUTO_TEST_CASE_WITH_THF(PaddedTransposeConvolution2dUint8Nchw, |
| 1332 | PaddedTransposeConvolution2dTest<DataType::QAsymmU8, DataType::Signed32>, |
| 1333 | true, |
| 1334 | DataLayout::NCHW) |
| 1335 | ARMNN_AUTO_TEST_CASE_WITH_THF(PaddedTransposeConvolution2dUint8Nhwc, |
| 1336 | PaddedTransposeConvolution2dTest<DataType::QAsymmU8, DataType::Signed32>, |
| 1337 | true, |
| 1338 | DataLayout::NHWC) |
Sadik Armagan | 581742d | 2019-08-12 14:11:37 +0100 | [diff] [blame] | 1339 | |
Finn Williams | ec36d3e | 2020-08-28 13:17:05 +0100 | [diff] [blame] | 1340 | ARMNN_AUTO_TEST_CASE_WITH_THF(UnbiasedPaddedTransposeConvolution2dFloatNchw, |
| 1341 | PaddedTransposeConvolution2dTest<DataType::Float32, DataType::Float32>, |
| 1342 | false, |
| 1343 | DataLayout::NCHW) |
| 1344 | ARMNN_AUTO_TEST_CASE_WITH_THF(UnbiasedPaddedTransposeConvolution2dFloatNhwc, |
| 1345 | PaddedTransposeConvolution2dTest<DataType::Float32, DataType::Float32>, |
| 1346 | true, |
| 1347 | DataLayout::NHWC) |
| 1348 | ARMNN_AUTO_TEST_CASE_WITH_THF(UnbiasedPaddedTransposeConvolution2dInt8Nchw, |
| 1349 | PaddedTransposeConvolution2dTest<DataType::QAsymmS8, DataType::Signed32>, |
| 1350 | true, |
| 1351 | DataLayout::NCHW) |
| 1352 | ARMNN_AUTO_TEST_CASE_WITH_THF(UnbiasedPaddedTransposeConvolution2dInt8Nhwc, |
| 1353 | PaddedTransposeConvolution2dTest<DataType::QAsymmS8, DataType::Signed32>, |
| 1354 | true, |
| 1355 | DataLayout::NHWC) |
| 1356 | ARMNN_AUTO_TEST_CASE_WITH_THF(UnbiasedPaddedTransposeConvolution2dUint8Nchw, |
| 1357 | PaddedTransposeConvolution2dTest<DataType::QAsymmU8, DataType::Signed32>, |
| 1358 | true, |
| 1359 | DataLayout::NCHW) |
| 1360 | ARMNN_AUTO_TEST_CASE_WITH_THF(UnbiasedPaddedTransposeConvolution2dUint8Nhwc, |
| 1361 | PaddedTransposeConvolution2dTest<DataType::QAsymmU8, DataType::Signed32>, |
| 1362 | true, |
| 1363 | DataLayout::NHWC) |
Sadik Armagan | 581742d | 2019-08-12 14:11:37 +0100 | [diff] [blame] | 1364 | |
Finn Williams | ec36d3e | 2020-08-28 13:17:05 +0100 | [diff] [blame] | 1365 | ARMNN_AUTO_TEST_CASE_WITH_THF(StridedTransposeConvolution2dFloatNchw, |
| 1366 | StridedTransposeConvolution2dTest<DataType::Float32, DataType::Float32>, |
| 1367 | true, |
| 1368 | DataLayout::NCHW) |
| 1369 | ARMNN_AUTO_TEST_CASE_WITH_THF(StridedTransposeConvolution2dFloatNhwc, |
| 1370 | StridedTransposeConvolution2dTest<DataType::Float32, DataType::Float32>, |
| 1371 | true, |
| 1372 | DataLayout::NHWC) |
| 1373 | ARMNN_AUTO_TEST_CASE_WITH_THF(StridedTransposeConvolution2dUint8Nchw, |
| 1374 | StridedTransposeConvolution2dTest<DataType::QAsymmU8, DataType::Signed32>, |
| 1375 | true, |
| 1376 | DataLayout::NCHW) |
| 1377 | ARMNN_AUTO_TEST_CASE_WITH_THF(StridedTransposeConvolution2dUint8Nhwc, |
| 1378 | StridedTransposeConvolution2dTest<DataType::QAsymmU8, DataType::Signed32>, |
| 1379 | true, |
| 1380 | DataLayout::NHWC) |
Sadik Armagan | 581742d | 2019-08-12 14:11:37 +0100 | [diff] [blame] | 1381 | |
Finn Williams | ec36d3e | 2020-08-28 13:17:05 +0100 | [diff] [blame] | 1382 | ARMNN_AUTO_TEST_CASE_WITH_THF(UnbiasedStridedTransposeConvolution2dFloatNchw, |
| 1383 | StridedTransposeConvolution2dTest<DataType::Float32, DataType::Float32>, |
| 1384 | false, |
| 1385 | DataLayout::NCHW) |
| 1386 | ARMNN_AUTO_TEST_CASE_WITH_THF(UnbiasedStridedTransposeConvolution2dFloatNhwc, |
| 1387 | StridedTransposeConvolution2dTest<DataType::Float32, DataType::Float32>, |
| 1388 | true, |
| 1389 | DataLayout::NHWC) |
| 1390 | ARMNN_AUTO_TEST_CASE_WITH_THF(UnbiasedStridedTransposeConvolution2dUint8Nchw, |
| 1391 | StridedTransposeConvolution2dTest<DataType::QAsymmU8, DataType::Signed32>, |
| 1392 | true, |
| 1393 | DataLayout::NCHW) |
| 1394 | ARMNN_AUTO_TEST_CASE_WITH_THF(UnbiasedStridedTransposeConvolution2dUint8Nhwc, |
| 1395 | StridedTransposeConvolution2dTest<DataType::QAsymmU8, DataType::Signed32>, |
| 1396 | true, |
| 1397 | DataLayout::NHWC) |
Sadik Armagan | 581742d | 2019-08-12 14:11:37 +0100 | [diff] [blame] | 1398 | |
Finn Williams | ec36d3e | 2020-08-28 13:17:05 +0100 | [diff] [blame] | 1399 | ARMNN_AUTO_TEST_CASE_WITH_THF(MultiChannelTransposeConvolution2dFloatNchw, |
| 1400 | MultiChannelTransposeConvolution2dTest<DataType::Float32, DataType::Float32>, |
| 1401 | DataLayout::NCHW) |
| 1402 | ARMNN_AUTO_TEST_CASE_WITH_THF(MultiChannelTransposeConvolution2dFloatNhwc, |
| 1403 | MultiChannelTransposeConvolution2dTest<DataType::Float32, DataType::Float32>, |
| 1404 | DataLayout::NHWC) |
| 1405 | ARMNN_AUTO_TEST_CASE_WITH_THF(MultiChannelTransposeConvolution2dUint8Nchw, |
| 1406 | MultiChannelTransposeConvolution2dTest<DataType::QAsymmU8, DataType::Signed32>, |
| 1407 | DataLayout::NCHW) |
| 1408 | ARMNN_AUTO_TEST_CASE_WITH_THF(MultiChannelTransposeConvolution2dUint8Nhwc, |
| 1409 | MultiChannelTransposeConvolution2dTest<DataType::QAsymmU8, DataType::Signed32>, |
| 1410 | DataLayout::NHWC) |
Aron Virginas-Tar | 7599aa4 | 2019-08-20 15:30:04 +0100 | [diff] [blame] | 1411 | |
Aron Virginas-Tar | 914e4db | 2019-09-09 13:36:45 +0100 | [diff] [blame] | 1412 | // Abs |
Keith Davis | 33a626f | 2020-08-27 15:38:12 +0100 | [diff] [blame] | 1413 | ARMNN_AUTO_TEST_CASE_WITH_THF(Abs2d, Abs2dTest<DataType::Float32>) |
| 1414 | ARMNN_AUTO_TEST_CASE_WITH_THF(Abs3d, Abs3dTest<DataType::Float32>) |
| 1415 | ARMNN_AUTO_TEST_CASE_WITH_THF(AbsZero, AbsZeroTest<DataType::Float32>) |
Aron Virginas-Tar | 914e4db | 2019-09-09 13:36:45 +0100 | [diff] [blame] | 1416 | |
Keith Davis | 33a626f | 2020-08-27 15:38:12 +0100 | [diff] [blame] | 1417 | ARMNN_AUTO_TEST_CASE_WITH_THF(Abs2dSigned32, Abs2dTest<DataType::Signed32>) |
| 1418 | ARMNN_AUTO_TEST_CASE_WITH_THF(Abs3dSigned32, Abs3dTest<DataType::Signed32>) |
| 1419 | ARMNN_AUTO_TEST_CASE_WITH_THF(AbsZeroSigned32, AbsZeroTest<DataType::Signed32>) |
Kevin May | ec52c3a | 2020-04-24 09:42:31 +0100 | [diff] [blame] | 1420 | |
Aron Virginas-Tar | 0dd3b43 | 2019-09-10 13:55:09 +0100 | [diff] [blame] | 1421 | // Rsqrt |
Keith Davis | 33a626f | 2020-08-27 15:38:12 +0100 | [diff] [blame] | 1422 | ARMNN_AUTO_TEST_CASE_WITH_THF(Rsqrt2d, Rsqrt2dTest<DataType::Float32>) |
| 1423 | ARMNN_AUTO_TEST_CASE_WITH_THF(Rsqrt3d, Rsqrt3dTest<DataType::Float32>) |
| 1424 | ARMNN_AUTO_TEST_CASE_WITH_THF(RsqrtZero, RsqrtZeroTest<DataType::Float32>) |
| 1425 | ARMNN_AUTO_TEST_CASE_WITH_THF(RsqrtNegative, RsqrtNegativeTest<DataType::Float32>) |
Aron Virginas-Tar | 0dd3b43 | 2019-09-10 13:55:09 +0100 | [diff] [blame] | 1426 | |
Teresa Charlin | 0302723 | 2022-05-09 17:27:08 +0100 | [diff] [blame] | 1427 | // Sqrt |
| 1428 | ARMNN_AUTO_TEST_CASE_WITH_THF(Sqrt2d, Sqrt2dTest<DataType::Float32>) |
| 1429 | ARMNN_AUTO_TEST_CASE_WITH_THF(Sqrt3d, Sqrt3dTest<DataType::Float32>) |
| 1430 | ARMNN_AUTO_TEST_CASE_WITH_THF(SqrtZero, SqrtZeroTest<DataType::Float32>) |
| 1431 | ARMNN_AUTO_TEST_CASE_WITH_THF(SqrtNegative, SqrtNegativeTest<DataType::Float32>) |
| 1432 | |
James Conroy | d47a064 | 2019-09-17 14:22:06 +0100 | [diff] [blame] | 1433 | // ArgMinMax |
Sadik Armagan | 43528ac | 2020-08-27 09:06:40 +0100 | [diff] [blame] | 1434 | ARMNN_AUTO_TEST_CASE_WITH_THF(ArgMinFloat32, ArgMinSimpleTest<DataType::Float32>) |
| 1435 | ARMNN_AUTO_TEST_CASE_WITH_THF(ArgMaxFloat32, ArgMaxSimpleTest<DataType::Float32>) |
| 1436 | ARMNN_AUTO_TEST_CASE_WITH_THF(ArgMinChannel, ArgMinChannelTest<DataType::Float32>) |
| 1437 | ARMNN_AUTO_TEST_CASE_WITH_THF(ArgMaxChannel, ArgMaxChannelTest<DataType::Float32>) |
| 1438 | ARMNN_AUTO_TEST_CASE_WITH_THF(ArgMaxHeight, ArgMaxHeightTest<DataType::Float32>) |
| 1439 | ARMNN_AUTO_TEST_CASE_WITH_THF(ArgMinWidth, ArgMinWidthTest<DataType::Float32>) |
James Conroy | d47a064 | 2019-09-17 14:22:06 +0100 | [diff] [blame] | 1440 | |
Sadik Armagan | 43528ac | 2020-08-27 09:06:40 +0100 | [diff] [blame] | 1441 | ARMNN_AUTO_TEST_CASE_WITH_THF(ArgMinQAsymmS8, ArgMinSimpleTest<DataType::QAsymmS8>) |
| 1442 | ARMNN_AUTO_TEST_CASE_WITH_THF(ArgMaxQAsymmS8, ArgMaxSimpleTest<DataType::QAsymmS8>) |
| 1443 | ARMNN_AUTO_TEST_CASE_WITH_THF(ArgMinChannelQAsymmS8, ArgMinChannelTest<DataType::QAsymmS8>) |
| 1444 | ARMNN_AUTO_TEST_CASE_WITH_THF(ArgMaxChannelQAsymmS8, ArgMaxChannelTest<DataType::QAsymmS8>) |
| 1445 | ARMNN_AUTO_TEST_CASE_WITH_THF(ArgMaxHeightQAsymmS8, ArgMaxHeightTest<DataType::QAsymmS8>) |
| 1446 | ARMNN_AUTO_TEST_CASE_WITH_THF(ArgMinWidthQAsymmS8, ArgMinWidthTest<DataType::QAsymmS8>) |
Sadik Armagan | 303980c | 2020-04-17 12:45:14 +0100 | [diff] [blame] | 1447 | |
Sadik Armagan | 43528ac | 2020-08-27 09:06:40 +0100 | [diff] [blame] | 1448 | ARMNN_AUTO_TEST_CASE_WITH_THF(ArgMinQAsymm8, ArgMinSimpleTest<DataType::QAsymmU8>) |
| 1449 | ARMNN_AUTO_TEST_CASE_WITH_THF(ArgMaxQAsymm8, ArgMaxSimpleTest<DataType::QAsymmU8>) |
| 1450 | ARMNN_AUTO_TEST_CASE_WITH_THF(ArgMinChannelQAsymm8, ArgMinChannelTest<DataType::QAsymmU8>) |
| 1451 | ARMNN_AUTO_TEST_CASE_WITH_THF(ArgMaxChannelQAsymm8, ArgMaxChannelTest<DataType::QAsymmU8>) |
| 1452 | ARMNN_AUTO_TEST_CASE_WITH_THF(ArgMaxHeightQAsymm8, ArgMaxHeightTest<DataType::QAsymmU8>) |
| 1453 | ARMNN_AUTO_TEST_CASE_WITH_THF(ArgMinWidthQAsymm8, ArgMinWidthTest<DataType::QAsymmU8>) |
Francis Murtagh | 52ec346 | 2019-11-19 12:24:19 +0000 | [diff] [blame] | 1454 | |
Sadik Armagan | ac47210 | 2020-03-24 09:54:36 +0000 | [diff] [blame] | 1455 | // Neg |
Keith Davis | 33a626f | 2020-08-27 15:38:12 +0100 | [diff] [blame] | 1456 | ARMNN_AUTO_TEST_CASE_WITH_THF(Neg2d, Neg2dTest<DataType::Float32>) |
| 1457 | ARMNN_AUTO_TEST_CASE_WITH_THF(Neg3d, Neg3dTest<DataType::Float32>) |
| 1458 | ARMNN_AUTO_TEST_CASE_WITH_THF(NegZero, NegZeroTest<DataType::Float32>) |
| 1459 | ARMNN_AUTO_TEST_CASE_WITH_THF(NegNegative, NegNegativeTest<DataType::Float32>) |
Sadik Armagan | ac47210 | 2020-03-24 09:54:36 +0000 | [diff] [blame] | 1460 | |
Sadik Armagan | 9fabf43 | 2020-05-27 13:40:58 +0100 | [diff] [blame] | 1461 | // Exp |
Keith Davis | 33a626f | 2020-08-27 15:38:12 +0100 | [diff] [blame] | 1462 | ARMNN_AUTO_TEST_CASE_WITH_THF(Exp2d, Exp2dTest<DataType::Float32>) |
Teresa Charlin | 50de4fa | 2021-05-31 18:47:33 +0100 | [diff] [blame] | 1463 | ARMNN_AUTO_TEST_CASE_WITH_THF(Exp3d, Exp3dTest<DataType::Float32>) |
Keith Davis | 33a626f | 2020-08-27 15:38:12 +0100 | [diff] [blame] | 1464 | ARMNN_AUTO_TEST_CASE_WITH_THF(ExpZero, ExpZeroTest<DataType::Float32>) |
| 1465 | ARMNN_AUTO_TEST_CASE_WITH_THF(ExpNegative, ExpNegativeTest<DataType::Float32>) |
Sadik Armagan | 9fabf43 | 2020-05-27 13:40:58 +0100 | [diff] [blame] | 1466 | |
Teresa Charlin | 50de4fa | 2021-05-31 18:47:33 +0100 | [diff] [blame] | 1467 | // Log |
| 1468 | ARMNN_AUTO_TEST_CASE_WITH_THF(Log2d, Log2dTest<DataType::Float32>) |
| 1469 | ARMNN_AUTO_TEST_CASE_WITH_THF(Log3d, Log3dTest<DataType::Float32>) |
| 1470 | ARMNN_AUTO_TEST_CASE_WITH_THF(LogZero, LogZeroTest<DataType::Float32>) |
| 1471 | ARMNN_AUTO_TEST_CASE_WITH_THF(LogNegative, LogNegativeTest<DataType::Float32>) |
| 1472 | |
| 1473 | // Sin |
| 1474 | ARMNN_AUTO_TEST_CASE_WITH_THF(Sin2d, Sin2dTest<DataType::Float32>) |
| 1475 | ARMNN_AUTO_TEST_CASE_WITH_THF(Sin3d, Sin3dTest<DataType::Float32>) |
| 1476 | ARMNN_AUTO_TEST_CASE_WITH_THF(SinZero, SinZeroTest<DataType::Float32>) |
| 1477 | ARMNN_AUTO_TEST_CASE_WITH_THF(SinNegative, SinNegativeTest<DataType::Float32>) |
| 1478 | |
Sadik Armagan | a792a05 | 2020-06-23 16:22:23 +0100 | [diff] [blame] | 1479 | // Fill |
Finn Williams | 8702007 | 2020-08-26 16:19:15 +0100 | [diff] [blame] | 1480 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleFill, SimpleFillTest<DataType::Float32>) |
| 1481 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleFillF16, SimpleFillTest<DataType::Float16>) |
| 1482 | ARMNN_AUTO_TEST_CASE_WITH_THF(SimpleFillS32, SimpleFillTest<DataType::Signed32>) |
Sadik Armagan | a792a05 | 2020-06-23 16:22:23 +0100 | [diff] [blame] | 1483 | |
James Conroy | 177df1e | 2020-11-13 10:18:51 +0000 | [diff] [blame] | 1484 | // Logical |
| 1485 | ARMNN_AUTO_TEST_CASE_WITH_THF(LogicalNot, LogicalNotTest) |
| 1486 | ARMNN_AUTO_TEST_CASE_WITH_THF(LogicalNotInt, LogicalNotIntTest) |
| 1487 | |
| 1488 | ARMNN_AUTO_TEST_CASE_WITH_THF(LogicalAnd, LogicalAndTest) |
| 1489 | ARMNN_AUTO_TEST_CASE_WITH_THF(LogicalAndInt, LogicalAndIntTest) |
| 1490 | ARMNN_AUTO_TEST_CASE_WITH_THF(LogicalAndBroadcast1, LogicalAndBroadcast1Test) |
| 1491 | ARMNN_AUTO_TEST_CASE_WITH_THF(LogicalAndBroadcast2, LogicalAndBroadcast2Test) |
| 1492 | ARMNN_AUTO_TEST_CASE_WITH_THF(LogicalAndBroadcast3, LogicalAndBroadcast3Test) |
| 1493 | |
| 1494 | ARMNN_AUTO_TEST_CASE_WITH_THF(LogicalOr, LogicalOrTest) |
| 1495 | ARMNN_AUTO_TEST_CASE_WITH_THF(LogicalOrInt, LogicalOrIntTest) |
| 1496 | ARMNN_AUTO_TEST_CASE_WITH_THF(LogicalOrBroadcast1, LogicalOrBroadcast1Test) |
| 1497 | ARMNN_AUTO_TEST_CASE_WITH_THF(LogicalOrBroadcast2, LogicalOrBroadcast2Test) |
| 1498 | ARMNN_AUTO_TEST_CASE_WITH_THF(LogicalOrBroadcast3, LogicalOrBroadcast3Test) |
| 1499 | |
Sadik Armagan | a274748 | 2021-02-09 10:28:54 +0000 | [diff] [blame] | 1500 | // ReduceSum |
Colm Donelan | ade8c1d | 2021-03-24 14:51:31 +0000 | [diff] [blame] | 1501 | // Moved to NeonLayerTests_NDK_Bug.cpp |
| 1502 | //ARMNN_AUTO_TEST_CASE_WITH_THF(ReduceSumFloat32, ReduceSumSimpleTest<DataType::Float32>) |
Sadik Armagan | a274748 | 2021-02-09 10:28:54 +0000 | [diff] [blame] | 1503 | ARMNN_AUTO_TEST_CASE_WITH_THF(ReduceSumSingleAxisFloat32_1, ReduceSumSingleAxisTest1<DataType::Float32>) |
| 1504 | ARMNN_AUTO_TEST_CASE_WITH_THF(ReduceSumSingleAxisFloat32_2, ReduceSumSingleAxisTest2<DataType::Float32>) |
Colm Donelan | ade8c1d | 2021-03-24 14:51:31 +0000 | [diff] [blame] | 1505 | // Moved to NeonLayerTests_NDK_Bug.cpp |
| 1506 | //ARMNN_AUTO_TEST_CASE_WITH_THF(ReduceSumSingleAxisFloat32_3, ReduceSumSingleAxisTest3<DataType::Float32>) |
Sadik Armagan | a274748 | 2021-02-09 10:28:54 +0000 | [diff] [blame] | 1507 | |
Teresa Charlin | 4e3e831 | 2021-08-05 12:34:37 +0100 | [diff] [blame] | 1508 | // ReduceProd |
| 1509 | ARMNN_AUTO_TEST_CASE_WITH_THF(ReduceProdSingleAxisFloat32_1, ReduceProdSingleAxisTest1<DataType::Float32>) |
| 1510 | ARMNN_AUTO_TEST_CASE_WITH_THF(ReduceProdSingleAxisFloat32_2, ReduceProdSingleAxisTest2<DataType::Float32>) |
| 1511 | |
Sadik Armagan | a274748 | 2021-02-09 10:28:54 +0000 | [diff] [blame] | 1512 | // ReduceMax |
| 1513 | ARMNN_AUTO_TEST_CASE_WITH_THF(ReduceMaxFloat32, ReduceMaxSimpleTest<DataType::Float32>) |
| 1514 | ARMNN_AUTO_TEST_CASE_WITH_THF(ReduceMaxNegativeAxisFloat32, ReduceMaxNegativeAxisTest<DataType::Float32>) |
| 1515 | ARMNN_AUTO_TEST_CASE_WITH_THF(ReduceMax2Float32, ReduceMaxSimpleTest2<DataType::Float32>) |
| 1516 | |
| 1517 | // ReduceMin |
| 1518 | ARMNN_AUTO_TEST_CASE_WITH_THF(ReduceMinFloat32, ReduceMinSimpleTest<DataType::Float32>) |
| 1519 | ARMNN_AUTO_TEST_CASE_WITH_THF(ReduceMinNegativeAxisFloat32, ReduceMinNegativeAxisTest<DataType::Float32>) |
| 1520 | |
Sadik Armagan | 48f011e | 2021-04-21 10:50:34 +0100 | [diff] [blame] | 1521 | // Cast |
| 1522 | ARMNN_AUTO_TEST_CASE_WITH_THF(CastInt32ToFloat, CastInt32ToFloat2dTest) |
| 1523 | ARMNN_AUTO_TEST_CASE_WITH_THF(CastInt8AsymmToFloat, CastInt8AsymmToFloat2dTest) |
| 1524 | ARMNN_AUTO_TEST_CASE_WITH_THF(CastUIntToFloat, CastUInt8ToFloat2dTest) |
| 1525 | ARMNN_AUTO_TEST_CASE_WITH_THF(CastFloatToIn8, CastFloat32ToInt82dTest) |
| 1526 | ARMNN_AUTO_TEST_CASE_WITH_THF(CastFloatToUInt8, CastFloat32ToUInt82dTest) |
| 1527 | |
Teresa Charlin | e89dd69 | 2021-09-01 16:30:34 +0100 | [diff] [blame] | 1528 | // ChannelShuffle |
| 1529 | ARMNN_AUTO_TEST_CASE_WITH_THF(ChannelShuffle4DFloat32, ChannelShuffle4DTest<DataType::Float32>) |
| 1530 | ARMNN_AUTO_TEST_CASE_WITH_THF(ChannelShuffle4DQAsymmU8, ChannelShuffle4DTest<DataType::QAsymmU8>) |
Teresa Charlin | eb852bb | 2021-09-30 12:44:33 +0100 | [diff] [blame] | 1531 | ARMNN_AUTO_TEST_CASE_WITH_THF(ChannelShuffle4DQAsymmS8, ChannelShuffle4DTest<DataType::QAsymmS8>) |
Sadik Armagan | 48f011e | 2021-04-21 10:50:34 +0100 | [diff] [blame] | 1532 | |
Matteo Martincigh | db16dd3 | 2019-08-27 16:41:11 +0100 | [diff] [blame] | 1533 | #if defined(ARMNNREF_ENABLED) |
Matteo Martincigh | e67edb2 | 2019-08-14 14:05:46 +0100 | [diff] [blame] | 1534 | |
| 1535 | // The ARMNN_COMPARE_REF_AUTO_TEST_CASE and the ARMNN_COMPARE_REF_FIXTURE_TEST_CASE test units are not available |
| 1536 | // if the reference backend is not built |
| 1537 | |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 1538 | // ============================================================================ |
| 1539 | // COMPARE tests |
| 1540 | |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 1541 | ARMNN_COMPARE_REF_AUTO_TEST_CASE_WITH_THF(CompareConv2dWithReference, CompareConvolution2dTest) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 1542 | |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 1543 | ARMNN_COMPARE_REF_AUTO_TEST_CASE_WITH_THF(CompareDepthwiseConv2dWithReferenceFloat32, |
Nattapat Chaimanowong | 649dd95 | 2019-01-22 16:10:44 +0000 | [diff] [blame] | 1544 | CompareDepthwiseConvolution2dFloatTest, |
Sadik Armagan | 581742d | 2019-08-12 14:11:37 +0100 | [diff] [blame] | 1545 | DataLayout::NCHW) |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 1546 | ARMNN_COMPARE_REF_AUTO_TEST_CASE_WITH_THF(CompareDepthwiseConv2dWithReferenceUint8, |
Nattapat Chaimanowong | 649dd95 | 2019-01-22 16:10:44 +0000 | [diff] [blame] | 1547 | CompareDepthwiseConvolution2dUint8Test, |
Sadik Armagan | 581742d | 2019-08-12 14:11:37 +0100 | [diff] [blame] | 1548 | DataLayout::NCHW) |
jimfly01 | 7af00da | 2018-10-31 14:43:53 +0000 | [diff] [blame] | 1549 | |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 1550 | ARMNN_COMPARE_REF_AUTO_TEST_CASE_WITH_THF(CompareDepthwiseConv2dWithReferenceFloat32Nhwc, |
Nattapat Chaimanowong | 649dd95 | 2019-01-22 16:10:44 +0000 | [diff] [blame] | 1551 | CompareDepthwiseConvolution2dFloatTest, |
Sadik Armagan | 581742d | 2019-08-12 14:11:37 +0100 | [diff] [blame] | 1552 | DataLayout::NHWC) |
Keith Davis | f500d6c | 2020-08-31 08:32:55 +0100 | [diff] [blame] | 1553 | ARMNN_COMPARE_REF_AUTO_TEST_CASE_WITH_THF(CompareDepthwiseConv2dWithReferenceUint8Nhwc, |
Nattapat Chaimanowong | 649dd95 | 2019-01-22 16:10:44 +0000 | [diff] [blame] | 1554 | CompareDepthwiseConvolution2dUint8Test, |
Sadik Armagan | 581742d | 2019-08-12 14:11:37 +0100 | [diff] [blame] | 1555 | DataLayout::NHWC) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 1556 | |
Finn Williams | 826a543 | 2020-08-27 16:15:20 +0100 | [diff] [blame] | 1557 | ARMNN_COMPARE_REF_AUTO_TEST_CASE_WITH_THF(CompareNormalizationWithinWithReference, CompareNormalizationTest, |
| 1558 | NormalizationAlgorithmChannel::Within, |
| 1559 | NormalizationAlgorithmMethod::LocalBrightness) |
| 1560 | ARMNN_COMPARE_REF_AUTO_TEST_CASE_WITH_THF(CompareNormalizationAcrossWithReference, CompareNormalizationTest, |
| 1561 | NormalizationAlgorithmChannel::Across, |
| 1562 | NormalizationAlgorithmMethod::LocalBrightness) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 1563 | |
Finn Williams | 826a543 | 2020-08-27 16:15:20 +0100 | [diff] [blame] | 1564 | ARMNN_COMPARE_REF_AUTO_TEST_CASE_WITH_THF(CompareMaxPooling2dWithReference, ComparePooling2dTest, PoolingAlgorithm::Max) |
| 1565 | ARMNN_COMPARE_REF_AUTO_TEST_CASE_WITH_THF(CompareMaxPooling2dWithReferenceUint8, ComparePooling2dUint8Test, |
| 1566 | PoolingAlgorithm::Max) |
| 1567 | ARMNN_COMPARE_REF_AUTO_TEST_CASE_WITH_THF(CompareAveragePooling2dWithReference, ComparePooling2dTest, |
| 1568 | PoolingAlgorithm::Average) |
| 1569 | ARMNN_COMPARE_REF_AUTO_TEST_CASE_WITH_THF(CompareAveragePooling2dWithReferenceUint8, ComparePooling2dUint8Test, |
| 1570 | PoolingAlgorithm::Average) |
| 1571 | ARMNN_COMPARE_REF_AUTO_TEST_CASE_WITH_THF(CompareL2Pooling2dWithReference, ComparePooling2dTest, PoolingAlgorithm::L2) |
| 1572 | ARMNN_COMPARE_REF_AUTO_TEST_CASE_WITH_THF(UNSUPPORTED_CompareL2Pooling2dWithReferenceUint8, ComparePooling2dUint8Test, |
| 1573 | PoolingAlgorithm::L2) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 1574 | |
Colm Donelan | ade8c1d | 2021-03-24 14:51:31 +0000 | [diff] [blame] | 1575 | // Moved to NeonLayerTests_NDK_Bug.cpp |
| 1576 | //ARMNN_COMPARE_REF_AUTO_TEST_CASE_WITH_THF(CompareSoftmaxBeta1WithReference, CompareSoftmaxTest, 1.0f) |
| 1577 | //ARMNN_COMPARE_REF_AUTO_TEST_CASE_WITH_THF(CompareSoftmaxBeta2WithReference, CompareSoftmaxTest, 2.0f) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 1578 | |
Sadik Armagan | 56785c7 | 2020-08-27 12:57:20 +0100 | [diff] [blame] | 1579 | ARMNN_COMPARE_REF_AUTO_TEST_CASE_WITH_THF(CompareSoftmaxUint8Beta1WithReference, CompareSoftmaxUint8Test, 1.0f) |
| 1580 | ARMNN_COMPARE_REF_AUTO_TEST_CASE_WITH_THF(CompareSoftmaxUint8Beta2WithReference, CompareSoftmaxUint8Test, 2.0f) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 1581 | |
Keith Davis | 33a626f | 2020-08-27 15:38:12 +0100 | [diff] [blame] | 1582 | ARMNN_COMPARE_REF_AUTO_TEST_CASE_WITH_THF(CompareAddition, CompareAdditionTest) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 1583 | |
Keith Davis | 33a626f | 2020-08-27 15:38:12 +0100 | [diff] [blame] | 1584 | ARMNN_COMPARE_REF_AUTO_TEST_CASE_WITH_THF(CompareMultiplicationWithReference, CompareMultiplicationTest) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 1585 | |
Keith Davis | 33a626f | 2020-08-27 15:38:12 +0100 | [diff] [blame] | 1586 | ARMNN_COMPARE_REF_AUTO_TEST_CASE_WITH_THF(CompareBatchNorm, CompareBatchNormTest) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 1587 | |
Keith Davis | 33a626f | 2020-08-27 15:38:12 +0100 | [diff] [blame] | 1588 | ARMNN_COMPARE_REF_AUTO_TEST_CASE_WITH_THF(CompareReLu1, CompareBoundedReLuTest, 1.0f, -1.0f) |
| 1589 | 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] | 1590 | |
| 1591 | // ============================================================================ |
| 1592 | // FIXTURE tests |
| 1593 | |
Keith Davis | 33a626f | 2020-08-27 15:38:12 +0100 | [diff] [blame] | 1594 | ARMNN_COMPARE_REF_FIXTURE_TEST_CASE_WITH_THF(CompareSigmoidActivationWithReference, ActivationFixture, |
Sadik Armagan | 581742d | 2019-08-12 14:11:37 +0100 | [diff] [blame] | 1595 | CompareActivationTest, ActivationFunction::Sigmoid, 5u) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 1596 | |
Keith Davis | 33a626f | 2020-08-27 15:38:12 +0100 | [diff] [blame] | 1597 | ARMNN_COMPARE_REF_FIXTURE_TEST_CASE_WITH_THF(CompareTanhActivationWithReference, ActivationFixture, |
Sadik Armagan | 581742d | 2019-08-12 14:11:37 +0100 | [diff] [blame] | 1598 | CompareActivationTest, ActivationFunction::TanH, 5u) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 1599 | |
Keith Davis | 33a626f | 2020-08-27 15:38:12 +0100 | [diff] [blame] | 1600 | ARMNN_COMPARE_REF_FIXTURE_TEST_CASE_WITH_THF(CompareLinearActivationWithReference, ActivationFixture, |
Sadik Armagan | 581742d | 2019-08-12 14:11:37 +0100 | [diff] [blame] | 1601 | CompareActivationTest, ActivationFunction::Linear, 5u) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 1602 | |
Keith Davis | 33a626f | 2020-08-27 15:38:12 +0100 | [diff] [blame] | 1603 | ARMNN_COMPARE_REF_FIXTURE_TEST_CASE_WITH_THF(CompareReLuActivationWithReference, ActivationFixture, |
Sadik Armagan | 581742d | 2019-08-12 14:11:37 +0100 | [diff] [blame] | 1604 | CompareActivationTest, ActivationFunction::ReLu, 5u) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 1605 | |
Keith Davis | 33a626f | 2020-08-27 15:38:12 +0100 | [diff] [blame] | 1606 | ARMNN_COMPARE_REF_FIXTURE_TEST_CASE_WITH_THF(CompareBoundedReLuActivationWithReference, ActivationFixture, |
Sadik Armagan | 581742d | 2019-08-12 14:11:37 +0100 | [diff] [blame] | 1607 | CompareActivationTest, ActivationFunction::BoundedReLu, 5u) |
Keith Davis | 33a626f | 2020-08-27 15:38:12 +0100 | [diff] [blame] | 1608 | ARMNN_COMPARE_REF_FIXTURE_TEST_CASE_WITH_THF(CompareBoundedReLuActivationWithReferenceUint8, ActivationFixture, |
Sadik Armagan | 581742d | 2019-08-12 14:11:37 +0100 | [diff] [blame] | 1609 | CompareActivationUint8Test, ActivationFunction::BoundedReLu) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 1610 | |
Keith Davis | 33a626f | 2020-08-27 15:38:12 +0100 | [diff] [blame] | 1611 | ARMNN_COMPARE_REF_FIXTURE_TEST_CASE_WITH_THF(CompareSoftReLuActivationWithReference, ActivationFixture, |
Sadik Armagan | 581742d | 2019-08-12 14:11:37 +0100 | [diff] [blame] | 1612 | CompareActivationTest, ActivationFunction::SoftReLu, 1u) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 1613 | |
Keith Davis | 33a626f | 2020-08-27 15:38:12 +0100 | [diff] [blame] | 1614 | ARMNN_COMPARE_REF_FIXTURE_TEST_CASE_WITH_THF(CompareLeakyReLuActivationWithReference, ActivationFixture, |
Sadik Armagan | 581742d | 2019-08-12 14:11:37 +0100 | [diff] [blame] | 1615 | CompareActivationTest, ActivationFunction::LeakyReLu, 5u) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 1616 | |
Keith Davis | 33a626f | 2020-08-27 15:38:12 +0100 | [diff] [blame] | 1617 | ARMNN_COMPARE_REF_FIXTURE_TEST_CASE_WITH_THF(CompareAbsActivationWithReference, ActivationFixture, |
Sadik Armagan | 581742d | 2019-08-12 14:11:37 +0100 | [diff] [blame] | 1618 | CompareActivationTest, ActivationFunction::Abs, 5u) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 1619 | |
Keith Davis | 33a626f | 2020-08-27 15:38:12 +0100 | [diff] [blame] | 1620 | ARMNN_COMPARE_REF_FIXTURE_TEST_CASE_WITH_THF(CompareSqrtActivationWithReference, PositiveActivationFixture, |
Sadik Armagan | 581742d | 2019-08-12 14:11:37 +0100 | [diff] [blame] | 1621 | CompareActivationTest, ActivationFunction::Sqrt, 5u) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 1622 | |
Keith Davis | 33a626f | 2020-08-27 15:38:12 +0100 | [diff] [blame] | 1623 | ARMNN_COMPARE_REF_FIXTURE_TEST_CASE_WITH_THF(CompareSquareActivationWithReference, ActivationFixture, |
Sadik Armagan | 581742d | 2019-08-12 14:11:37 +0100 | [diff] [blame] | 1624 | CompareActivationTest, ActivationFunction::Square, 5u) |
Matteo Martincigh | e67edb2 | 2019-08-14 14:05:46 +0100 | [diff] [blame] | 1625 | |
Keith Davis | 33a626f | 2020-08-27 15:38:12 +0100 | [diff] [blame] | 1626 | ARMNN_COMPARE_REF_FIXTURE_TEST_CASE_WITH_THF(CompareEluActivationWithReference, ActivationFixture, |
Teresa Charlin | e32c844 | 2020-03-05 14:41:50 +0000 | [diff] [blame] | 1627 | CompareActivationTest, ActivationFunction::Elu, 5u) |
| 1628 | |
Matteo Martincigh | e67edb2 | 2019-08-14 14:05:46 +0100 | [diff] [blame] | 1629 | #endif |
| 1630 | |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 1631 | } |