From 63825e8259508dc7731b6de2e008c5ef8c738d79 Mon Sep 17 00:00:00 2001 From: Giorgio Arena Date: Thu, 25 Mar 2021 14:54:50 +0000 Subject: Implicit padding testing along the X axis on high priority operators Add artificial implicit padding testing for the following fixtures: - Scale - FullyConnected - Pooling - DepthwiseConvolution - DirectConvolution - Winograd - FFT - GEMM/GEMMLowp Create utility function that loops through a list of tensor and adds random padding based on the global seed (only for NHWC layer layout). Remove GEMMLowpAssemblyFixture since it wasn't used Remove some AssetsLibrary headers since they weren't used Resolve COMPMID-4161 Change-Id: Ib6f4f7f113ae69b993d7b2a9e04abbf3de8c99fe Signed-off-by: Giorgio Arena Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/5327 Reviewed-by: Michele Di Giorgio Reviewed-by: Georgios Pinitas Comments-Addressed: Arm Jenkins Tested-by: Arm Jenkins --- tests/validation/Helpers.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tests/validation/Helpers.h') diff --git a/tests/validation/Helpers.h b/tests/validation/Helpers.h index 30ec14e716..3ba3bd1259 100644 --- a/tests/validation/Helpers.h +++ b/tests/validation/Helpers.h @@ -229,6 +229,15 @@ std::pair get_quantized_qasymm8_signed_bounds(const QuantizationInfo & * @param[in] channel_id Channel id for per channel quantization info. */ std::pair get_symm_quantized_per_channel_bounds(const QuantizationInfo &quant_info, float min, float max, size_t channel_id = 0); + +/** Add random padding along the X axis (between 1 and 16 columns per side) to all the input tensors + * + * @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_x(std::initializer_list tensors, const DataLayout &data_layout = DataLayout::NHWC); } // namespace validation } // namespace test } // namespace arm_compute -- cgit v1.2.1