From 89890c630c438debe9661eeb444d81d6e2b3e1a5 Mon Sep 17 00:00:00 2001 From: Usama Arif Date: Tue, 19 Mar 2019 10:57:05 +0000 Subject: COMPMID-2066: Create reference implementation for reflect and symmetric paddings Change-Id: I18f864b1fa902e5bb0aee8168c02bff73cfd3e59 Signed-off-by: Usama Arif Reviewed-on: https://review.mlplatform.org/c/874 Comments-Addressed: Arm Jenkins Tested-by: Arm Jenkins Reviewed-by: Pablo Marquez --- tests/validation/reference/PadLayer.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'tests/validation/reference/PadLayer.h') diff --git a/tests/validation/reference/PadLayer.h b/tests/validation/reference/PadLayer.h index 9406b05c4d..5ebb5edf5e 100644 --- a/tests/validation/reference/PadLayer.h +++ b/tests/validation/reference/PadLayer.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018 ARM Limited. + * Copyright (c) 2018-2019 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -39,13 +39,15 @@ namespace reference /** Reference function to pad an ND tensor. This function is not supposed to be optimized, but to * clearly and naively execute the padding of a tensor * - * @param[in] src Tensor to pad - * @param[in] paddings Padding size in each dimension + * @param[in] src Tensor to pad + * @param[in] paddings Padding size in each dimension + * @param[in] const_value Constant value to fill padding with + * @param[in] mode [optional] Padding mode to use * * @return The padded Tensor */ template -SimpleTensor pad_layer(const SimpleTensor &src, const PaddingList &paddings); +SimpleTensor pad_layer(const SimpleTensor &src, const PaddingList &paddings, const PixelValue const_value = PixelValue(), const PaddingMode mode = PaddingMode::CONSTANT); } // namespace reference } // namespace validation } // namespace test -- cgit v1.2.1