From d8a397e40e59a6c1251a774966360240fd172fca Mon Sep 17 00:00:00 2001 From: Pablo Marquez Tello Date: Thu, 12 Oct 2023 19:10:48 +0100 Subject: Fix build error in CpuScale * Build error when using data_layout_support=nhwc * Some kernels need to be guarded by ENABLE_NCHW_KERNELS Change-Id: I0414084b458360c7e8d2842f4734c39aad80852e Signed-off-by: Pablo Marquez Tello Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/10476 Benchmark: Arm Jenkins Tested-by: Arm Jenkins Reviewed-by: Viet-Hoa Do Comments-Addressed: Arm Jenkins --- src/cpu/kernels/scale/neon/fp16.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cpu/kernels/scale/neon/fp16.cpp b/src/cpu/kernels/scale/neon/fp16.cpp index 65fe35c77c..c8a7b7038e 100644 --- a/src/cpu/kernels/scale/neon/fp16.cpp +++ b/src/cpu/kernels/scale/neon/fp16.cpp @@ -195,6 +195,7 @@ void fp16_neon_scale_bilinear(const ITensor *src, } // namespace namespace cpu { +#ifdef ENABLE_NCHW_KERNELS void fp16_bilinear_neon_scale_nchw(const ITensor *src, ITensor *dst, const ITensor *offsets, @@ -229,7 +230,7 @@ void fp16_nearest_neon_scale_nchw(const ITensor *src, arm_compute::cpu::scale_nearest_nchw(src, dst, dx, dy, offsets, constant_border_value, sampling_offset, align_corners, window); } - +#endif // ENABLE_NCHW_KERNELS void fp16_neon_scale(const ITensor *src, ITensor *dst, const ITensor *offsets, -- cgit v1.2.1