From d30714a9702140408cb0e313c07b278536bb0cf9 Mon Sep 17 00:00:00 2001 From: Gian Marco Iodice Date: Wed, 15 Aug 2018 16:53:27 +0100 Subject: COMPMID-1188 - Fix CLWinogradConvolutionLayer for NHWC Change-Id: Ib4abe0388f218276e79f7c4405827e61722f0ef8 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/144240 Reviewed-by: Giorgio Arena Tested-by: Jenkins --- src/core/CL/kernels/CLWinogradInputTransformKernel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/CL/kernels/CLWinogradInputTransformKernel.cpp') diff --git a/src/core/CL/kernels/CLWinogradInputTransformKernel.cpp b/src/core/CL/kernels/CLWinogradInputTransformKernel.cpp index 2309fbfb26..c4e472ad0a 100644 --- a/src/core/CL/kernels/CLWinogradInputTransformKernel.cpp +++ b/src/core/CL/kernels/CLWinogradInputTransformKernel.cpp @@ -175,7 +175,7 @@ void CLWinogradInputTransformKernel::configure(const ICLTensor *input, ICLTensor const unsigned int tile_max_dim = std::max(output_tile_size.width, output_tile_size.height); // Check optimized kernel if output_dims == 2x2 - if(tile_max_dim == 2) + if((tile_max_dim == 2) && (input->info()->data_layout() == DataLayout::NCHW)) { _step_z = (_input->info()->dimension(2) % 2) != 0 ? 1 : 2; } -- cgit v1.2.1