diff options
author | Michalis Spyrou <michalis.spyrou@arm.com> | 2020-07-31 11:38:36 +0100 |
---|---|---|
committer | Michalis Spyrou <michalis.spyrou@arm.com> | 2020-07-31 11:58:17 +0000 |
commit | ef6ec50eff04adb3e5d60ba96a1a7d9118b10c5a (patch) | |
tree | da88e28111166b7550dc0eb3ccd7d05419d16a1c /src/core/CL/cl_kernels/batchnormalization_layer.cl | |
parent | a179798501af2b3939f9282b2f03ef4f98471d81 (diff) | |
download | ComputeLibrary-ef6ec50eff04adb3e5d60ba96a1a7d9118b10c5a.tar.gz |
COMPMID-3324: Fix oclgrind warnings
Signed-off-by: Michalis Spyrou <michalis.spyrou@arm.com>
Change-Id: Ib14d158b9c5568981835312dcd9d5b9ca116649a
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/3637
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Michele Di Giorgio <michele.digiorgio@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'src/core/CL/cl_kernels/batchnormalization_layer.cl')
-rw-r--r-- | src/core/CL/cl_kernels/batchnormalization_layer.cl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/CL/cl_kernels/batchnormalization_layer.cl b/src/core/CL/cl_kernels/batchnormalization_layer.cl index 6f51db85e7..ad27aa386c 100644 --- a/src/core/CL/cl_kernels/batchnormalization_layer.cl +++ b/src/core/CL/cl_kernels/batchnormalization_layer.cl @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017-2019 Arm Limited. + * Copyright (c) 2017-2020 Arm Limited. * * SPDX-License-Identifier: MIT * @@ -346,9 +346,9 @@ __kernel void fuse_batchnormalization_layer(TENSOR3D_DECLARATION(w), int c0 = z % DIM2; int c1 = z / DIM2; #else // ! defined(DIM2) - int c0 = 0; + int c0 = 0; #if defined(NHWC) - int c1 = x; + int c1 = x; #else // defined(NHWC) int c1 = z; #endif // defined(NHWC) @@ -386,7 +386,7 @@ __kernel void fuse_batchnormalization_layer(TENSOR3D_DECLARATION(w), // Compute bias #if !defined(DIM2) && defined(NHWC) if(z == 0 && y == 0) -#else !defined(DIM2) && defined(NHWC) +#else // !defined(DIM2) && defined(NHWC) if(x == 0 && y == 0 && c0 == 0) #endif // !defined(DIM2) && defined(NHWC) { |