blob: 9a6af4983659c15678ab2fdef7487cd3e0e4ebc3 [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/NEON/functions/NEPoolingLayer.h"
26#include "arm_compute/runtime/Tensor.h"
27#include "arm_compute/runtime/TensorAllocator.h"
Georgios Pinitasdc460f12017-08-24 19:02:44 +010028#include "tests/NEON/Accessor.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 +010038namespace arm_compute
39{
40namespace test
41{
42namespace validation
43{
44namespace
45{
Michalis Spyrou064add62018-11-01 18:14:27 +000046/** Input data sets for float data types */
Isabella Gottardi7567f5f2018-01-30 15:26:00 +000047
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(7, 7), Size2D(3, 7), Size2D(7, 8) })),
49 framework::dataset::make("PadStride", { PadStrideInfo(1, 1, 0, 0), PadStrideInfo(1, 2, 1, 1), PadStrideInfo(2, 2, 1, 0) })),
Georgios Pinitasadaae7e2017-10-30 15:56:32 +000050 framework::dataset::make("ExcludePadding", { true, false }));
Michalis Spyrouaeebe4a2019-01-09 14:21:03 +000051const auto PoolingLayerDatasetFPSmall = combine(combine(combine(datasets::PoolingTypes(), framework::dataset::make("PoolingSize", { Size2D(2, 2), Size2D(3, 3) })),
52 framework::dataset::make("PadStride", { PadStrideInfo(1, 1, 0, 0), PadStrideInfo(2, 1, 0, 0) })),
Michalis Spyrou064add62018-11-01 18:14:27 +000053 framework::dataset::make("ExcludePadding", { true, false }));
Georgios Pinitasdc460f12017-08-24 19:02:44 +010054
Michalis Spyrou064add62018-11-01 18:14:27 +000055/** Input data sets for asymmetric data type */
Isabella Gottardi7567f5f2018-01-30 15:26:00 +000056
Michele Di Giorgiod556d7b2020-10-27 10:56:31 +000057const auto PoolingLayerDatasetQASYMM8Small = combine(combine(combine(framework::dataset::make("PoolingType", { PoolingType::MAX, PoolingType::AVG }), framework::dataset::make("PoolingSize", { Size2D(2, 2), Size2D(3, 3), Size2D(3, 7), Size2D(7, 7) })),
Michalis Spyrouaeebe4a2019-01-09 14:21:03 +000058 framework::dataset::make("PadStride", { PadStrideInfo(1, 1, 0, 0), PadStrideInfo(1, 2, 1, 1) })),
Michalis Spyrou064add62018-11-01 18:14:27 +000059 framework::dataset::make("ExcludePadding", { true }));
Georgios Pinitas55186712018-01-08 17:37:12 +000060
Georgios Pinitasdc460f12017-08-24 19:02:44 +010061constexpr AbsoluteTolerance<float> tolerance_f32(0.001f); /**< Tolerance value for comparing reference's output against implementation's output for float types */
Ioan-Cristian Szabo5edbd1c2017-11-13 13:34:08 +000062#ifdef __ARM_FEATURE_FP16_VECTOR_ARITHMETIC
Manuel Bottinib4bb8272019-12-18 18:01:27 +000063constexpr AbsoluteTolerance<float> tolerance_f16(0.01f); /**< Tolerance value for comparing reference's output against implementation's output for float types */
64#endif /* __ARM_FEATURE_FP16_VECTOR_ARITHMETIC */
65constexpr AbsoluteTolerance<uint8_t> tolerance_qasymm8(1); /**< Tolerance value for comparing reference's output against implementation's output for unsigned 8-bit asymmetric type */
66constexpr AbsoluteTolerance<int8_t> tolerance_qasymm8_s(1); /**< Tolerance value for comparing reference's output against implementation's output for signed 8-bit asymmetric type */
Pablo Telloa52e4cf2019-04-01 14:55:18 +010067const auto pool_data_layout_dataset = framework::dataset::make("DataLayout", { DataLayout::NCHW, DataLayout::NHWC });
68
Michele Di Giorgiod556d7b2020-10-27 10:56:31 +000069const auto qasymm8_in_qinfo_dataset = framework::dataset::make("InputQuantInfo", { QuantizationInfo(.2f, 10) });
70const auto qasymm8_out_qinfo_dataset = framework::dataset::make("OutputQuantInfo",
71{
72 QuantizationInfo(.2f, 10), // Same qinfo
73 QuantizationInfo(.1f, 5), // Multiplier <= 1
74 QuantizationInfo(2.f, 3) // Multiplier > 1
75});
76
77const auto qasymm8_signed_in_qinfo_dataset = framework::dataset::make("InputQuantInfo", { QuantizationInfo(.2f, -10) });
78const auto qasymm8_signed_out_qinfo_dataset = framework::dataset::make("OutputQuantInfo",
79{
80 QuantizationInfo(.2f, -10), // Same qinfo
81 QuantizationInfo(.1f, -5), // Multiplier <= 1
82 QuantizationInfo(2.f, -3) // Multiplier > 1
83});
Georgios Pinitasdc460f12017-08-24 19:02:44 +010084} // namespace
85
86TEST_SUITE(NEON)
87TEST_SUITE(PoolingLayer)
88
Michalis Spyrouafa5d812017-11-30 14:25:57 +000089// *INDENT-OFF*
90// clang-format off
91DATA_TEST_CASE(Validate, framework::DatasetMode::ALL, zip(zip(zip(
Vidhya Sudhan Loganathan7485d5a2018-07-04 09:34:00 +010092 framework::dataset::make("InputInfo", { TensorInfo(TensorShape(27U, 13U, 2U), 1, DataType::F32), // Mismatching data type
93 TensorInfo(TensorShape(27U, 13U, 2U), 1, DataType::F32), // Window shrink
94 TensorInfo(TensorShape(27U, 13U, 2U), 1, DataType::F32), // Invalid pad/size combination
95 TensorInfo(TensorShape(27U, 13U, 2U), 1, DataType::F32), // Invalid pad/size combination
96 TensorInfo(TensorShape(15U, 13U, 5U), 1, DataType::F32), // Non-rectangular Global Pooling
97 TensorInfo(TensorShape(13U, 13U, 5U), 1, DataType::F32), // Invalid output Global Pooling
Michele Di Giorgio2c877192020-02-18 19:06:27 +000098 TensorInfo(TensorShape(13U, 13U, 5U), 1, DataType::QASYMM8), // Invalid exclude_padding = false with quantized type, no actual padding and NHWC
Vidhya Sudhan Loganathan7485d5a2018-07-04 09:34:00 +010099 TensorInfo(TensorShape(13U, 13U, 5U), 1, DataType::F32),
Michalis Spyrouafa5d812017-11-30 14:25:57 +0000100 }),
Vidhya Sudhan Loganathan7485d5a2018-07-04 09:34:00 +0100101 framework::dataset::make("OutputInfo",{ TensorInfo(TensorShape(25U, 11U, 2U), 1, DataType::F16),
102 TensorInfo(TensorShape(25U, 10U, 2U), 1, DataType::F32),
103 TensorInfo(TensorShape(30U, 11U, 2U), 1, DataType::F32),
104 TensorInfo(TensorShape(25U, 16U, 2U), 1, DataType::F32),
105 TensorInfo(TensorShape(1U, 1U, 5U), 1, DataType::F32),
106 TensorInfo(TensorShape(2U, 2U, 5U), 1, DataType::F32),
Michele Di Giorgio2c877192020-02-18 19:06:27 +0000107 TensorInfo(TensorShape(12U, 12U, 5U), 1, DataType::QASYMM8),
Vidhya Sudhan Loganathan7485d5a2018-07-04 09:34:00 +0100108 TensorInfo(TensorShape(25U, 11U, 2U), 1, DataType::F32),
Michalis Spyrouafa5d812017-11-30 14:25:57 +0000109 })),
Sang-Hoon Park11fedda2020-01-15 14:44:04 +0000110 framework::dataset::make("PoolInfo", { PoolingLayerInfo(PoolingType::AVG, 3, DataLayout::NCHW, PadStrideInfo(1, 1, 0, 0)),
111 PoolingLayerInfo(PoolingType::AVG, 3, DataLayout::NCHW, PadStrideInfo(1, 1, 0, 0)),
112 PoolingLayerInfo(PoolingType::AVG, 2, DataLayout::NCHW, PadStrideInfo(1, 1, 2, 0)),
113 PoolingLayerInfo(PoolingType::AVG, 2, DataLayout::NCHW, PadStrideInfo(1, 1, 0, 2)),
114 PoolingLayerInfo(PoolingType::AVG, DataLayout::NCHW),
115 PoolingLayerInfo(PoolingType::MAX, DataLayout::NCHW),
Michele Di Giorgio2c877192020-02-18 19:06:27 +0000116 PoolingLayerInfo(PoolingType::AVG, 2, DataLayout::NHWC, PadStrideInfo(), false),
Sang-Hoon Park11fedda2020-01-15 14:44:04 +0000117 PoolingLayerInfo(PoolingType::AVG, DataLayout::NCHW),
Michalis Spyrouafa5d812017-11-30 14:25:57 +0000118 })),
Michele Di Giorgio2c877192020-02-18 19:06:27 +0000119 framework::dataset::make("Expected", { false, false, false, false, true, false, false, false, true })),
Michalis Spyrouafa5d812017-11-30 14:25:57 +0000120 input_info, output_info, pool_info, expected)
121{
122 bool is_valid = bool(NEPoolingLayer::validate(&input_info.clone()->set_is_resizable(false), &output_info.clone()->set_is_resizable(false), pool_info));
123 ARM_COMPUTE_EXPECT(is_valid == expected, framework::LogLevel::ERRORS);
124}
125// clang-format on
126// *INDENT-ON*
127
Georgios Pinitasdc460f12017-08-24 19:02:44 +0100128template <typename T>
morgolockcc1f6c92020-03-24 09:26:48 +0000129using NEPoolingLayerIndicesFixture = PoolingLayerIndicesValidationFixture<Tensor, Accessor, NEPoolingLayer, T>;
130
131template <typename T>
Georgios Pinitasdc460f12017-08-24 19:02:44 +0100132using NEPoolingLayerFixture = PoolingLayerValidationFixture<Tensor, Accessor, NEPoolingLayer, T>;
Manuel Bottinica62c6f2021-03-23 11:50:34 +0000133template <typename T>
134using NEPoolingLayerMixedDataLayoutFixture = PoolingLayerValidationFixture<Tensor, Accessor, NEPoolingLayer, T, true>;
Georgios Pinitasdc460f12017-08-24 19:02:44 +0100135
Georgios Pinitas15997872018-02-19 13:58:22 +0000136template <typename T>
137using NESpecialPoolingLayerFixture = SpecialPoolingLayerValidationFixture<Tensor, Accessor, NEPoolingLayer, T>;
138
morgolockcc1f6c92020-03-24 09:26:48 +0000139const auto PoolingLayerIndicesDatasetFPSmall = combine(combine(combine(framework::dataset::make("PoolType", { PoolingType::MAX }), framework::dataset::make("PoolingSize", { Size2D(2, 2) })),
140 framework::dataset::make("PadStride", { PadStrideInfo(1, 1, 0, 0), PadStrideInfo(2, 1, 0, 0) })),
141 framework::dataset::make("ExcludePadding", { true, false }));
142
Georgios Pinitasdc460f12017-08-24 19:02:44 +0100143TEST_SUITE(Float)
144TEST_SUITE(FP32)
morgolockcc1f6c92020-03-24 09:26:48 +0000145FIXTURE_DATA_TEST_CASE(RunIndices, NEPoolingLayerIndicesFixture<float>, framework::DatasetMode::PRECOMMIT, combine(combine(datasets::SmallShapes(), combine(PoolingLayerIndicesDatasetFPSmall,
146 framework::dataset::make("DataType",
147 DataType::F32))),
morgolocke383c352020-04-03 16:57:46 +0100148 framework::dataset::make("DataLayout", { DataLayout::NCHW, DataLayout::NHWC })
morgolockcc1f6c92020-03-24 09:26:48 +0000149
150 ))
151{
152 // Validate output
153 validate(Accessor(_target), _reference, tolerance_f32);
154 validate(Accessor(_target_indices), _ref_indices);
155}
156
Georgios Pinitas15997872018-02-19 13:58:22 +0000157FIXTURE_DATA_TEST_CASE(RunSpecial, NESpecialPoolingLayerFixture<float>, framework::DatasetMode::ALL, datasets::PoolingLayerDatasetSpecial() * framework::dataset::make("DataType", DataType::F32))
158{
159 // Validate output
160 validate(Accessor(_target), _reference, tolerance_f32);
161}
Michalis Spyrou064add62018-11-01 18:14:27 +0000162FIXTURE_DATA_TEST_CASE(RunSmall, NEPoolingLayerFixture<float>, framework::DatasetMode::PRECOMMIT, combine(combine(datasets::SmallShapes(), combine(PoolingLayerDatasetFPSmall,
163 framework::dataset::make("DataType",
164 DataType::F32))),
Pablo Telloa52e4cf2019-04-01 14:55:18 +0100165 pool_data_layout_dataset))
Georgios Pinitasdc460f12017-08-24 19:02:44 +0100166{
167 // Validate output
168 validate(Accessor(_target), _reference, tolerance_f32);
169}
Manuel Bottinica62c6f2021-03-23 11:50:34 +0000170FIXTURE_DATA_TEST_CASE(RunMixedDataLayout, NEPoolingLayerMixedDataLayoutFixture<float>, framework::DatasetMode::PRECOMMIT, combine(combine(datasets::SmallShapes(),
171 combine(combine(combine(combine(datasets::PoolingTypes(),
172 framework::dataset::make("PoolingSize", { Size2D(2, 2) })),
173 framework::dataset::make("PadStride", { PadStrideInfo(2, 1, 0, 0) })),
174 framework::dataset::make("ExcludePadding", { false })),
175 framework::dataset::make("DataType", DataType::F32))),
176 pool_data_layout_dataset))
177{
178 // Validate output
179 validate(Accessor(_target), _reference, tolerance_f32);
180}
Michalis Spyrou57dac842018-03-01 16:03:50 +0000181FIXTURE_DATA_TEST_CASE(RunLarge, NEPoolingLayerFixture<float>, framework::DatasetMode::NIGHTLY, combine(combine(datasets::LargeShapes(), combine(PoolingLayerDatasetFP,
182 framework::dataset::make("DataType",
183 DataType::F32))),
Pablo Telloa52e4cf2019-04-01 14:55:18 +0100184 pool_data_layout_dataset))
Georgios Pinitasdc460f12017-08-24 19:02:44 +0100185{
186 // Validate output
187 validate(Accessor(_target), _reference, tolerance_f32);
188}
Michalis Spyrou57dac842018-03-01 16:03:50 +0000189TEST_SUITE_END() // FP32
Georgios Pinitasdc460f12017-08-24 19:02:44 +0100190
Ioan-Cristian Szabo5edbd1c2017-11-13 13:34:08 +0000191#ifdef __ARM_FEATURE_FP16_VECTOR_ARITHMETIC
Georgios Pinitasdc460f12017-08-24 19:02:44 +0100192TEST_SUITE(FP16)
Michalis Spyrou064add62018-11-01 18:14:27 +0000193FIXTURE_DATA_TEST_CASE(RunSmall, NEPoolingLayerFixture<half>, framework::DatasetMode::PRECOMMIT, combine(combine(datasets::SmallShapes(), combine(PoolingLayerDatasetFPSmall,
194 framework::dataset::make("DataType", DataType::F16))),
Pablo Telloa52e4cf2019-04-01 14:55:18 +0100195 pool_data_layout_dataset))
Georgios Pinitasdc460f12017-08-24 19:02:44 +0100196{
197 // Validate output
198 validate(Accessor(_target), _reference, tolerance_f16);
199}
Michalis Spyrou57dac842018-03-01 16:03:50 +0000200FIXTURE_DATA_TEST_CASE(RunLarge, NEPoolingLayerFixture<half>, framework::DatasetMode::NIGHTLY, combine(combine(datasets::LargeShapes(), combine(PoolingLayerDatasetFP,
201 framework::dataset::make("DataType", DataType::F16))),
Pablo Telloa52e4cf2019-04-01 14:55:18 +0100202 pool_data_layout_dataset))
Georgios Pinitasdc460f12017-08-24 19:02:44 +0100203{
204 // Validate output
205 validate(Accessor(_target), _reference, tolerance_f16);
206}
Michalis Spyrou57dac842018-03-01 16:03:50 +0000207TEST_SUITE_END() // FP16
208#endif /* __ARM_FEATURE_FP16_VECTOR_ARITHMETIC */
209TEST_SUITE_END() // Float
Georgios Pinitasdc460f12017-08-24 19:02:44 +0100210
Georgios Pinitas55186712018-01-08 17:37:12 +0000211TEST_SUITE(Quantized)
212
213template <typename T>
214using NEPoolingLayerQuantizedFixture = PoolingLayerValidationQuantizedFixture<Tensor, Accessor, NEPoolingLayer, T>;
Manuel Bottinica62c6f2021-03-23 11:50:34 +0000215template <typename T>
216using NEPoolingLayerQuantizedMixedDataLayoutFixture = PoolingLayerValidationQuantizedFixture<Tensor, Accessor, NEPoolingLayer, T, true>;
Georgios Pinitas55186712018-01-08 17:37:12 +0000217
218TEST_SUITE(QASYMM8)
Michele Di Giorgiod556d7b2020-10-27 10:56:31 +0000219FIXTURE_DATA_TEST_CASE(RunSmallNCHW, NEPoolingLayerQuantizedFixture<uint8_t>, framework::DatasetMode::PRECOMMIT, combine(combine(combine(combine(datasets::SmallShapes(),
220 combine(PoolingLayerDatasetQASYMM8Small,
221 framework::dataset::make("DataType", DataType::QASYMM8))),
222 framework::dataset::make("DataLayout", { DataLayout::NCHW })),
223 qasymm8_in_qinfo_dataset),
224 qasymm8_in_qinfo_dataset))
225{
226 // Validate output
227 validate(Accessor(_target), _reference, tolerance_qasymm8);
228}
229FIXTURE_DATA_TEST_CASE(RunSmall, NEPoolingLayerQuantizedFixture<uint8_t>, framework::DatasetMode::PRECOMMIT, combine(combine(combine(combine(datasets::SmallShapes(),
230 combine(PoolingLayerDatasetQASYMM8Small,
231 framework::dataset::make("DataType", DataType::QASYMM8))),
232 framework::dataset::make("DataLayout", { DataLayout::NHWC })),
233 qasymm8_in_qinfo_dataset),
234 qasymm8_out_qinfo_dataset))
Georgios Pinitas55186712018-01-08 17:37:12 +0000235{
236 // Validate output
237 validate(Accessor(_target), _reference, tolerance_qasymm8);
238}
Manuel Bottinica62c6f2021-03-23 11:50:34 +0000239FIXTURE_DATA_TEST_CASE(RunMixedDataLayout, NEPoolingLayerQuantizedMixedDataLayoutFixture<uint8_t>, framework::DatasetMode::PRECOMMIT, combine(combine(combine(combine(datasets::SmallShapes(),
240 combine(combine(combine(combine(framework::dataset::make("PoolingType", { PoolingType::MAX, PoolingType::AVG }),
241 framework::dataset::make("PoolingSize", { Size2D(2, 2) })),
242 framework::dataset::make("PadStride", { PadStrideInfo(1, 2, 1, 1) })),
243 framework::dataset::make("ExcludePadding", { true })),
244 framework::dataset::make("DataType", DataType::QASYMM8))),
245 framework::dataset::make("DataLayout", { DataLayout::NHWC, DataLayout::NCHW })),
246 framework::dataset::make("InputQuantInfo", { QuantizationInfo(1.f / 255.f, 10) })),
247 framework::dataset::make("OutputQuantInfo", { QuantizationInfo(1.f / 255.f, 5) })))
248{
249 // Validate output
250 validate(Accessor(_target), _reference, tolerance_qasymm8);
251}
Michalis Spyrou57dac842018-03-01 16:03:50 +0000252TEST_SUITE_END() // QASYMM8
Manuel Bottinib4bb8272019-12-18 18:01:27 +0000253TEST_SUITE(QASYMM8_SIGNED)
Manuel Bottinica62c6f2021-03-23 11:50:34 +0000254FIXTURE_DATA_TEST_CASE(RunSmall, NEPoolingLayerQuantizedFixture<int8_t>, framework::DatasetMode::PRECOMMIT, combine(combine(combine(combine(datasets::SmallShapes(),
255 combine(PoolingLayerDatasetQASYMM8Small,
256 framework::dataset::make("DataType", DataType::QASYMM8_SIGNED))),
257 framework::dataset::make("DataLayout", { DataLayout::NCHW, DataLayout::NHWC })),
258 qasymm8_signed_in_qinfo_dataset),
259 qasymm8_signed_in_qinfo_dataset))
Michele Di Giorgiod556d7b2020-10-27 10:56:31 +0000260{
261 // Validate output
262 validate(Accessor(_target), _reference, tolerance_qasymm8_s);
263}
Manuel Bottinica62c6f2021-03-23 11:50:34 +0000264FIXTURE_DATA_TEST_CASE(RunMixedDataLayout, NEPoolingLayerQuantizedMixedDataLayoutFixture<int8_t>, framework::DatasetMode::PRECOMMIT, combine(combine(combine(combine(datasets::SmallShapes(),
265 combine(combine(combine(combine(framework::dataset::make("PoolingType", { PoolingType::MAX, PoolingType::AVG }),
266 framework::dataset::make("PoolingSize", { Size2D(2, 2) })),
267 framework::dataset::make("PadStride", { PadStrideInfo(1, 2, 1, 1) })),
268 framework::dataset::make("ExcludePadding", { true })),
269 framework::dataset::make("DataType", DataType::QASYMM8_SIGNED))),
270 framework::dataset::make("DataLayout", { DataLayout::NHWC, DataLayout::NCHW })),
271 framework::dataset::make("InputQuantInfo", { QuantizationInfo(1.f / 127.f, -10) })),
272 framework::dataset::make("OutputQuantInfo", { QuantizationInfo(1.f / 127.f, -10) })))
Manuel Bottinib4bb8272019-12-18 18:01:27 +0000273{
274 // Validate output
275 validate(Accessor(_target), _reference, tolerance_qasymm8_s);
276}
Manuel Bottinib4bb8272019-12-18 18:01:27 +0000277TEST_SUITE_END() // QASYMM8_SIGNED
Michalis Spyrou57dac842018-03-01 16:03:50 +0000278TEST_SUITE_END() // Quantized
279TEST_SUITE_END() // PoolingLayer
Sheri Zhangac6499a2021-02-10 15:32:38 +0000280TEST_SUITE_END() // Neon
Georgios Pinitasdc460f12017-08-24 19:02:44 +0100281} // namespace validation
282} // namespace test
283} // namespace arm_compute