From 4746326ecb075dcfa123aaa8b38de5ec3e534b60 Mon Sep 17 00:00:00 2001 From: Giorgio Arena Date: Mon, 5 Aug 2019 17:15:40 +0100 Subject: COMPMID-2336 Fix valgrind error for BatchNormalizationLayer on NEON with NHWC layout Change-Id: I9ed2d0647ae3c33bce6290acfdac356ffffcb709 Signed-off-by: Giorgio Arena Reviewed-on: https://review.mlplatform.org/c/1697 Reviewed-by: Gian Marco Iodice Tested-by: Arm Jenkins --- src/core/CL/kernels/CLBatchNormalizationLayerKernel.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/core/CL/kernels/CLBatchNormalizationLayerKernel.cpp') diff --git a/src/core/CL/kernels/CLBatchNormalizationLayerKernel.cpp b/src/core/CL/kernels/CLBatchNormalizationLayerKernel.cpp index f9b975392c..ae646a79b8 100644 --- a/src/core/CL/kernels/CLBatchNormalizationLayerKernel.cpp +++ b/src/core/CL/kernels/CLBatchNormalizationLayerKernel.cpp @@ -107,6 +107,7 @@ std::pair validate_and_configure_window(ITensorInfo *input, ITen window_changed = update_window_and_padding(win, input_access); } + // Mean, var, gamma and beta get parallelized for the NHWC case as they follow the channel dimension, which is along the first axis if(input->data_layout() == DataLayout::NHWC) { AccessWindowHorizontal mean_access(mean, 0, num_elems_processed_per_iteration); -- cgit v1.2.1