From 622b8ad4648af55a6743d38105725958b0075020 Mon Sep 17 00:00:00 2001 From: Viet-Hoa Do Date: Tue, 13 Sep 2022 10:20:06 +0100 Subject: Fix bug in QASYMM8_SIGNED to F32 cast layer Resolves: COMPMID-5580 Signed-off-by: Viet-Hoa Do Change-Id: Ia731560c23a6ab2e0ead5a857fbabb9cbc25154c Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/c/VisualCompute/ComputeLibrary/+/452428 Tested-by: bsgcomp Reviewed-by: Pablo Tello Comments-Addressed: bsgcomp Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/8268 Comments-Addressed: Arm Jenkins Benchmark: Arm Jenkins Tested-by: Arm Jenkins Reviewed-by: Gian Marco Iodice --- src/cpu/kernels/CpuCastKernel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/cpu/kernels/CpuCastKernel.cpp b/src/cpu/kernels/CpuCastKernel.cpp index e1314e61da..15a9ddcab4 100644 --- a/src/cpu/kernels/CpuCastKernel.cpp +++ b/src/cpu/kernels/CpuCastKernel.cpp @@ -288,7 +288,7 @@ void CpuCastKernel::run_op(ITensorPack &tensors, const Window &window, const Thr int x = window_start_x; for(; x <= (window_end_x - window_step_x); x += window_step_x) { - const int8x16_t texels_s8 = vld1q_s8(reinterpret_cast(src.ptr())); + const int8x16_t texels_s8 = vld1q_s8(src_ptr + x); const int16x8x2_t texels = { -- cgit v1.2.1