blob: 5702360e4590dca1e608484c33cd584a3f9145bc [file] [log] [blame]
Sanghoon Lee70f82912017-08-24 14:21:24 +01001/*
Michalis Spyrou80943252019-01-10 17:19:50 +00002 * Copyright (c) 2017-2019 ARM Limited.
Sanghoon Lee70f82912017-08-24 14:21:24 +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,
Sanghoon Leea7a5b7b2017-09-14 12:11:03 +010021 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
Sanghoon Lee70f82912017-08-24 14:21:24 +010022 * 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"
giuros01164a2722018-11-20 18:34:46 +000027#include "arm_compute/runtime/CL/functions/CLElementwiseOperations.h"
Sanghoon Lee70f82912017-08-24 14:21:24 +010028#include "tests/CL/CLAccessor.h"
29#include "tests/PaddingCalculator.h"
30#include "tests/datasets/ConvertPolicyDataset.h"
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"
Georgios Pinitascbf39c62018-09-10 15:07:45 +010036#include "tests/validation/fixtures/ArithmeticOperationsFixture.h"
Sanghoon Lee70f82912017-08-24 14:21:24 +010037
38namespace arm_compute
39{
40namespace test
41{
42namespace validation
43{
44namespace
45{
giuros01164a2722018-11-20 18:34:46 +000046constexpr unsigned int num_elems_processed_per_iteration = 16;
Sanghoon Lee70f82912017-08-24 14:21:24 +010047/** Input data sets **/
48const auto ArithmeticAdditionU8Dataset = combine(combine(framework::dataset::make("DataType", DataType::U8), framework::dataset::make("DataType", DataType::U8)), framework::dataset::make("DataType",
49 DataType::U8));
Michele Di Giorgio4622ac12018-06-27 16:41:17 +010050const auto ArithmeticAdditionQASYMM8Dataset = combine(combine(framework::dataset::make("DataType", DataType::QASYMM8), framework::dataset::make("DataType", DataType::QASYMM8)),
51 framework::dataset::make("DataType",
52 DataType::QASYMM8));
Kurtis Charnockec0c4122019-12-05 14:13:46 +000053const auto ArithmeticAdditionQASYMM8SignedDataset = combine(combine(framework::dataset::make("DataType", DataType::QASYMM8_SIGNED), framework::dataset::make("DataType", DataType::QASYMM8_SIGNED)),
54 framework::dataset::make("DataType",
55 DataType::QASYMM8_SIGNED));
Michele Di Giorgio6997fc92019-06-18 10:23:22 +010056const auto ArithmeticAdditionQSYMM16Dataset = combine(combine(framework::dataset::make("DataType", DataType::QSYMM16), framework::dataset::make("DataType", DataType::QSYMM16)),
57 framework::dataset::make("DataType",
58 DataType::QSYMM16));
Sanghoon Lee70f82912017-08-24 14:21:24 +010059const auto ArithmeticAdditionS16Dataset = combine(combine(framework::dataset::make("DataType", { DataType::U8, DataType::S16 }), framework::dataset::make("DataType", DataType::S16)),
60 framework::dataset::make("DataType", DataType::S16));
Sanghoon Lee70f82912017-08-24 14:21:24 +010061const auto ArithmeticAdditionFP16Dataset = combine(combine(framework::dataset::make("DataType", DataType::F16), framework::dataset::make("DataType", DataType::F16)),
62 framework::dataset::make("DataType", DataType::F16));
63const auto ArithmeticAdditionFP32Dataset = combine(combine(framework::dataset::make("DataType", DataType::F32), framework::dataset::make("DataType", DataType::F32)),
64 framework::dataset::make("DataType", DataType::F32));
65} // namespace
66
67TEST_SUITE(CL)
68TEST_SUITE(ArithmeticAddition)
69
Georgios Pinitasf9d3a0a2017-11-03 19:01:44 +000070// *INDENT-OFF*
71// clang-format off
72DATA_TEST_CASE(Validate, framework::DatasetMode::ALL, zip(zip(zip(
Giorgio Arena70623822017-11-27 15:50:10 +000073 framework::dataset::make("Input1Info", { TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::U8),
74 TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::U8),
75 TensorInfo(TensorShape(27U, 13U, 2U), 1, DataType::U8), // Window shrink
76 TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::U8), // Invalid data type combination
77 TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::F32), // Mismatching shapes
Georgios Pinitasf9d3a0a2017-11-03 19:01:44 +000078 }),
Giorgio Arena70623822017-11-27 15:50:10 +000079 framework::dataset::make("Input2Info",{ TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::U8),
80 TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::U8),
Georgios Pinitasf9d3a0a2017-11-03 19:01:44 +000081 TensorInfo(TensorShape(27U, 13U, 2U), 1, DataType::U8),
Giorgio Arena70623822017-11-27 15:50:10 +000082 TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::S16),
83 TensorInfo(TensorShape(48U, 11U, 2U), 1, DataType::F32),
Georgios Pinitasf9d3a0a2017-11-03 19:01:44 +000084 })),
Giorgio Arena70623822017-11-27 15:50:10 +000085 framework::dataset::make("OutputInfo",{ TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::S16),
86 TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::U8),
Georgios Pinitasf9d3a0a2017-11-03 19:01:44 +000087 TensorInfo(TensorShape(27U, 13U, 2U), 1, DataType::U8),
Giorgio Arena70623822017-11-27 15:50:10 +000088 TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::U8),
89 TensorInfo(TensorShape(48U, 11U, 2U), 1, DataType::F32),
Georgios Pinitasf9d3a0a2017-11-03 19:01:44 +000090 })),
Vidhya Sudhan Loganathan0fc25452018-06-18 14:40:56 +010091 framework::dataset::make("Expected", { true, true, false, false, false})),
Georgios Pinitasf9d3a0a2017-11-03 19:01:44 +000092 input1_info, input2_info, output_info, expected)
93{
Giorgio Arena70623822017-11-27 15:50:10 +000094 ARM_COMPUTE_EXPECT(bool(CLArithmeticAddition::validate(&input1_info.clone()->set_is_resizable(false), &input2_info.clone()->set_is_resizable(false), &output_info.clone()->set_is_resizable(false), ConvertPolicy::WRAP)) == expected, framework::LogLevel::ERRORS);
Georgios Pinitasf9d3a0a2017-11-03 19:01:44 +000095}
96// clang-format on
97// *INDENT-ON*
98
Sanghoon Lee70f82912017-08-24 14:21:24 +010099template <typename T>
100using CLArithmeticAdditionFixture = ArithmeticAdditionValidationFixture<CLTensor, CLAccessor, CLArithmeticAddition, T>;
101
Michele Di Giorgio6997fc92019-06-18 10:23:22 +0100102TEST_SUITE(Integer)
Sanghoon Lee70f82912017-08-24 14:21:24 +0100103TEST_SUITE(U8)
Michalis Spyrou80943252019-01-10 17:19:50 +0000104DATA_TEST_CASE(Configuration, framework::DatasetMode::ALL, combine(datasets::SmallShapes(), framework::dataset::make("ConvertPolicy", { ConvertPolicy::SATURATE, ConvertPolicy::WRAP })),
Sanghoon Lee70f82912017-08-24 14:21:24 +0100105 shape, policy)
106{
107 // Create tensors
108 CLTensor ref_src1 = create_tensor<CLTensor>(shape, DataType::U8);
109 CLTensor ref_src2 = create_tensor<CLTensor>(shape, DataType::U8);
110 CLTensor dst = create_tensor<CLTensor>(shape, DataType::U8);
111
112 // Create and Configure function
113 CLArithmeticAddition add;
114 add.configure(&ref_src1, &ref_src2, &dst, policy);
115
116 // Validate valid region
117 const ValidRegion valid_region = shape_to_valid_region(shape);
118 validate(dst.info()->valid_region(), valid_region);
119
120 // Validate padding
Michele Di Giorgioa1422fb2018-10-24 12:20:19 +0100121 const PaddingSize padding = PaddingCalculator(shape.x(), num_elems_processed_per_iteration).required_padding();
Sanghoon Lee70f82912017-08-24 14:21:24 +0100122 validate(ref_src1.info()->padding(), padding);
123 validate(ref_src2.info()->padding(), padding);
124 validate(dst.info()->padding(), padding);
125}
126
127FIXTURE_DATA_TEST_CASE(RunSmall, CLArithmeticAdditionFixture<uint8_t>, framework::DatasetMode::PRECOMMIT, combine(combine(datasets::SmallShapes(), ArithmeticAdditionU8Dataset),
128 framework::dataset::make("ConvertPolicy", { ConvertPolicy::SATURATE, ConvertPolicy::WRAP })))
129{
130 // Validate output
131 validate(CLAccessor(_target), _reference);
132}
Michele Di Giorgio6997fc92019-06-18 10:23:22 +0100133TEST_SUITE_END() // U8
Michele Di Giorgio4622ac12018-06-27 16:41:17 +0100134
Sanghoon Lee70f82912017-08-24 14:21:24 +0100135TEST_SUITE(S16)
Michalis Spyrou80943252019-01-10 17:19:50 +0000136DATA_TEST_CASE(Configuration, framework::DatasetMode::ALL, combine(combine(datasets::SmallShapes(), framework::dataset::make("DataType", { DataType::U8, DataType::S16 })),
Sanghoon Lee70f82912017-08-24 14:21:24 +0100137 framework::dataset::make("ConvertPolicy", { ConvertPolicy::SATURATE, ConvertPolicy::WRAP })),
138 shape, data_type, policy)
139{
140 // Create tensors
141 CLTensor ref_src1 = create_tensor<CLTensor>(shape, data_type);
142 CLTensor ref_src2 = create_tensor<CLTensor>(shape, DataType::S16);
143 CLTensor dst = create_tensor<CLTensor>(shape, DataType::S16);
144
145 // Create and Configure function
146 CLArithmeticAddition add;
147 add.configure(&ref_src1, &ref_src2, &dst, policy);
148
149 // Validate valid region
150 const ValidRegion valid_region = shape_to_valid_region(shape);
151 validate(dst.info()->valid_region(), valid_region);
152
153 // Validate padding
Michele Di Giorgioa1422fb2018-10-24 12:20:19 +0100154 const PaddingSize padding = PaddingCalculator(shape.x(), num_elems_processed_per_iteration).required_padding();
Sanghoon Lee70f82912017-08-24 14:21:24 +0100155 validate(ref_src1.info()->padding(), padding);
156 validate(ref_src2.info()->padding(), padding);
157 validate(dst.info()->padding(), padding);
158}
159
160FIXTURE_DATA_TEST_CASE(RunSmall, CLArithmeticAdditionFixture<int16_t>, framework::DatasetMode::PRECOMMIT, combine(combine(datasets::SmallShapes(), ArithmeticAdditionS16Dataset),
161 framework::dataset::make("ConvertPolicy", { ConvertPolicy::SATURATE, ConvertPolicy::WRAP })))
162{
163 // Validate output
164 validate(CLAccessor(_target), _reference);
165}
166
167FIXTURE_DATA_TEST_CASE(RunLarge, CLArithmeticAdditionFixture<int16_t>, framework::DatasetMode::NIGHTLY, combine(combine(datasets::LargeShapes(), ArithmeticAdditionS16Dataset),
168 framework::dataset::make("ConvertPolicy", { ConvertPolicy::SATURATE, ConvertPolicy::WRAP })))
169{
170 // Validate output
171 validate(CLAccessor(_target), _reference);
172}
Michele Di Giorgio6997fc92019-06-18 10:23:22 +0100173TEST_SUITE_END() // S16
174TEST_SUITE_END() // Integer
175
176template <typename T>
177using CLArithmeticAdditionQuantizedFixture = ArithmeticAdditionValidationQuantizedFixture<CLTensor, CLAccessor, CLArithmeticAddition, T>;
178
179TEST_SUITE(Quantized)
180TEST_SUITE(QASYMM8)
181DATA_TEST_CASE(Configuration, framework::DatasetMode::ALL, combine(datasets::SmallShapes(), framework::dataset::make("ConvertPolicy", { ConvertPolicy::SATURATE })),
182 shape, policy)
183{
184 // Create tensors
185 CLTensor ref_src1 = create_tensor<CLTensor>(shape, DataType::QASYMM8);
186 CLTensor ref_src2 = create_tensor<CLTensor>(shape, DataType::QASYMM8);
187 CLTensor dst = create_tensor<CLTensor>(shape, DataType::QASYMM8);
188
189 // Create and Configure function
190 CLArithmeticAddition add;
191 add.configure(&ref_src1, &ref_src2, &dst, policy);
192
193 // Validate valid region
194 const ValidRegion valid_region = shape_to_valid_region(shape);
195 validate(dst.info()->valid_region(), valid_region);
196
197 // Validate padding
198 const PaddingSize padding = PaddingCalculator(shape.x(), num_elems_processed_per_iteration).required_padding();
199 validate(ref_src1.info()->padding(), padding);
200 validate(ref_src2.info()->padding(), padding);
201 validate(dst.info()->padding(), padding);
202}
203
204FIXTURE_DATA_TEST_CASE(RunSmall, CLArithmeticAdditionQuantizedFixture<uint8_t>, framework::DatasetMode::PRECOMMIT, combine(combine(combine(combine(combine(datasets::SmallShapes(),
205 ArithmeticAdditionQASYMM8Dataset),
206 framework::dataset::make("ConvertPolicy", { ConvertPolicy::SATURATE })),
207 framework::dataset::make("Src0QInfo", { QuantizationInfo(5.f / 255.f, 20) })),
208 framework::dataset::make("Src1QInfo", { QuantizationInfo(2.f / 255.f, 10) })),
209 framework::dataset::make("OutQInfo", { QuantizationInfo(1.f / 255.f, 5) })))
210{
211 // Validate output
212 validate(CLAccessor(_target), _reference);
213}
214TEST_SUITE_END() // QASYMM8
Kurtis Charnockec0c4122019-12-05 14:13:46 +0000215TEST_SUITE(QASYMM8_SIGNED)
216DATA_TEST_CASE(Configuration, framework::DatasetMode::ALL, combine(datasets::SmallShapes(), framework::dataset::make("ConvertPolicy", { ConvertPolicy::SATURATE })),
217 shape, policy)
218{
219 // Create tensors
220 CLTensor ref_src1 = create_tensor<CLTensor>(shape, DataType::QASYMM8_SIGNED);
221 CLTensor ref_src2 = create_tensor<CLTensor>(shape, DataType::QASYMM8_SIGNED);
222 CLTensor dst = create_tensor<CLTensor>(shape, DataType::QASYMM8_SIGNED);
223
224 // Create and Configure function
225 CLArithmeticAddition add;
226 add.configure(&ref_src1, &ref_src2, &dst, policy);
227
228 // Validate valid region
229 const ValidRegion valid_region = shape_to_valid_region(shape);
230 validate(dst.info()->valid_region(), valid_region);
231
232 // Validate padding
233 const PaddingSize padding = PaddingCalculator(shape.x(), num_elems_processed_per_iteration).required_padding();
234 validate(ref_src1.info()->padding(), padding);
235 validate(ref_src2.info()->padding(), padding);
236 validate(dst.info()->padding(), padding);
237}
238
239FIXTURE_DATA_TEST_CASE(RunSmall, CLArithmeticAdditionQuantizedFixture<int8_t>, framework::DatasetMode::PRECOMMIT, combine(combine(combine(combine(combine(datasets::SmallShapes(),
240 ArithmeticAdditionQASYMM8SignedDataset),
241 framework::dataset::make("ConvertPolicy", { ConvertPolicy::SATURATE })),
242 framework::dataset::make("Src0QInfo", { QuantizationInfo(5.f / 255.f, 10) })),
243 framework::dataset::make("Src1QInfo", { QuantizationInfo(2.f / 255.f, 10) })),
244 framework::dataset::make("OutQInfo", { QuantizationInfo(1.f / 255.f, 5) })))
245{
246 // Validate output
247 validate(CLAccessor(_target), _reference);
248}
249TEST_SUITE_END() // QASYMM8_SIGNED
Michele Di Giorgio6997fc92019-06-18 10:23:22 +0100250TEST_SUITE(QSYMM16)
251DATA_TEST_CASE(Configuration, framework::DatasetMode::ALL, combine(datasets::SmallShapes(), framework::dataset::make("ConvertPolicy", { ConvertPolicy::SATURATE })),
252 shape, policy)
253{
254 // Create tensors
255 CLTensor ref_src1 = create_tensor<CLTensor>(shape, DataType::QSYMM16);
256 CLTensor ref_src2 = create_tensor<CLTensor>(shape, DataType::QSYMM16);
257 CLTensor dst = create_tensor<CLTensor>(shape, DataType::QSYMM16);
258
259 // Create and Configure function
260 CLArithmeticAddition add;
261 add.configure(&ref_src1, &ref_src2, &dst, policy);
262
263 // Validate valid region
264 const ValidRegion valid_region = shape_to_valid_region(shape);
265 validate(dst.info()->valid_region(), valid_region);
266
267 // Validate padding
268 const PaddingSize padding = PaddingCalculator(shape.x(), num_elems_processed_per_iteration).required_padding();
269 validate(ref_src1.info()->padding(), padding);
270 validate(ref_src2.info()->padding(), padding);
271 validate(dst.info()->padding(), padding);
272}
273
274FIXTURE_DATA_TEST_CASE(RunSmall, CLArithmeticAdditionQuantizedFixture<int16_t>, framework::DatasetMode::PRECOMMIT, combine(combine(combine(combine(combine(datasets::SmallShapes(),
275 ArithmeticAdditionQSYMM16Dataset),
276 framework::dataset::make("ConvertPolicy", { ConvertPolicy::SATURATE })),
277 framework::dataset::make("Src0QInfo", { QuantizationInfo(1.f / 32768.f, 0), QuantizationInfo(5.f / 32768.f, 0) })),
278 framework::dataset::make("Src1QInfo", { QuantizationInfo(2.f / 32768.f, 0), QuantizationInfo(5.f / 32768.f, 0) })),
279 framework::dataset::make("OutQInfo", { QuantizationInfo(5.f / 32768.f, 0) })))
280{
281 // Validate output
282 validate(CLAccessor(_target), _reference);
283}
284TEST_SUITE_END() // QSYMM16
285TEST_SUITE_END() // Quantized
Sanghoon Lee70f82912017-08-24 14:21:24 +0100286
Sanghoon Lee70f82912017-08-24 14:21:24 +0100287TEST_SUITE(Float)
288TEST_SUITE(FP16)
Georgios Pinitas583137c2017-08-31 18:12:42 +0100289FIXTURE_DATA_TEST_CASE(RunSmall, CLArithmeticAdditionFixture<half>, framework::DatasetMode::ALL, combine(combine(datasets::SmallShapes(), ArithmeticAdditionFP16Dataset),
290 framework::dataset::make("ConvertPolicy", { ConvertPolicy::SATURATE, ConvertPolicy::WRAP })))
Sanghoon Lee70f82912017-08-24 14:21:24 +0100291{
292 // Validate output
293 validate(CLAccessor(_target), _reference);
294}
Michele Di Giorgio6997fc92019-06-18 10:23:22 +0100295TEST_SUITE_END() // FP16
Sanghoon Lee70f82912017-08-24 14:21:24 +0100296
297TEST_SUITE(FP32)
Michalis Spyrou80943252019-01-10 17:19:50 +0000298DATA_TEST_CASE(Configuration, framework::DatasetMode::ALL, combine(datasets::SmallShapes(), framework::dataset::make("ConvertPolicy", { ConvertPolicy::SATURATE, ConvertPolicy::WRAP })),
Sanghoon Lee70f82912017-08-24 14:21:24 +0100299 shape, policy)
300{
301 // Create tensors
302 CLTensor ref_src1 = create_tensor<CLTensor>(shape, DataType::F32);
303 CLTensor ref_src2 = create_tensor<CLTensor>(shape, DataType::F32);
304 CLTensor dst = create_tensor<CLTensor>(shape, DataType::F32);
305
306 // Create and Configure function
307 CLArithmeticAddition add;
308 add.configure(&ref_src1, &ref_src2, &dst, policy);
309
310 // Validate valid region
311 const ValidRegion valid_region = shape_to_valid_region(shape);
312 validate(dst.info()->valid_region(), valid_region);
313
314 // Validate padding
Michele Di Giorgioa1422fb2018-10-24 12:20:19 +0100315 const PaddingSize padding = PaddingCalculator(shape.x(), num_elems_processed_per_iteration).required_padding();
Sanghoon Lee70f82912017-08-24 14:21:24 +0100316 validate(ref_src1.info()->padding(), padding);
317 validate(ref_src2.info()->padding(), padding);
318 validate(dst.info()->padding(), padding);
319}
320
321FIXTURE_DATA_TEST_CASE(RunSmall, CLArithmeticAdditionFixture<float>, framework::DatasetMode::PRECOMMIT, combine(combine(datasets::SmallShapes(), ArithmeticAdditionFP32Dataset),
322 framework::dataset::make("ConvertPolicy", { ConvertPolicy::SATURATE, ConvertPolicy::WRAP })))
323{
324 // Validate output
325 validate(CLAccessor(_target), _reference);
326}
327
328FIXTURE_DATA_TEST_CASE(RunLarge, CLArithmeticAdditionFixture<float>, framework::DatasetMode::NIGHTLY, combine(combine(datasets::LargeShapes(), ArithmeticAdditionFP32Dataset),
329 framework::dataset::make("ConvertPolicy", { ConvertPolicy::SATURATE, ConvertPolicy::WRAP })))
330{
331 // Validate output
332 validate(CLAccessor(_target), _reference);
333}
Diego Lopez Recas0021d752017-12-18 14:42:56 +0000334
335template <typename T>
336using CLArithmeticAdditionBroadcastFixture = ArithmeticAdditionBroadcastValidationFixture<CLTensor, CLAccessor, CLArithmeticAddition, T>;
337
338FIXTURE_DATA_TEST_CASE(RunSmallBroadcast, CLArithmeticAdditionBroadcastFixture<float>, framework::DatasetMode::PRECOMMIT, combine(combine(datasets::SmallShapesBroadcast(),
339 ArithmeticAdditionFP32Dataset),
340 framework::dataset::make("ConvertPolicy", { ConvertPolicy::SATURATE, ConvertPolicy::WRAP })))
341{
342 // Validate output
343 validate(CLAccessor(_target), _reference);
344}
345
346FIXTURE_DATA_TEST_CASE(RunLargeBroadcast, CLArithmeticAdditionBroadcastFixture<float>, framework::DatasetMode::NIGHTLY, combine(combine(datasets::LargeShapesBroadcast(),
347 ArithmeticAdditionFP32Dataset),
348 framework::dataset::make("ConvertPolicy", { ConvertPolicy::SATURATE, ConvertPolicy::WRAP })))
349{
350 // Validate output
351 validate(CLAccessor(_target), _reference);
352}
Michele Di Giorgio6997fc92019-06-18 10:23:22 +0100353TEST_SUITE_END() // FP32
354TEST_SUITE_END() // Float
Sanghoon Lee70f82912017-08-24 14:21:24 +0100355
Michele Di Giorgio6997fc92019-06-18 10:23:22 +0100356TEST_SUITE_END() // ArithmeticAddition
357TEST_SUITE_END() // CL
Sanghoon Lee70f82912017-08-24 14:21:24 +0100358} // namespace validation
359} // namespace test
360} // namespace arm_compute