diff options
author | Pablo Marquez Tello <pablo.tello@arm.com> | 2023-10-12 19:10:48 +0100 |
---|---|---|
committer | Pablo Marquez Tello <pablo.tello@arm.com> | 2023-10-13 09:17:33 +0000 |
commit | d8a397e40e59a6c1251a774966360240fd172fca (patch) | |
tree | 7a6b4ebd12f389bd659d6651f5717827b8555407 /src/cpu/kernels | |
parent | b5cb4d2e3e229b1ca34a1510f4204fc28da7317b (diff) | |
download | ComputeLibrary-d8a397e40e59a6c1251a774966360240fd172fca.tar.gz |
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 <pablo.tello@arm.com>
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/10476
Benchmark: Arm Jenkins <bsgcomp@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Viet-Hoa Do <viet-hoa.do@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'src/cpu/kernels')
-rw-r--r-- | src/cpu/kernels/scale/neon/fp16.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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<float16_t>(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, |