blob: 45632dc7e2b263ae8c8195172616f23618f10df2 [file] [log] [blame]
Sanghoon Lee70f82912017-08-24 14:21:24 +01001/*
Georgios Pinitasda816752021-07-02 09:22:14 +01002 * Copyright (c) 2017-2021 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{
46/** Input data sets **/
Giorgio Arena8b2a7d32020-02-11 17:21:31 +000047const auto EmptyActivationFunctionsDataset = framework::dataset::make("ActivationInfo",
48{ ActivationLayerInfo() });
49const auto ActivationFunctionsDataset = framework::dataset::make("ActivationInfo",
50{
51 ActivationLayerInfo(ActivationLayerInfo::ActivationFunction::BOUNDED_RELU, 0.75f, 0.25f),
52 ActivationLayerInfo(ActivationLayerInfo::ActivationFunction::LOGISTIC, 0.75f, 0.25f)
53});
Sheri Zhanga387e272021-06-29 17:34:06 +010054const auto InPlaceDataSet = framework::dataset::make("InPlace", { false, true });
55const auto OutOfPlaceDataSet = framework::dataset::make("InPlace", { false });
Sanghoon Lee70f82912017-08-24 14:21:24 +010056} // namespace
57
58TEST_SUITE(CL)
59TEST_SUITE(ArithmeticAddition)
60
Georgios Pinitasf9d3a0a2017-11-03 19:01:44 +000061// *INDENT-OFF*
62// clang-format off
63DATA_TEST_CASE(Validate, framework::DatasetMode::ALL, zip(zip(zip(
Georgios Pinitasda816752021-07-02 09:22:14 +010064 framework::dataset::make("Input1Info", { TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::F32),
Giorgio Arena70623822017-11-27 15:50:10 +000065 TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::U8), // Invalid data type combination
66 TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::F32), // Mismatching shapes
Georgios Pinitasf9d3a0a2017-11-03 19:01:44 +000067 }),
Georgios Pinitasda816752021-07-02 09:22:14 +010068 framework::dataset::make("Input2Info",{ TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::F32),
Giorgio Arena70623822017-11-27 15:50:10 +000069 TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::S16),
70 TensorInfo(TensorShape(48U, 11U, 2U), 1, DataType::F32),
Georgios Pinitasf9d3a0a2017-11-03 19:01:44 +000071 })),
Georgios Pinitasda816752021-07-02 09:22:14 +010072 framework::dataset::make("OutputInfo",{ TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::F32),
Giorgio Arena70623822017-11-27 15:50:10 +000073 TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::U8),
74 TensorInfo(TensorShape(48U, 11U, 2U), 1, DataType::F32),
Georgios Pinitasf9d3a0a2017-11-03 19:01:44 +000075 })),
Georgios Pinitasda816752021-07-02 09:22:14 +010076 framework::dataset::make("Expected", { true, false, false})),
Georgios Pinitasf9d3a0a2017-11-03 19:01:44 +000077 input1_info, input2_info, output_info, expected)
78{
Giorgio Arena70623822017-11-27 15:50:10 +000079 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 +000080}
81// clang-format on
82// *INDENT-ON*
83
Michele Di Giorgioc41a6a62020-06-16 16:21:00 +010084/** Validate fused activation expecting the following behaviours:
85 *
86 * - Fused activation with float data type should succeed
87 * - Fused activation with quantized data type should fail
88 *
89 */
90TEST_CASE(FusedActivation, framework::DatasetMode::ALL)
91{
92 auto input = TensorInfo{ TensorShape(2U, 2U), 1, DataType::F32 };
93 auto output = TensorInfo{ TensorShape(2U, 2U), 1, DataType::F32 };
94 Status result{};
95
96 const auto act_info = ActivationLayerInfo(ActivationLayerInfo::ActivationFunction::RELU);
97
98 // Fused-activation float type
99 result = CLArithmeticAddition::validate(&input, &input, &output, ConvertPolicy::WRAP, act_info);
100 ARM_COMPUTE_EXPECT(bool(result) == true, framework::LogLevel::ERRORS);
101
102 // Fused-activation quantized type
103 input.set_data_type(DataType::QASYMM8);
104 output.set_data_type(DataType::QASYMM8);
105 result = CLArithmeticAddition::validate(&input, &input, &output, ConvertPolicy::WRAP, act_info);
106 ARM_COMPUTE_EXPECT(bool(result) == false, framework::LogLevel::ERRORS);
107}
108
Sanghoon Lee70f82912017-08-24 14:21:24 +0100109template <typename T>
110using CLArithmeticAdditionFixture = ArithmeticAdditionValidationFixture<CLTensor, CLAccessor, CLArithmeticAddition, T>;
111
Michele Di Giorgio6997fc92019-06-18 10:23:22 +0100112TEST_SUITE(Integer)
Sanghoon Lee70f82912017-08-24 14:21:24 +0100113TEST_SUITE(U8)
Sheri Zhanga387e272021-06-29 17:34:06 +0100114FIXTURE_DATA_TEST_CASE(RunSmall, CLArithmeticAdditionFixture<uint8_t>, framework::DatasetMode::PRECOMMIT, combine(combine(combine(datasets::SmallShapes(), framework::dataset::make("DataType",
115 DataType::U8)),
116 framework::dataset::make("ConvertPolicy", { ConvertPolicy::SATURATE, ConvertPolicy::WRAP })),
117 OutOfPlaceDataSet))
Sanghoon Lee70f82912017-08-24 14:21:24 +0100118{
119 // Validate output
120 validate(CLAccessor(_target), _reference);
121}
Michele Di Giorgio6997fc92019-06-18 10:23:22 +0100122TEST_SUITE_END() // U8
Michele Di Giorgio4622ac12018-06-27 16:41:17 +0100123
Sanghoon Lee70f82912017-08-24 14:21:24 +0100124TEST_SUITE(S16)
Sheri Zhanga387e272021-06-29 17:34:06 +0100125FIXTURE_DATA_TEST_CASE(RunSmall, CLArithmeticAdditionFixture<int16_t>, framework::DatasetMode::PRECOMMIT, combine(combine(combine(datasets::SmallShapes(), framework::dataset::make("DataType",
126 DataType::S16)),
127 framework::dataset::make("ConvertPolicy", { ConvertPolicy::SATURATE, ConvertPolicy::WRAP })),
128 OutOfPlaceDataSet))
Sanghoon Lee70f82912017-08-24 14:21:24 +0100129{
130 // Validate output
131 validate(CLAccessor(_target), _reference);
132}
133
Sheri Zhanga387e272021-06-29 17:34:06 +0100134FIXTURE_DATA_TEST_CASE(RunLarge, CLArithmeticAdditionFixture<int16_t>, framework::DatasetMode::NIGHTLY, combine(combine(combine(datasets::LargeShapes(), framework::dataset::make("DataType",
135 DataType::S16)),
136 framework::dataset::make("ConvertPolicy", { ConvertPolicy::SATURATE, ConvertPolicy::WRAP })),
137 OutOfPlaceDataSet))
Sanghoon Lee70f82912017-08-24 14:21:24 +0100138{
139 // Validate output
140 validate(CLAccessor(_target), _reference);
141}
Michele Di Giorgio6997fc92019-06-18 10:23:22 +0100142TEST_SUITE_END() // S16
143TEST_SUITE_END() // Integer
144
145template <typename T>
146using CLArithmeticAdditionQuantizedFixture = ArithmeticAdditionValidationQuantizedFixture<CLTensor, CLAccessor, CLArithmeticAddition, T>;
147
148TEST_SUITE(Quantized)
149TEST_SUITE(QASYMM8)
Sheri Zhanga387e272021-06-29 17:34:06 +0100150FIXTURE_DATA_TEST_CASE(RunSmall, CLArithmeticAdditionQuantizedFixture<uint8_t>, framework::DatasetMode::PRECOMMIT, combine(combine(combine(combine(combine(combine(datasets::SmallShapes(),
Georgios Pinitasda816752021-07-02 09:22:14 +0100151 framework::dataset::make("DataType", DataType::QASYMM8)),
Michele Di Giorgio6997fc92019-06-18 10:23:22 +0100152 framework::dataset::make("ConvertPolicy", { ConvertPolicy::SATURATE })),
153 framework::dataset::make("Src0QInfo", { QuantizationInfo(5.f / 255.f, 20) })),
154 framework::dataset::make("Src1QInfo", { QuantizationInfo(2.f / 255.f, 10) })),
Sheri Zhanga387e272021-06-29 17:34:06 +0100155 framework::dataset::make("OutQInfo", { QuantizationInfo(1.f / 255.f, 5) })),
156 OutOfPlaceDataSet))
Michele Di Giorgio6997fc92019-06-18 10:23:22 +0100157{
158 // Validate output
159 validate(CLAccessor(_target), _reference);
160}
Manuel Bottinib3337582020-10-22 18:01:41 +0100161template <typename T>
162using CLArithmeticAdditionBroadcastQuantizedFixture = ArithmeticAdditionValidationQuantizedBroadcastFixture<CLTensor, CLAccessor, CLArithmeticAddition, T>;
Georgios Pinitasda816752021-07-02 09:22:14 +0100163FIXTURE_DATA_TEST_CASE(RunSmallBroadcast, CLArithmeticAdditionBroadcastQuantizedFixture<uint8_t>, framework::DatasetMode::PRECOMMIT,
Sheri Zhanga387e272021-06-29 17:34:06 +0100164 combine(combine(combine(combine(combine(combine(datasets::SmallShapesBroadcast(),
165 framework::dataset::make("DataType", DataType::QASYMM8)),
166 framework::dataset::make("ConvertPolicy", { ConvertPolicy::SATURATE })),
167 framework::dataset::make("Src0QInfo", { QuantizationInfo(5.f / 255.f, 20) })),
168 framework::dataset::make("Src1QInfo", { QuantizationInfo(2.f / 255.f, 10) })),
169 framework::dataset::make("OutQInfo", { QuantizationInfo(1.f / 255.f, 5) })),
170 OutOfPlaceDataSet))
171{
172 // Validate output
173 validate(CLAccessor(_target), _reference);
174}
175FIXTURE_DATA_TEST_CASE(RunTinyBroadcastInPlace, CLArithmeticAdditionBroadcastQuantizedFixture<uint8_t>, framework::DatasetMode::PRECOMMIT,
176 combine(combine(combine(combine(combine(combine(datasets::TinyShapesBroadcastInplace(),
177 framework::dataset::make("DataType", DataType::QASYMM8)),
178 framework::dataset::make("ConvertPolicy", { ConvertPolicy::SATURATE })),
179 framework::dataset::make("Src0QInfo", { QuantizationInfo(1.f / 255.f, 10) })),
180 framework::dataset::make("Src1QInfo", { QuantizationInfo(1.f / 255.f, 10) })),
181 framework::dataset::make("OutQInfo", { QuantizationInfo(1.f / 255.f, 10) })),
182 InPlaceDataSet))
Manuel Bottinib3337582020-10-22 18:01:41 +0100183{
184 // Validate output
185 validate(CLAccessor(_target), _reference);
186}
Michele Di Giorgio6997fc92019-06-18 10:23:22 +0100187TEST_SUITE_END() // QASYMM8
Kurtis Charnockec0c4122019-12-05 14:13:46 +0000188TEST_SUITE(QASYMM8_SIGNED)
Sheri Zhanga387e272021-06-29 17:34:06 +0100189FIXTURE_DATA_TEST_CASE(RunSmall, CLArithmeticAdditionQuantizedFixture<int8_t>, framework::DatasetMode::PRECOMMIT, combine(combine(combine(combine(combine(combine(datasets::SmallShapes(),
Georgios Pinitasda816752021-07-02 09:22:14 +0100190 framework::dataset::make("DataType", DataType::QASYMM8_SIGNED)),
Kurtis Charnockec0c4122019-12-05 14:13:46 +0000191 framework::dataset::make("ConvertPolicy", { ConvertPolicy::SATURATE })),
192 framework::dataset::make("Src0QInfo", { QuantizationInfo(5.f / 255.f, 10) })),
193 framework::dataset::make("Src1QInfo", { QuantizationInfo(2.f / 255.f, 10) })),
Sheri Zhanga387e272021-06-29 17:34:06 +0100194 framework::dataset::make("OutQInfo", { QuantizationInfo(1.f / 255.f, 5) })),
195 OutOfPlaceDataSet))
Kurtis Charnockec0c4122019-12-05 14:13:46 +0000196{
197 // Validate output
198 validate(CLAccessor(_target), _reference);
199}
200TEST_SUITE_END() // QASYMM8_SIGNED
Michele Di Giorgio6997fc92019-06-18 10:23:22 +0100201TEST_SUITE(QSYMM16)
Sheri Zhanga387e272021-06-29 17:34:06 +0100202FIXTURE_DATA_TEST_CASE(RunSmall, CLArithmeticAdditionQuantizedFixture<int16_t>, framework::DatasetMode::PRECOMMIT, combine(combine(combine(combine(combine(combine(datasets::SmallShapes(),
Georgios Pinitasda816752021-07-02 09:22:14 +0100203 framework::dataset::make("DataType", DataType::QSYMM16)),
Michele Di Giorgio6997fc92019-06-18 10:23:22 +0100204 framework::dataset::make("ConvertPolicy", { ConvertPolicy::SATURATE })),
205 framework::dataset::make("Src0QInfo", { QuantizationInfo(1.f / 32768.f, 0), QuantizationInfo(5.f / 32768.f, 0) })),
206 framework::dataset::make("Src1QInfo", { QuantizationInfo(2.f / 32768.f, 0), QuantizationInfo(5.f / 32768.f, 0) })),
Sheri Zhanga387e272021-06-29 17:34:06 +0100207 framework::dataset::make("OutQInfo", { QuantizationInfo(5.f / 32768.f, 0) })),
208 OutOfPlaceDataSet))
Michele Di Giorgio6997fc92019-06-18 10:23:22 +0100209{
210 // Validate output
211 validate(CLAccessor(_target), _reference);
212}
213TEST_SUITE_END() // QSYMM16
214TEST_SUITE_END() // Quantized
Sanghoon Lee70f82912017-08-24 14:21:24 +0100215
Giorgio Arena8b2a7d32020-02-11 17:21:31 +0000216template <typename T>
217using CLArithmeticAdditionFloatFixture = ArithmeticAdditionValidationFloatFixture<CLTensor, CLAccessor, CLArithmeticAddition, T>;
218
Sanghoon Lee70f82912017-08-24 14:21:24 +0100219TEST_SUITE(Float)
220TEST_SUITE(FP16)
Sheri Zhanga387e272021-06-29 17:34:06 +0100221FIXTURE_DATA_TEST_CASE(RunSmall, CLArithmeticAdditionFloatFixture<half>, framework::DatasetMode::ALL, combine(combine(combine(combine(datasets::SmallShapes(), framework::dataset::make("DataType",
Georgios Pinitasda816752021-07-02 09:22:14 +0100222 DataType::F16)),
Giorgio Arena8b2a7d32020-02-11 17:21:31 +0000223 framework::dataset::make("ConvertPolicy", { ConvertPolicy::SATURATE, ConvertPolicy::WRAP })),
Sheri Zhanga387e272021-06-29 17:34:06 +0100224 EmptyActivationFunctionsDataset),
225 OutOfPlaceDataSet))
Giorgio Arena8b2a7d32020-02-11 17:21:31 +0000226{
227 // Validate output
228 validate(CLAccessor(_target), _reference);
229}
Sheri Zhanga387e272021-06-29 17:34:06 +0100230FIXTURE_DATA_TEST_CASE(RunWithActivation, CLArithmeticAdditionFloatFixture<half>, framework::DatasetMode::ALL, combine(combine(combine(combine(datasets::TinyShapes(),
231 framework::dataset::make("DataType",
232 DataType::F16)),
Giorgio Arena8b2a7d32020-02-11 17:21:31 +0000233 framework::dataset::make("ConvertPolicy", { ConvertPolicy::SATURATE, ConvertPolicy::WRAP })),
Sheri Zhanga387e272021-06-29 17:34:06 +0100234 ActivationFunctionsDataset),
235 OutOfPlaceDataSet))
Sanghoon Lee70f82912017-08-24 14:21:24 +0100236{
237 // Validate output
238 validate(CLAccessor(_target), _reference);
239}
Michele Di Giorgio6997fc92019-06-18 10:23:22 +0100240TEST_SUITE_END() // FP16
Sanghoon Lee70f82912017-08-24 14:21:24 +0100241
242TEST_SUITE(FP32)
Sheri Zhanga387e272021-06-29 17:34:06 +0100243FIXTURE_DATA_TEST_CASE(RunSmall, CLArithmeticAdditionFloatFixture<float>, framework::DatasetMode::PRECOMMIT, combine(combine(combine(combine(datasets::SmallShapes(),
244 framework::dataset::make("DataType",
245 DataType::F32)),
Giorgio Arena8b2a7d32020-02-11 17:21:31 +0000246 framework::dataset::make("ConvertPolicy", { ConvertPolicy::SATURATE, ConvertPolicy::WRAP })),
Sheri Zhanga387e272021-06-29 17:34:06 +0100247 EmptyActivationFunctionsDataset),
248 InPlaceDataSet))
Giorgio Arena8b2a7d32020-02-11 17:21:31 +0000249{
250 // Validate output
251 validate(CLAccessor(_target), _reference);
252}
Sheri Zhanga387e272021-06-29 17:34:06 +0100253FIXTURE_DATA_TEST_CASE(RunWithActivation, CLArithmeticAdditionFloatFixture<float>, framework::DatasetMode::ALL, combine(combine(combine(combine(datasets::TinyShapes(),
254 framework::dataset::make("DataType",
255 DataType::F32)),
Giorgio Arena8b2a7d32020-02-11 17:21:31 +0000256 framework::dataset::make("ConvertPolicy", { ConvertPolicy::SATURATE, ConvertPolicy::WRAP })),
Sheri Zhanga387e272021-06-29 17:34:06 +0100257 ActivationFunctionsDataset),
258 OutOfPlaceDataSet))
Sanghoon Lee70f82912017-08-24 14:21:24 +0100259{
260 // Validate output
261 validate(CLAccessor(_target), _reference);
262}
263
Sheri Zhanga387e272021-06-29 17:34:06 +0100264FIXTURE_DATA_TEST_CASE(RunLarge, CLArithmeticAdditionFloatFixture<float>, framework::DatasetMode::NIGHTLY, combine(combine(combine(combine(datasets::LargeShapes(), framework::dataset::make("DataType",
Georgios Pinitasda816752021-07-02 09:22:14 +0100265 DataType::F32)),
Giorgio Arena8b2a7d32020-02-11 17:21:31 +0000266 framework::dataset::make("ConvertPolicy", { ConvertPolicy::SATURATE, ConvertPolicy::WRAP })),
Sheri Zhanga387e272021-06-29 17:34:06 +0100267 EmptyActivationFunctionsDataset),
268 OutOfPlaceDataSet))
Sanghoon Lee70f82912017-08-24 14:21:24 +0100269{
270 // Validate output
271 validate(CLAccessor(_target), _reference);
272}
Diego Lopez Recas0021d752017-12-18 14:42:56 +0000273
274template <typename T>
Giorgio Arena8b2a7d32020-02-11 17:21:31 +0000275using CLArithmeticAdditionBroadcastFloatFixture = ArithmeticAdditionBroadcastValidationFloatFixture<CLTensor, CLAccessor, CLArithmeticAddition, T>;
Diego Lopez Recas0021d752017-12-18 14:42:56 +0000276
Sheri Zhanga387e272021-06-29 17:34:06 +0100277FIXTURE_DATA_TEST_CASE(RunSmallBroadcast, CLArithmeticAdditionBroadcastFloatFixture<float>, framework::DatasetMode::PRECOMMIT, combine(combine(combine(combine(datasets::SmallShapesBroadcast(),
Georgios Pinitasda816752021-07-02 09:22:14 +0100278 framework::dataset::make("DataType", DataType::F32)),
Giorgio Arena8b2a7d32020-02-11 17:21:31 +0000279 framework::dataset::make("ConvertPolicy", { ConvertPolicy::SATURATE, ConvertPolicy::WRAP })),
Sheri Zhanga387e272021-06-29 17:34:06 +0100280 EmptyActivationFunctionsDataset),
281 OutOfPlaceDataSet))
Giorgio Arena8b2a7d32020-02-11 17:21:31 +0000282{
283 // Validate output
284 validate(CLAccessor(_target), _reference);
285}
Sheri Zhanga387e272021-06-29 17:34:06 +0100286FIXTURE_DATA_TEST_CASE(RunWithActivationBroadcast, CLArithmeticAdditionBroadcastFloatFixture<float>, framework::DatasetMode::ALL, combine(combine(combine(combine(datasets::TinyShapesBroadcast(),
Georgios Pinitasda816752021-07-02 09:22:14 +0100287 framework::dataset::make("DataType", DataType::F32)),
Giorgio Arena8b2a7d32020-02-11 17:21:31 +0000288 framework::dataset::make("ConvertPolicy", { ConvertPolicy::SATURATE, ConvertPolicy::WRAP })),
Sheri Zhanga387e272021-06-29 17:34:06 +0100289 ActivationFunctionsDataset),
290 OutOfPlaceDataSet))
Diego Lopez Recas0021d752017-12-18 14:42:56 +0000291{
292 // Validate output
293 validate(CLAccessor(_target), _reference);
294}
295
Sheri Zhanga387e272021-06-29 17:34:06 +0100296FIXTURE_DATA_TEST_CASE(RunLargeBroadcast, CLArithmeticAdditionBroadcastFloatFixture<float>, framework::DatasetMode::NIGHTLY, combine(combine(combine(combine(datasets::LargeShapesBroadcast(),
Georgios Pinitasda816752021-07-02 09:22:14 +0100297 framework::dataset::make("DataType", DataType::F32)),
Giorgio Arena8b2a7d32020-02-11 17:21:31 +0000298 framework::dataset::make("ConvertPolicy", { ConvertPolicy::SATURATE, ConvertPolicy::WRAP })),
Sheri Zhanga387e272021-06-29 17:34:06 +0100299 EmptyActivationFunctionsDataset),
300 OutOfPlaceDataSet))
Diego Lopez Recas0021d752017-12-18 14:42:56 +0000301{
302 // Validate output
303 validate(CLAccessor(_target), _reference);
304}
Michele Di Giorgio6997fc92019-06-18 10:23:22 +0100305TEST_SUITE_END() // FP32
306TEST_SUITE_END() // Float
Sanghoon Lee70f82912017-08-24 14:21:24 +0100307
Michele Di Giorgio6997fc92019-06-18 10:23:22 +0100308TEST_SUITE_END() // ArithmeticAddition
309TEST_SUITE_END() // CL
Sanghoon Lee70f82912017-08-24 14:21:24 +0100310} // namespace validation
311} // namespace test
312} // namespace arm_compute