Moritz Pflanzer | f6ad98a | 2017-07-21 17:19:58 +0100 | [diff] [blame] | 1 | /* |
Michele Di Giorgio | d9eaf61 | 2020-07-08 11:12:57 +0100 | [diff] [blame] | 2 | * Copyright (c) 2017-2020 Arm Limited. |
Moritz Pflanzer | f6ad98a | 2017-07-21 17:19:58 +0100 | [diff] [blame] | 3 | * |
| 4 | * SPDX-License-Identifier: MIT |
| 5 | * |
| 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy |
| 7 | * of this software and associated documentation files (the "Software"), to |
| 8 | * deal in the Software without restriction, including without limitation the |
| 9 | * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or |
| 10 | * sell copies of the Software, and to permit persons to whom the Software is |
| 11 | * furnished to do so, subject to the following conditions: |
| 12 | * |
| 13 | * The above copyright notice and this permission notice shall be included in all |
| 14 | * copies or substantial portions of the Software. |
| 15 | * |
| 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 22 | * SOFTWARE. |
| 23 | */ |
Chunosov | d6afedc | 2017-11-06 22:09:45 +0700 | [diff] [blame] | 24 | #include "arm_compute/core/CL/kernels/CLSoftmaxLayerKernel.h" |
Moritz Pflanzer | f6ad98a | 2017-07-21 17:19:58 +0100 | [diff] [blame] | 25 | #include "arm_compute/core/Types.h" |
| 26 | #include "arm_compute/runtime/CL/CLTensor.h" |
| 27 | #include "arm_compute/runtime/CL/CLTensorAllocator.h" |
| 28 | #include "arm_compute/runtime/CL/functions/CLSoftmaxLayer.h" |
Moritz Pflanzer | f6ad98a | 2017-07-21 17:19:58 +0100 | [diff] [blame] | 29 | #include "tests/CL/CLAccessor.h" |
| 30 | #include "tests/PaddingCalculator.h" |
Moritz Pflanzer | a09de0c | 2017-09-01 20:41:12 +0100 | [diff] [blame] | 31 | #include "tests/datasets/ShapeDatasets.h" |
| 32 | #include "tests/framework/Asserts.h" |
| 33 | #include "tests/framework/Macros.h" |
| 34 | #include "tests/framework/datasets/Datasets.h" |
| 35 | #include "tests/validation/Validation.h" |
| 36 | #include "tests/validation/fixtures/SoftmaxLayerFixture.h" |
Moritz Pflanzer | f6ad98a | 2017-07-21 17:19:58 +0100 | [diff] [blame] | 37 | |
| 38 | namespace arm_compute |
| 39 | { |
| 40 | namespace test |
| 41 | { |
| 42 | namespace validation |
| 43 | { |
| 44 | namespace |
| 45 | { |
| 46 | /** Tolerance for float operations */ |
Georgios Pinitas | 583137c | 2017-08-31 18:12:42 +0100 | [diff] [blame] | 47 | RelativeTolerance<half> tolerance_f16(half(0.2)); |
| 48 | RelativeTolerance<float> tolerance_f32(0.001f); |
steniu01 | 3e05e4e | 2017-08-25 17:18:01 +0100 | [diff] [blame] | 49 | |
Chunosov | f450caa | 2017-11-08 16:09:35 +0700 | [diff] [blame] | 50 | /** Tolerance for quantized operations */ |
| 51 | constexpr AbsoluteTolerance<uint8_t> tolerance_qasymm8(1); |
Sang-Hoon Park | 0779fec | 2019-11-13 17:08:12 +0000 | [diff] [blame] | 52 | constexpr AbsoluteTolerance<int8_t> tolerance_qasymm8_signed(1); |
| 53 | |
Moritz Pflanzer | f6ad98a | 2017-07-21 17:19:58 +0100 | [diff] [blame] | 54 | /** CNN data types */ |
| 55 | const auto CNNDataTypes = framework::dataset::make("DataType", |
| 56 | { |
Chunosov | f450caa | 2017-11-08 16:09:35 +0700 | [diff] [blame] | 57 | DataType::QASYMM8, |
Moritz Pflanzer | f6ad98a | 2017-07-21 17:19:58 +0100 | [diff] [blame] | 58 | DataType::F16, |
| 59 | DataType::F32, |
Moritz Pflanzer | f6ad98a | 2017-07-21 17:19:58 +0100 | [diff] [blame] | 60 | }); |
| 61 | } // namespace |
| 62 | |
| 63 | TEST_SUITE(CL) |
| 64 | TEST_SUITE(SoftmaxLayer) |
| 65 | |
Georgios Pinitas | 30902ed | 2017-11-14 15:32:57 +0000 | [diff] [blame] | 66 | // *INDENT-OFF* |
| 67 | // clang-format off |
SiCong Li | d004a7a | 2020-05-28 15:26:41 +0100 | [diff] [blame] | 68 | DATA_TEST_CASE(Validate, framework::DatasetMode::ALL, zip(zip(zip(zip( |
Georgios Pinitas | 17d6d3c | 2018-07-02 17:52:40 +0100 | [diff] [blame] | 69 | framework::dataset::make("InputInfo", { TensorInfo(TensorShape(27U, 13U), 1, DataType::F32), // Mismatching data types |
| 70 | TensorInfo(TensorShape(27U, 13U), 1, DataType::F32), // Mismatching shapes |
| 71 | TensorInfo(TensorShape(27U, 13U), 1, DataType::QASYMM8, // Invalid output quantization info |
Georgios Pinitas | 30902ed | 2017-11-14 15:32:57 +0000 | [diff] [blame] | 72 | QuantizationInfo(1.f/256, 12)), |
Georgios Pinitas | 17d6d3c | 2018-07-02 17:52:40 +0100 | [diff] [blame] | 73 | TensorInfo(TensorShape(27U, 13U), 1, DataType::F32), // Window shrink |
| 74 | TensorInfo(TensorShape(27U, 13U, 2U), 1, DataType::F32),// Invalid input dimensionality |
| 75 | TensorInfo(TensorShape(32U, 13U), 1, DataType::F32), |
| 76 | TensorInfo(TensorShape(32U, 13U), 1, DataType::QASYMM8, |
Georgios Pinitas | 30902ed | 2017-11-14 15:32:57 +0000 | [diff] [blame] | 77 | QuantizationInfo(1.f/256, 12)), |
Sang-Hoon Park | 0779fec | 2019-11-13 17:08:12 +0000 | [diff] [blame] | 78 | TensorInfo(TensorShape(32U, 13U), 1, DataType::QASYMM8_SIGNED, |
SiCong Li | d004a7a | 2020-05-28 15:26:41 +0100 | [diff] [blame] | 79 | QuantizationInfo(1.f/256, 12)), |
| 80 | TensorInfo(TensorShape(32U, 13U), 1, DataType::QASYMM8_SIGNED, // Invalid axis high |
| 81 | QuantizationInfo(1.f/256, 12)), |
| 82 | TensorInfo(TensorShape(32U, 13U), 1, DataType::QASYMM8_SIGNED, // Invalid axis low |
Sang-Hoon Park | 0779fec | 2019-11-13 17:08:12 +0000 | [diff] [blame] | 83 | QuantizationInfo(1.f/256, 12)) |
Georgios Pinitas | 30902ed | 2017-11-14 15:32:57 +0000 | [diff] [blame] | 84 | }), |
Georgios Pinitas | 17d6d3c | 2018-07-02 17:52:40 +0100 | [diff] [blame] | 85 | framework::dataset::make("OutputInfo",{ TensorInfo(TensorShape(27U, 13U), 1, DataType::F16), |
| 86 | TensorInfo(TensorShape(27U, 11U), 1, DataType::F32), |
| 87 | TensorInfo(TensorShape(27U, 13U), 1, DataType::QASYMM8, |
Georgios Pinitas | 30902ed | 2017-11-14 15:32:57 +0000 | [diff] [blame] | 88 | QuantizationInfo(1.f/256, 12)), |
Georgios Pinitas | 17d6d3c | 2018-07-02 17:52:40 +0100 | [diff] [blame] | 89 | TensorInfo(TensorShape(27U, 13U), 1, DataType::F32), |
Georgios Pinitas | 30902ed | 2017-11-14 15:32:57 +0000 | [diff] [blame] | 90 | TensorInfo(TensorShape(27U, 13U, 2U), 1, DataType::F32), |
Georgios Pinitas | 17d6d3c | 2018-07-02 17:52:40 +0100 | [diff] [blame] | 91 | TensorInfo(TensorShape(32U, 13U), 1, DataType::F32), |
| 92 | TensorInfo(TensorShape(32U, 13U), 1, DataType::QASYMM8, |
Georgios Pinitas | 30902ed | 2017-11-14 15:32:57 +0000 | [diff] [blame] | 93 | QuantizationInfo(1.f/256, 0)), |
Sang-Hoon Park | 0779fec | 2019-11-13 17:08:12 +0000 | [diff] [blame] | 94 | TensorInfo(TensorShape(32U, 13U), 1, DataType::QASYMM8_SIGNED, |
| 95 | QuantizationInfo(1.f/256, -128)), |
SiCong Li | 96209c7 | 2020-08-21 12:28:30 +0100 | [diff] [blame] | 96 | TensorInfo(TensorShape(32U, 13U), 1, DataType::QASYMM8_SIGNED, |
SiCong Li | d004a7a | 2020-05-28 15:26:41 +0100 | [diff] [blame] | 97 | QuantizationInfo(1.f/256, -128)), |
SiCong Li | 96209c7 | 2020-08-21 12:28:30 +0100 | [diff] [blame] | 98 | TensorInfo(TensorShape(32U, 13U), 1, DataType::QASYMM8_SIGNED, |
SiCong Li | d004a7a | 2020-05-28 15:26:41 +0100 | [diff] [blame] | 99 | QuantizationInfo(1.f/256, -128)), |
Georgios Pinitas | 30902ed | 2017-11-14 15:32:57 +0000 | [diff] [blame] | 100 | })), |
SiCong Li | d004a7a | 2020-05-28 15:26:41 +0100 | [diff] [blame] | 101 | framework::dataset::make("beta", { 1.0, |
| 102 | 2.0, |
| 103 | 1.0, |
| 104 | 2.0, |
| 105 | 1.0, |
| 106 | 2.0, |
| 107 | 1.0, |
| 108 | 2.0, |
| 109 | 1.0, |
| 110 | 2.0, |
| 111 | })), |
morgolock | 9c7fed8 | 2020-08-05 12:30:56 +0100 | [diff] [blame] | 112 | framework::dataset::make("axis", { |
SiCong Li | d004a7a | 2020-05-28 15:26:41 +0100 | [diff] [blame] | 113 | 0, |
| 114 | 0, |
| 115 | 0, |
| 116 | 0, |
SiCong Li | d004a7a | 2020-05-28 15:26:41 +0100 | [diff] [blame] | 117 | 0, |
SiCong Li | 96209c7 | 2020-08-21 12:28:30 +0100 | [diff] [blame] | 118 | 1, |
morgolock | 9c7fed8 | 2020-08-05 12:30:56 +0100 | [diff] [blame] | 119 | 0, |
SiCong Li | d004a7a | 2020-05-28 15:26:41 +0100 | [diff] [blame] | 120 | -1, |
SiCong Li | 96209c7 | 2020-08-21 12:28:30 +0100 | [diff] [blame] | 121 | 2, |
| 122 | -3, |
SiCong Li | d004a7a | 2020-05-28 15:26:41 +0100 | [diff] [blame] | 123 | })), |
| 124 | framework::dataset::make("Expected", { false, false, false, false, false, true, true, true, false, false })), |
morgolock | 9c7fed8 | 2020-08-05 12:30:56 +0100 | [diff] [blame] | 125 | input_info, output_info, beta, axis, expected) |
Georgios Pinitas | 30902ed | 2017-11-14 15:32:57 +0000 | [diff] [blame] | 126 | { |
morgolock | 9c7fed8 | 2020-08-05 12:30:56 +0100 | [diff] [blame] | 127 | ARM_COMPUTE_EXPECT(bool(CLSoftmaxLayer::validate(&input_info.clone()->set_is_resizable(false), &output_info.clone()->set_is_resizable(false), beta, axis)) == expected, framework::LogLevel::ERRORS); |
Georgios Pinitas | 30902ed | 2017-11-14 15:32:57 +0000 | [diff] [blame] | 128 | } |
| 129 | // clang-format on |
| 130 | // *INDENT-ON* |
| 131 | |
Moritz Pflanzer | f6ad98a | 2017-07-21 17:19:58 +0100 | [diff] [blame] | 132 | template <typename T> |
| 133 | using CLSoftmaxLayerFixture = SoftmaxValidationFixture<CLTensor, CLAccessor, CLSoftmaxLayer, T>; |
| 134 | |
| 135 | TEST_SUITE(Float) |
| 136 | TEST_SUITE(FP16) |
giuros01 | efbf6c8 | 2018-09-03 09:53:53 +0100 | [diff] [blame] | 137 | FIXTURE_DATA_TEST_CASE(RunSmall, CLSoftmaxLayerFixture<half>, framework::DatasetMode::ALL, combine(combine(combine(datasets::SoftmaxLayerSmallShapes(), |
| 138 | framework::dataset::make("DataType", DataType::F16)), |
| 139 | framework::dataset::make("Beta", { 1.0f, 2.0f })), |
SiCong Li | 96209c7 | 2020-08-21 12:28:30 +0100 | [diff] [blame] | 140 | framework::dataset::make("Axis", { 0, -1 }))) |
Moritz Pflanzer | f6ad98a | 2017-07-21 17:19:58 +0100 | [diff] [blame] | 141 | { |
| 142 | // Validate output |
| 143 | validate(CLAccessor(_target), _reference, tolerance_f16); |
| 144 | } |
giuros01 | efbf6c8 | 2018-09-03 09:53:53 +0100 | [diff] [blame] | 145 | FIXTURE_DATA_TEST_CASE(RunLarge, CLSoftmaxLayerFixture<half>, framework::DatasetMode::NIGHTLY, combine(combine(combine(datasets::SoftmaxLayerLargeShapes(), |
| 146 | framework::dataset::make("DataType", DataType::F16)), |
| 147 | framework::dataset::make("Beta", { 1.0f, 2.0f })), |
morgolock | 9c7fed8 | 2020-08-05 12:30:56 +0100 | [diff] [blame] | 148 | framework::dataset::make("Axis", { 0 }))) |
Moritz Pflanzer | f6ad98a | 2017-07-21 17:19:58 +0100 | [diff] [blame] | 149 | { |
| 150 | // Validate output |
| 151 | validate(CLAccessor(_target), _reference, tolerance_f16); |
| 152 | } |
giuros01 | efbf6c8 | 2018-09-03 09:53:53 +0100 | [diff] [blame] | 153 | FIXTURE_DATA_TEST_CASE(Run4D, CLSoftmaxLayerFixture<half>, framework::DatasetMode::NIGHTLY, combine(combine(combine(datasets::SoftmaxLayer4DShapes(), |
| 154 | framework::dataset::make("DataType", DataType::F16)), |
| 155 | framework::dataset::make("Beta", { 1.0f, 2.0f })), |
SiCong Li | 96209c7 | 2020-08-21 12:28:30 +0100 | [diff] [blame] | 156 | framework::dataset::make("Axis", { 0, -1, 2 }))) |
Giuseppe Rossini | 87e896a | 2018-08-24 10:24:12 +0100 | [diff] [blame] | 157 | { |
| 158 | // Validate output |
| 159 | validate(CLAccessor(_target), _reference, tolerance_f16); |
| 160 | } |
Moritz Pflanzer | f6ad98a | 2017-07-21 17:19:58 +0100 | [diff] [blame] | 161 | TEST_SUITE_END() |
| 162 | |
| 163 | TEST_SUITE(FP32) |
giuros01 | efbf6c8 | 2018-09-03 09:53:53 +0100 | [diff] [blame] | 164 | FIXTURE_DATA_TEST_CASE(RunSmall, CLSoftmaxLayerFixture<float>, framework::DatasetMode::ALL, combine(combine(combine(datasets::SoftmaxLayerSmallShapes(), |
| 165 | framework::dataset::make("DataType", DataType::F32)), |
| 166 | framework::dataset::make("Beta", { 1.0f, 2.0f })), |
SiCong Li | 96209c7 | 2020-08-21 12:28:30 +0100 | [diff] [blame] | 167 | framework::dataset::make("Axis", { 0, 1 }))) |
Moritz Pflanzer | f6ad98a | 2017-07-21 17:19:58 +0100 | [diff] [blame] | 168 | { |
| 169 | // Validate output |
| 170 | validate(CLAccessor(_target), _reference, tolerance_f32); |
| 171 | } |
giuros01 | efbf6c8 | 2018-09-03 09:53:53 +0100 | [diff] [blame] | 172 | FIXTURE_DATA_TEST_CASE(RunLarge, CLSoftmaxLayerFixture<float>, framework::DatasetMode::NIGHTLY, combine(combine(combine(datasets::SoftmaxLayerLargeShapes(), |
| 173 | framework::dataset::make("DataType", DataType::F32)), |
| 174 | framework::dataset::make("Beta", { 1.0f, 2.0f })), |
morgolock | 9c7fed8 | 2020-08-05 12:30:56 +0100 | [diff] [blame] | 175 | framework::dataset::make("Axis", { 0 }))) |
Moritz Pflanzer | f6ad98a | 2017-07-21 17:19:58 +0100 | [diff] [blame] | 176 | { |
| 177 | // Validate output |
| 178 | validate(CLAccessor(_target), _reference, tolerance_f32); |
| 179 | } |
giuros01 | efbf6c8 | 2018-09-03 09:53:53 +0100 | [diff] [blame] | 180 | FIXTURE_DATA_TEST_CASE(Run4D, CLSoftmaxLayerFixture<float>, framework::DatasetMode::NIGHTLY, combine(combine(combine(datasets::SoftmaxLayer4DShapes(), |
| 181 | framework::dataset::make("DataType", DataType::F32)), |
| 182 | framework::dataset::make("Beta", { 1.0f, 2.0f })), |
SiCong Li | 96209c7 | 2020-08-21 12:28:30 +0100 | [diff] [blame] | 183 | framework::dataset::make("Axis", { 0, -2, 3 }))) |
Giuseppe Rossini | 87e896a | 2018-08-24 10:24:12 +0100 | [diff] [blame] | 184 | { |
| 185 | // Validate output |
| 186 | validate(CLAccessor(_target), _reference, tolerance_f32); |
| 187 | } |
Moritz Pflanzer | f6ad98a | 2017-07-21 17:19:58 +0100 | [diff] [blame] | 188 | TEST_SUITE_END() |
| 189 | TEST_SUITE_END() |
| 190 | |
| 191 | template <typename T> |
Chunosov | f450caa | 2017-11-08 16:09:35 +0700 | [diff] [blame] | 192 | using CLSoftmaxLayerQuantizedFixture = SoftmaxValidationQuantizedFixture<CLTensor, CLAccessor, CLSoftmaxLayer, T>; |
| 193 | |
| 194 | TEST_SUITE(Quantized) |
| 195 | TEST_SUITE(QASYMM8) |
giuros01 | efbf6c8 | 2018-09-03 09:53:53 +0100 | [diff] [blame] | 196 | FIXTURE_DATA_TEST_CASE(RunSmall, CLSoftmaxLayerQuantizedFixture<uint8_t>, framework::DatasetMode::ALL, combine(combine(combine(datasets::SoftmaxLayerSmallShapes(), |
Pablo Palmier | a2b89ca | 2017-10-05 15:01:34 +0100 | [diff] [blame] | 197 | framework::dataset::make("DataType", DataType::QASYMM8)), |
giuros01 | efbf6c8 | 2018-09-03 09:53:53 +0100 | [diff] [blame] | 198 | combine(framework::dataset::make("QuantizationInfo", { QuantizationInfo(0.5f, -10) }), |
| 199 | framework::dataset::make("Beta", { 1.0f, 2.f }))), |
SiCong Li | 96209c7 | 2020-08-21 12:28:30 +0100 | [diff] [blame] | 200 | framework::dataset::make("Axis", { 0, 1 }))) |
Chunosov | f450caa | 2017-11-08 16:09:35 +0700 | [diff] [blame] | 201 | { |
| 202 | // Validate output |
| 203 | validate(CLAccessor(_target), _reference, tolerance_qasymm8); |
| 204 | } |
giuros01 | efbf6c8 | 2018-09-03 09:53:53 +0100 | [diff] [blame] | 205 | FIXTURE_DATA_TEST_CASE(RunLarge, CLSoftmaxLayerQuantizedFixture<uint8_t>, framework::DatasetMode::NIGHTLY, combine(combine(combine(datasets::SoftmaxLayerLargeShapes(), |
Pablo Palmier | a2b89ca | 2017-10-05 15:01:34 +0100 | [diff] [blame] | 206 | framework::dataset::make("DataType", DataType::QASYMM8)), |
| 207 | combine(framework::dataset::make("QuantizationInfo", { QuantizationInfo(0.5f, -10) }), |
giuros01 | efbf6c8 | 2018-09-03 09:53:53 +0100 | [diff] [blame] | 208 | framework::dataset::make("Beta", { 1.0f, 2.0f }))), |
morgolock | 9c7fed8 | 2020-08-05 12:30:56 +0100 | [diff] [blame] | 209 | framework::dataset::make("Axis", { 0 }))) |
Chunosov | f450caa | 2017-11-08 16:09:35 +0700 | [diff] [blame] | 210 | { |
| 211 | // Validate output |
| 212 | validate(CLAccessor(_target), _reference, tolerance_qasymm8); |
| 213 | } |
giuros01 | efbf6c8 | 2018-09-03 09:53:53 +0100 | [diff] [blame] | 214 | FIXTURE_DATA_TEST_CASE(Run4D, CLSoftmaxLayerQuantizedFixture<uint8_t>, framework::DatasetMode::NIGHTLY, combine(combine(combine(datasets::SoftmaxLayer4DShapes(), |
Giuseppe Rossini | 87e896a | 2018-08-24 10:24:12 +0100 | [diff] [blame] | 215 | framework::dataset::make("DataType", DataType::QASYMM8)), |
giuros01 | efbf6c8 | 2018-09-03 09:53:53 +0100 | [diff] [blame] | 216 | combine(framework::dataset::make("QuantizationInfo", { QuantizationInfo(0.5f, -10) }), |
| 217 | framework::dataset::make("Beta", { 1.0f, 2.0f }))), |
SiCong Li | 96209c7 | 2020-08-21 12:28:30 +0100 | [diff] [blame] | 218 | framework::dataset::make("Axis", { 0, -4, 1 }))) |
Giuseppe Rossini | 87e896a | 2018-08-24 10:24:12 +0100 | [diff] [blame] | 219 | { |
| 220 | // Validate output |
| 221 | validate(CLAccessor(_target), _reference, tolerance_qasymm8); |
| 222 | } |
| 223 | |
Sang-Hoon Park | 0779fec | 2019-11-13 17:08:12 +0000 | [diff] [blame] | 224 | TEST_SUITE_END() // QASYMM8 |
Chunosov | f450caa | 2017-11-08 16:09:35 +0700 | [diff] [blame] | 225 | |
Sang-Hoon Park | 0779fec | 2019-11-13 17:08:12 +0000 | [diff] [blame] | 226 | TEST_SUITE(QASYMM8_SIGNED) |
| 227 | |
| 228 | FIXTURE_DATA_TEST_CASE(RunSmall, CLSoftmaxLayerQuantizedFixture<int8_t>, framework::DatasetMode::ALL, combine(combine(combine(datasets::SoftmaxLayerSmallShapes(), |
| 229 | framework::dataset::make("DataType", DataType::QASYMM8_SIGNED)), |
| 230 | combine(framework::dataset::make("QuantizationInfo", { QuantizationInfo(0.5f, -10) }), |
| 231 | framework::dataset::make("Beta", { 1.0f, 2.f }))), |
SiCong Li | 96209c7 | 2020-08-21 12:28:30 +0100 | [diff] [blame] | 232 | framework::dataset::make("Axis", { 0, 1 }))) |
Sang-Hoon Park | 0779fec | 2019-11-13 17:08:12 +0000 | [diff] [blame] | 233 | { |
| 234 | // Validate output |
Sang-Hoon Park | 77d3d24 | 2020-08-10 22:50:17 +0100 | [diff] [blame] | 235 | validate(CLAccessor(_target), _reference, tolerance_qasymm8_signed); |
Sang-Hoon Park | 0779fec | 2019-11-13 17:08:12 +0000 | [diff] [blame] | 236 | } |
| 237 | |
| 238 | TEST_SUITE_END() // QASYMM8_SIGNED |
| 239 | TEST_SUITE_END() // Quantized |
| 240 | TEST_SUITE_END() // SoftmaxLayer |
| 241 | TEST_SUITE_END() // CL |
Moritz Pflanzer | f6ad98a | 2017-07-21 17:19:58 +0100 | [diff] [blame] | 242 | } // namespace validation |
| 243 | } // namespace test |
| 244 | } // namespace arm_compute |