From ebf23744eb1e587e12e3459b1891a89a840fc687 Mon Sep 17 00:00:00 2001 From: Tracy Sharpe <42477615+tracysh@users.noreply.github.com> Date: Tue, 24 Dec 2019 19:03:05 -0800 Subject: [PATCH] MLAS: ARM64 build fix (#2734) fix bad usage of vreinterpret to cast vector element types --- onnxruntime/core/mlas/lib/quantize.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/onnxruntime/core/mlas/lib/quantize.cpp b/onnxruntime/core/mlas/lib/quantize.cpp index 2a04b14d25..c81897d6f9 100644 --- a/onnxruntime/core/mlas/lib/quantize.cpp +++ b/onnxruntime/core/mlas/lib/quantize.cpp @@ -176,7 +176,7 @@ MlasQuantizeLinearKernel( MinimumValueVector, MaximumValueVector, ZeroPointVector); #if defined(MLAS_NEON64_INTRINSICS) - vst1q_lane_u8((uint8_t*)Output + n, vreinterpretq_s32_u8(IntegerVector), 0); + vst1q_lane_u8((uint8_t*)Output + n, vreinterpretq_u8_s32(IntegerVector), 0); #else *((uint8_t*)Output + n) = (uint8_t)_mm_cvtsi128_si32(IntegerVector); #endif