From 6a91440273444b14d158056b5c199e59ca0051e5 Mon Sep 17 00:00:00 2001 From: Isabella Gottardi Date: Wed, 30 Jan 2019 15:45:42 +0000 Subject: COMPMID-1710: Allow NHWC datalayout in SAME pad calculation Change-Id: Id3788772ad62c7e2d962bc2cb8812b9503e2e836 Signed-off-by: Isabella Gottardi Reviewed-on: https://review.mlplatform.org/603 Tested-by: Arm Jenkins Reviewed-by: VidhyaSudhan Loganathan --- arm_compute/core/Utils.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'arm_compute/core/Utils.h') diff --git a/arm_compute/core/Utils.h b/arm_compute/core/Utils.h index 816999db51..d112259d39 100644 --- a/arm_compute/core/Utils.h +++ b/arm_compute/core/Utils.h @@ -827,10 +827,11 @@ inline void permute_strides(Dimensions &dimensions, const PermutationVector & * @param[in] input_shape Input shape * @param[in] weights_shape Weights shape * @param[in] conv_info Convolution information (containing strides) + * @param[in] data_layout (Optional) Data layout of the input and weights tensor * * @return PadStrideInfo for SAME padding */ -PadStrideInfo calculate_same_pad(TensorShape input_shape, TensorShape weights_shape, PadStrideInfo conv_info); +PadStrideInfo calculate_same_pad(TensorShape input_shape, TensorShape weights_shape, PadStrideInfo conv_info, DataLayout data_layout = DataLayout::NCHW); /** Returns expected width and height of the deconvolution's output tensor. * -- cgit v1.2.1