From 72b56875b9bb30a9ed1d2ad38ec51fc88e435c35 Mon Sep 17 00:00:00 2001 From: Gian Marco Iodice Date: Tue, 29 Jun 2021 10:08:46 +0100 Subject: Enable global pooling optimization on OpenCL - Add loop unrolling on X and use POOL_X and POOL_Y defines for the for loop Resolves COMPMID-4573 Change-Id: I33cb825cfb55912ccb0ab9d03bd33a3dab4c8b44 Signed-off-by: Gian Marco Iodice Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/5872 Reviewed-by: Georgios Pinitas Reviewed-by: Giorgio Arena Tested-by: Arm Jenkins Comments-Addressed: Arm Jenkins --- tests/validation/Helpers.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tests/validation/Helpers.h') diff --git a/tests/validation/Helpers.h b/tests/validation/Helpers.h index 00e588e7b7..a8804ad7e7 100644 --- a/tests/validation/Helpers.h +++ b/tests/validation/Helpers.h @@ -240,6 +240,16 @@ std::pair get_symm_quantized_per_channel_bounds(const QuantizationInfo * @note This function adds padding to the input tensors only if data_layout == DataLayout::NHWC */ void add_padding_x(std::initializer_list tensors, const DataLayout &data_layout = DataLayout::NHWC, bool only_right_pad = false); + +/** Add random padding along the Y axis (between 1 and 4 rows per side) to all the input tensors. + * This is used in our validation suite in order to simulate implicit padding addition after configuring, but before allocating. + * + * @param[in] tensors List of tensors to add padding to + * @param[in] data_layout (Optional) Data layout of the operator + * + * @note This function adds padding to the input tensors only if data_layout == DataLayout::NHWC + */ +void add_padding_y(std::initializer_list tensors, const DataLayout &data_layout = DataLayout::NHWC); } // namespace validation } // namespace test } // namespace arm_compute -- cgit v1.2.1