From 7282d562d459066dff3e27fd5299f71e0809990d Mon Sep 17 00:00:00 2001 From: Pablo Tello Date: Thu, 14 Jun 2018 15:35:49 +0100 Subject: COMPMID-1287: Extending NEWinogradLayer test suite Added NHWC to the dataset to the validation tests Fixed a problem in the output transform which made the Activation to fail because way/ordering the output transform wrote the data to the output tensor. Change-Id: I9609f86605dbfef70b47a0fb043287bf0e5d675b Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/136015 Tested-by: Jenkins Reviewed-by: Georgios Pinitas --- src/core/NEON/kernels/NEWinogradConvolutionLayerKernel.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/core/NEON/kernels/NEWinogradConvolutionLayerKernel.cpp') diff --git a/src/core/NEON/kernels/NEWinogradConvolutionLayerKernel.cpp b/src/core/NEON/kernels/NEWinogradConvolutionLayerKernel.cpp index cfd53d7082..50e69a8adf 100644 --- a/src/core/NEON/kernels/NEWinogradConvolutionLayerKernel.cpp +++ b/src/core/NEON/kernels/NEWinogradConvolutionLayerKernel.cpp @@ -182,7 +182,6 @@ Status validate_arguments_winograd_output_trans(const ITensorInfo *input, const ARM_COMPUTE_RETURN_ERROR_ON_NULLPTR(input); ARM_COMPUTE_RETURN_ERROR_ON_NULLPTR(output); ARM_COMPUTE_RETURN_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(input, 1, DataType::F32); - ARM_COMPUTE_RETURN_ERROR_ON(winograd_info.output_data_layout != DataLayout::NCHW); ARM_COMPUTE_RETURN_ERROR_ON(input->dimension(1) != num_tiles.area()); ARM_COMPUTE_RETURN_ERROR_ON_MSG((kernel_dims.width != 3U && kernel_dims.width != 5U), "Winograd output transform only supports 3x3 and 5x5 kernels"); ARM_COMPUTE_RETURN_ERROR_ON_MSG((kernel_dims.width != kernel_dims.height), "Winograd output transform only supports 3x3 and 5x5 kernels"); @@ -529,12 +528,15 @@ void NEWinogradLayerTransformOutputKernelinfo()->set_valid_region(ValidRegion(Coordinates(), _output_nhwc->info()->tensor_shape())); + INEKernel::configure(win); } @@ -548,7 +550,7 @@ void NEWinogradLayerTransformOutputKernel(_biases->buffer()) : nullptr), reinterpret_cast(_output_nhwc->buffer()), - _num_batches, _num_rows, _num_cols, _num_channels); + _num_batches, _num_rows, _num_cols, _num_channels, 0, _output_nhwc->info()->strides_in_bytes()[2] / sizeof(T), _output_nhwc->info()->strides_in_bytes()[1] / sizeof(T)); // The code below cannot be moved to configure because biases hasn't been allocated at that point const size_t fst = window.x().start(); -- cgit v1.2.1