blob: f42c187f8feb60f492de033fe235d1abbfbd4c3d [file] [log] [blame]
Georgios Pinitasdc460f12017-08-24 19:02:44 +01001/*
Michele Di Giorgiod556d7b2020-10-27 10:56:31 +00002 * Copyright (c) 2017-2021 Arm Limited.
Georgios Pinitasdc460f12017-08-24 19:02:44 +01003 *
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 */
24#include "arm_compute/core/Types.h"
25#include "arm_compute/runtime/CL/CLTensor.h"
26#include "arm_compute/runtime/CL/CLTensorAllocator.h"
27#include "arm_compute/runtime/CL/functions/CLPoolingLayer.h"
Georgios Pinitasdc460f12017-08-24 19:02:44 +010028#include "tests/CL/CLAccessor.h"
29#include "tests/PaddingCalculator.h"
Georgios Pinitas15997872018-02-19 13:58:22 +000030#include "tests/datasets/PoolingLayerDataset.h"
Moritz Pflanzera09de0c2017-09-01 20:41:12 +010031#include "tests/datasets/PoolingTypesDataset.h"
32#include "tests/datasets/ShapeDatasets.h"
33#include "tests/framework/Asserts.h"
34#include "tests/framework/Macros.h"
35#include "tests/framework/datasets/Datasets.h"
36#include "tests/validation/Validation.h"
37#include "tests/validation/fixtures/PoolingLayerFixture.h"
Georgios Pinitasdc460f12017-08-24 19:02:44 +010038
39namespace arm_compute
40{
41namespace test
42{
43namespace validation
44{
45namespace
46{
Michalis Spyrou064add62018-11-01 18:14:27 +000047/** Input data sets for floating-point data types */
Michalis Spyrou5ce99a22019-01-25 14:17:49 +000048const auto PoolingLayerDatasetFP = combine(combine(combine(datasets::PoolingTypes(), framework::dataset::make("PoolingSize", { Size2D(2, 2), Size2D(3, 3), Size2D(5, 7) })),
Georgios Pinitasadaae7e2017-10-30 15:56:32 +000049 framework::dataset::make("PadStride", { PadStrideInfo(1, 1, 0, 0), PadStrideInfo(2, 1, 0, 0), PadStrideInfo(1, 2, 1, 1), PadStrideInfo(2, 2, 1, 0) })),
50 framework::dataset::make("ExcludePadding", { true, false }));
Georgios Pinitasdc460f12017-08-24 19:02:44 +010051
Michalis Spyrou80943252019-01-10 17:19:50 +000052const auto PoolingLayerDatasetFPSmall = combine(combine(combine(datasets::PoolingTypes(), framework::dataset::make("PoolingSize", { Size2D(2, 2), Size2D(3, 3) })),
53 framework::dataset::make("PadStride", { PadStrideInfo(1, 1, 0, 0), PadStrideInfo(2, 1, 0, 0) })),
Michalis Spyrou064add62018-11-01 18:14:27 +000054 framework::dataset::make("ExcludePadding", { true, false }));
55
56/** Input data sets for asymmetric data type */
57const auto PoolingLayerDatasetQASYMM8 = combine(concat(combine(combine(framework::dataset::make("PoolingType",
58{
59 PoolingType::MAX, PoolingType::AVG,
60}),
Michalis Spyrou5ce99a22019-01-25 14:17:49 +000061framework::dataset::make("PoolingSize", { Size2D(2, 2), Size2D(3, 3) })),
62framework::dataset::make("PadStride", { PadStrideInfo(1, 1, 0, 0), PadStrideInfo(1, 2, 1, 1), PadStrideInfo(2, 2, 1, 0) })),
63combine(combine(framework::dataset::make("PoolingType", { PoolingType::AVG }), framework::dataset::make("PoolingSize", { Size2D(5, 7) })), framework::dataset::make("PadStride", { PadStrideInfo(2, 1, 0, 0) }))),
Michalis Spyrou064add62018-11-01 18:14:27 +000064framework::dataset::make("ExcludePadding", { true }));
65
66const auto PoolingLayerDatasetQASYMM8Small = combine(combine(combine(framework::dataset::make("PoolingType",
67{
68 PoolingType::MAX, PoolingType::AVG,
69}),
Michalis Spyrou80943252019-01-10 17:19:50 +000070framework::dataset::make("PoolingSize", { Size2D(2, 2), Size2D(5, 7) })),
71framework::dataset::make("PadStride", { PadStrideInfo(1, 2, 1, 1) })),
Michalis Spyrou064add62018-11-01 18:14:27 +000072framework::dataset::make("ExcludePadding", { true }));
Anton Lokhmotovaf6204c2017-11-08 09:34:19 +000073
Sheri Zhang801bbcb2020-08-03 20:11:56 +010074const auto PoolingLayerDatasetFPIndicesSmall = combine(combine(combine(framework::dataset::make("PoolingType",
75{ PoolingType::MAX }),
76framework::dataset::make("PoolingSize", { Size2D(2, 2) })),
77framework::dataset::make("PadStride", { PadStrideInfo(1, 1, 0, 0), PadStrideInfo(2, 2, 0, 0) })),
78framework::dataset::make("ExcludePadding", { true, false }));
79
Michele Di Giorgiocbbed282019-12-20 13:26:08 +000080constexpr AbsoluteTolerance<float> tolerance_f32(0.001f); /**< Tolerance value for comparing reference's output against implementation's output for 32-bit floating-point type */
81constexpr AbsoluteTolerance<float> tolerance_f16(0.01f); /**< Tolerance value for comparing reference's output against implementation's output for 16-bit floating-point type */
82constexpr AbsoluteTolerance<uint8_t> tolerance_qasymm8(1); /**< Tolerance value for comparing reference's output against implementation's output for 8-bit asymmetric type */
83constexpr AbsoluteTolerance<int8_t> tolerance_qasymm8_s(1); /**< Tolerance value for comparing reference's output against implementation's output for 8-bit signed asymmetric type */
Pablo Telloa52e4cf2019-04-01 14:55:18 +010084const auto pool_data_layout_dataset = framework::dataset::make("DataLayout", { DataLayout::NCHW, DataLayout::NHWC });
85
Sang-Hoon Park2aa7fd02019-09-18 13:39:00 +010086const auto pool_fp_mixed_precision_dataset = framework::dataset::make("FpMixedPrecision", { true, false });
87
Georgios Pinitasdc460f12017-08-24 19:02:44 +010088} // namespace
89
90TEST_SUITE(CL)
91TEST_SUITE(PoolingLayer)
92
Georgios Pinitas3faea252017-10-30 14:13:50 +000093// *INDENT-OFF*
94// clang-format off
95DATA_TEST_CASE(Validate, framework::DatasetMode::ALL, zip(zip(zip(
Vidhya Sudhan Loganathan7485d5a2018-07-04 09:34:00 +010096 framework::dataset::make("InputInfo", { TensorInfo(TensorShape(27U, 13U, 2U), 1, DataType::F32), // Mismatching data type
Vidhya Sudhan Loganathan7485d5a2018-07-04 09:34:00 +010097 TensorInfo(TensorShape(27U, 13U, 2U), 1, DataType::F32), // Invalid pad/size combination
98 TensorInfo(TensorShape(27U, 13U, 2U), 1, DataType::F32), // Invalid pad/size combination
99 TensorInfo(TensorShape(27U, 13U, 2U), 1, DataType::QASYMM8), // Invalid parameters
100 TensorInfo(TensorShape(15U, 13U, 5U), 1, DataType::F32), // Non-rectangular Global Pooling
101 TensorInfo(TensorShape(13U, 13U, 5U), 1, DataType::F32), // Invalid output Global Pooling
Gian Marco Iodice7333e1f2020-10-08 10:25:49 +0100102 TensorInfo(TensorShape(13U, 13U, 5U), 1, DataType::QASYMM8),
Vidhya Sudhan Loganathan7485d5a2018-07-04 09:34:00 +0100103 TensorInfo(TensorShape(13U, 13U, 5U), 1, DataType::F32),
Georgios Pinitas3faea252017-10-30 14:13:50 +0000104 }),
Vidhya Sudhan Loganathan7485d5a2018-07-04 09:34:00 +0100105 framework::dataset::make("OutputInfo",{ TensorInfo(TensorShape(25U, 11U, 2U), 1, DataType::F16),
Vidhya Sudhan Loganathan7485d5a2018-07-04 09:34:00 +0100106 TensorInfo(TensorShape(30U, 11U, 2U), 1, DataType::F32),
107 TensorInfo(TensorShape(25U, 16U, 2U), 1, DataType::F32),
108 TensorInfo(TensorShape(27U, 13U, 2U), 1, DataType::QASYMM8),
109 TensorInfo(TensorShape(1U, 1U, 5U), 1, DataType::F32),
110 TensorInfo(TensorShape(2U, 2U, 5U), 1, DataType::F32),
Michele Di Giorgio2c877192020-02-18 19:06:27 +0000111 TensorInfo(TensorShape(12U, 12U, 5U), 1, DataType::QASYMM8),
Vidhya Sudhan Loganathan7485d5a2018-07-04 09:34:00 +0100112 TensorInfo(TensorShape(1U, 1U, 5U), 1, DataType::F32),
Georgios Pinitas3faea252017-10-30 14:13:50 +0000113 })),
Sang-Hoon Park11fedda2020-01-15 14:44:04 +0000114 framework::dataset::make("PoolInfo", { PoolingLayerInfo(PoolingType::AVG, 3, DataLayout::NCHW, PadStrideInfo(1, 1, 0, 0)),
Sang-Hoon Park11fedda2020-01-15 14:44:04 +0000115 PoolingLayerInfo(PoolingType::AVG, 2, DataLayout::NCHW, PadStrideInfo(1, 1, 2, 0)),
116 PoolingLayerInfo(PoolingType::AVG, 2, DataLayout::NCHW, PadStrideInfo(1, 1, 0, 2)),
117 PoolingLayerInfo(PoolingType::L2, 3, DataLayout::NCHW, PadStrideInfo(1, 1, 0, 0)),
118 PoolingLayerInfo(PoolingType::AVG, DataLayout::NCHW),
119 PoolingLayerInfo(PoolingType::MAX, DataLayout::NCHW),
Michele Di Giorgio2c877192020-02-18 19:06:27 +0000120 PoolingLayerInfo(PoolingType::AVG, 2, DataLayout::NHWC, PadStrideInfo(), false),
Sang-Hoon Park11fedda2020-01-15 14:44:04 +0000121 PoolingLayerInfo(PoolingType::AVG, DataLayout::NCHW),
Georgios Pinitas3faea252017-10-30 14:13:50 +0000122 })),
Gian Marco Iodice7333e1f2020-10-08 10:25:49 +0100123 framework::dataset::make("Expected", { false, false, false, false, true, false, true, true })),
Georgios Pinitas3faea252017-10-30 14:13:50 +0000124 input_info, output_info, pool_info, expected)
125{
Giorgio Arena9f26b3e2017-11-28 14:35:00 +0000126 ARM_COMPUTE_EXPECT(bool(CLPoolingLayer::validate(&input_info.clone()->set_is_resizable(false), &output_info.clone()->set_is_resizable(false), pool_info)) == expected, framework::LogLevel::ERRORS);
Georgios Pinitas3faea252017-10-30 14:13:50 +0000127}
Gian Marco Iodice7333e1f2020-10-08 10:25:49 +0100128
Georgios Pinitas3faea252017-10-30 14:13:50 +0000129// clang-format on
130// *INDENT-ON*
131
Georgios Pinitasdc460f12017-08-24 19:02:44 +0100132template <typename T>
133using CLPoolingLayerFixture = PoolingLayerValidationFixture<CLTensor, CLAccessor, CLPoolingLayer, T>;
Manuel Bottinica62c6f2021-03-23 11:50:34 +0000134template <typename T>
135using CLPoolingLayerMixedDataLayoutFixture = PoolingLayerValidationFixture<CLTensor, CLAccessor, CLPoolingLayer, T, true>;
Georgios Pinitasdc460f12017-08-24 19:02:44 +0100136
Georgios Pinitas15997872018-02-19 13:58:22 +0000137template <typename T>
138using CLSpecialPoolingLayerFixture = SpecialPoolingLayerValidationFixture<CLTensor, CLAccessor, CLPoolingLayer, T>;
139
Sang-Hoon Park2aa7fd02019-09-18 13:39:00 +0100140template <typename T>
141using CLMixedPrecesionPoolingLayerFixture = PoolingLayerValidationMixedPrecisionFixture<CLTensor, CLAccessor, CLPoolingLayer, T>;
142
Sheri Zhang801bbcb2020-08-03 20:11:56 +0100143template <typename T>
144using CLPoolingLayerIndicesFixture = PoolingLayerIndicesValidationFixture<CLTensor, CLAccessor, CLPoolingLayer, T>;
145
Georgios Pinitasdc460f12017-08-24 19:02:44 +0100146TEST_SUITE(Float)
147TEST_SUITE(FP32)
Georgios Pinitas15997872018-02-19 13:58:22 +0000148FIXTURE_DATA_TEST_CASE(RunSpecial, CLSpecialPoolingLayerFixture<float>, framework::DatasetMode::ALL, datasets::PoolingLayerDatasetSpecial() * framework::dataset::make("DataType", DataType::F32))
Diego Lopez Recas61ef5bf2017-12-11 12:36:55 +0000149{
150 // Validate output
151 validate(CLAccessor(_target), _reference, tolerance_f32);
152}
Michalis Spyrou064add62018-11-01 18:14:27 +0000153FIXTURE_DATA_TEST_CASE(RunSmall, CLPoolingLayerFixture<float>, framework::DatasetMode::PRECOMMIT, combine(combine(datasets::SmallShapes(), combine(PoolingLayerDatasetFPSmall,
154 framework::dataset::make("DataType",
155 DataType::F32))),
Pablo Telloa52e4cf2019-04-01 14:55:18 +0100156 pool_data_layout_dataset))
Georgios Pinitasdc460f12017-08-24 19:02:44 +0100157{
158 // Validate output
159 validate(CLAccessor(_target), _reference, tolerance_f32);
160}
Manuel Bottinica62c6f2021-03-23 11:50:34 +0000161FIXTURE_DATA_TEST_CASE(RunMixedDataLayout, CLPoolingLayerMixedDataLayoutFixture<float>, framework::DatasetMode::PRECOMMIT, combine(combine(datasets::SmallShapes(),
162 combine(combine(combine(combine(datasets::PoolingTypes(),
163 framework::dataset::make("PoolingSize", { Size2D(2, 2) })),
164 framework::dataset::make("PadStride", { PadStrideInfo(2, 1, 0, 0) })),
165 framework::dataset::make("ExcludePadding", { false })),
166 framework::dataset::make("DataType", DataType::F32))),
167 pool_data_layout_dataset))
168{
169 // Validate output
170 validate(CLAccessor(_target), _reference, tolerance_f32);
171}
Michalis Spyrou57dac842018-03-01 16:03:50 +0000172FIXTURE_DATA_TEST_CASE(RunLarge, CLPoolingLayerFixture<float>, framework::DatasetMode::NIGHTLY, combine(combine(datasets::LargeShapes(), combine(PoolingLayerDatasetFP,
173 framework::dataset::make("DataType",
174 DataType::F32))),
Pablo Telloa52e4cf2019-04-01 14:55:18 +0100175 pool_data_layout_dataset))
Georgios Pinitasdc460f12017-08-24 19:02:44 +0100176{
177 // Validate output
178 validate(CLAccessor(_target), _reference, tolerance_f32);
179}
Sheri Zhang801bbcb2020-08-03 20:11:56 +0100180
181FIXTURE_DATA_TEST_CASE(RunSmallIndices, CLPoolingLayerIndicesFixture<float>, framework::DatasetMode::PRECOMMIT, combine(combine(datasets::SmallShapes(), combine(PoolingLayerDatasetFPIndicesSmall,
182 framework::dataset::make("DataType",
183 DataType::F32))),
184 pool_data_layout_dataset))
185{
186 // Validate output
187 validate(CLAccessor(_target), _reference, tolerance_f32);
188 validate(CLAccessor(_target_indices), _ref_indices);
189}
190
Michalis Spyrou57dac842018-03-01 16:03:50 +0000191TEST_SUITE_END() // FP32
Georgios Pinitasdc460f12017-08-24 19:02:44 +0100192
193TEST_SUITE(FP16)
Sang-Hoon Park2aa7fd02019-09-18 13:39:00 +0100194FIXTURE_DATA_TEST_CASE(RunSmall, CLMixedPrecesionPoolingLayerFixture<half>, framework::DatasetMode::PRECOMMIT, combine(combine(combine(datasets::SmallShapes(), combine(PoolingLayerDatasetFPSmall,
195 framework::dataset::make("DataType", DataType::F16))),
196 pool_data_layout_dataset),
197 pool_fp_mixed_precision_dataset))
Georgios Pinitasdc460f12017-08-24 19:02:44 +0100198{
199 // Validate output
200 validate(CLAccessor(_target), _reference, tolerance_f16);
201}
Sang-Hoon Park2aa7fd02019-09-18 13:39:00 +0100202FIXTURE_DATA_TEST_CASE(RunLarge, CLMixedPrecesionPoolingLayerFixture<half>, framework::DatasetMode::NIGHTLY, combine(combine(combine(datasets::LargeShapes(), combine(PoolingLayerDatasetFP,
203 framework::dataset::make("DataType", DataType::F16))),
204 pool_data_layout_dataset),
205 pool_fp_mixed_precision_dataset))
Georgios Pinitasdc460f12017-08-24 19:02:44 +0100206{
207 // Validate output
208 validate(CLAccessor(_target), _reference, tolerance_f16);
209}
Sheri Zhang801bbcb2020-08-03 20:11:56 +0100210FIXTURE_DATA_TEST_CASE(RunSmallIndices, CLPoolingLayerIndicesFixture<half>, framework::DatasetMode::PRECOMMIT, combine(combine(datasets::SmallShapes(), combine(PoolingLayerDatasetFPIndicesSmall,
211 framework::dataset::make("DataType",
212 DataType::F16))),
213 pool_data_layout_dataset))
214{
215 // Validate output
216 validate(CLAccessor(_target), _reference, tolerance_f32);
217 validate(CLAccessor(_target_indices), _ref_indices);
218}
Michalis Spyrou57dac842018-03-01 16:03:50 +0000219TEST_SUITE_END() // FP16
220TEST_SUITE_END() // Float
Georgios Pinitasdc460f12017-08-24 19:02:44 +0100221
Anton Lokhmotovaf6204c2017-11-08 09:34:19 +0000222TEST_SUITE(Quantized)
223
224template <typename T>
225using CLPoolingLayerQuantizedFixture = PoolingLayerValidationQuantizedFixture<CLTensor, CLAccessor, CLPoolingLayer, T>;
Manuel Bottinica62c6f2021-03-23 11:50:34 +0000226template <typename T>
227using CLPoolingLayerQuantizedMixedDataLayoutFixture = PoolingLayerValidationQuantizedFixture<CLTensor, CLAccessor, CLPoolingLayer, T, true>;
Anton Lokhmotovaf6204c2017-11-08 09:34:19 +0000228
229TEST_SUITE(QASYMM8)
Michele Di Giorgiod556d7b2020-10-27 10:56:31 +0000230FIXTURE_DATA_TEST_CASE(RunSmall, CLPoolingLayerQuantizedFixture<uint8_t>, framework::DatasetMode::PRECOMMIT, combine(combine(combine(combine(datasets::SmallShapes(),
231 combine(PoolingLayerDatasetQASYMM8Small,
232 framework::dataset::make("DataType", DataType::QASYMM8))),
233 pool_data_layout_dataset),
234 framework::dataset::make("InputQuantInfo", { QuantizationInfo(1.f / 255.f, 10), QuantizationInfo(1.f / 255.f, 10) })),
235 framework::dataset::make("OutputQuantInfo", { QuantizationInfo(1.f / 255.f, 5), QuantizationInfo(1.f / 255.f, 10) })))
Anton Lokhmotovaf6204c2017-11-08 09:34:19 +0000236{
237 // Validate output
238 validate(CLAccessor(_target), _reference, tolerance_qasymm8);
239}
Manuel Bottinica62c6f2021-03-23 11:50:34 +0000240FIXTURE_DATA_TEST_CASE(RunMixedDataLayout, CLPoolingLayerQuantizedMixedDataLayoutFixture<uint8_t>, framework::DatasetMode::PRECOMMIT, combine(combine(combine(combine(datasets::SmallShapes(),
241 combine(combine(combine(combine(framework::dataset::make("PoolingType", { PoolingType::MAX, PoolingType::AVG }),
242 framework::dataset::make("PoolingSize", { Size2D(2, 2) })),
243 framework::dataset::make("PadStride", { PadStrideInfo(1, 2, 1, 1) })),
244 framework::dataset::make("ExcludePadding", { true })),
245 framework::dataset::make("DataType", DataType::QASYMM8))),
246 framework::dataset::make("DataLayout", { DataLayout::NHWC, DataLayout::NCHW })),
247 framework::dataset::make("InputQuantInfo", { QuantizationInfo(1.f / 255.f, 10) })),
248 framework::dataset::make("OutputQuantInfo", { QuantizationInfo(1.f / 255.f, 5) })))
249{
250 // Validate output
251 validate(CLAccessor(_target), _reference, tolerance_qasymm8);
252}
Michele Di Giorgiocbbed282019-12-20 13:26:08 +0000253TEST_SUITE_END() // QASYMM8
254
255TEST_SUITE(QASYMM8_SIGNED)
Michele Di Giorgiod556d7b2020-10-27 10:56:31 +0000256FIXTURE_DATA_TEST_CASE(RunSmall, CLPoolingLayerQuantizedFixture<int8_t>, framework::DatasetMode::PRECOMMIT, combine(combine(combine(combine(datasets::SmallShapes(),
257 combine(PoolingLayerDatasetQASYMM8Small,
258 framework::dataset::make("DataType", DataType::QASYMM8_SIGNED))),
259 pool_data_layout_dataset),
260 framework::dataset::make("InputQuantInfo", { QuantizationInfo(1.f / 127.f, -10), QuantizationInfo(1.f / 127.f, -10) })),
261 framework::dataset::make("OutputQuantInfo", { QuantizationInfo(1.f / 127.f, -5), QuantizationInfo(1.f / 127.f, -10) })))
Anton Lokhmotovaf6204c2017-11-08 09:34:19 +0000262{
263 // Validate output
Michele Di Giorgiocbbed282019-12-20 13:26:08 +0000264 validate(CLAccessor(_target), _reference, tolerance_qasymm8_s);
Anton Lokhmotovaf6204c2017-11-08 09:34:19 +0000265}
Manuel Bottinica62c6f2021-03-23 11:50:34 +0000266FIXTURE_DATA_TEST_CASE(RunMixedDataLayout, CLPoolingLayerQuantizedMixedDataLayoutFixture<int8_t>, framework::DatasetMode::PRECOMMIT, combine(combine(combine(combine(datasets::SmallShapes(),
267 combine(combine(combine(combine(framework::dataset::make("PoolingType", { PoolingType::MAX, PoolingType::AVG }),
268 framework::dataset::make("PoolingSize", { Size2D(2, 2) })),
269 framework::dataset::make("PadStride", { PadStrideInfo(1, 2, 1, 1) })),
270 framework::dataset::make("ExcludePadding", { true })),
271 framework::dataset::make("DataType", DataType::QASYMM8_SIGNED))),
272 framework::dataset::make("DataLayout", { DataLayout::NHWC, DataLayout::NCHW })),
273 framework::dataset::make("InputQuantInfo", { QuantizationInfo(1.f / 127.f, -10) })),
274 framework::dataset::make("OutputQuantInfo", { QuantizationInfo(1.f / 127.f, -10) })))
275{
276 // Validate output
277 validate(CLAccessor(_target), _reference, tolerance_qasymm8_s);
278}
Michele Di Giorgiocbbed282019-12-20 13:26:08 +0000279TEST_SUITE_END() // QASYMM8_SIGNED
Michalis Spyrou57dac842018-03-01 16:03:50 +0000280TEST_SUITE_END() // Quantized
Michalis Spyrou57dac842018-03-01 16:03:50 +0000281TEST_SUITE_END() // PoolingLayer
282TEST_SUITE_END() // CL
Georgios Pinitasdc460f12017-08-24 19:02:44 +0100283} // namespace validation
284} // namespace test
285} // namespace arm_compute