From bed436bb5457837fed46939793155a5f1e59e658 Mon Sep 17 00:00:00 2001 From: guodongliang Date: Thu, 7 Nov 2024 11:53:49 +0800 Subject: [PATCH] fallback for some errors --- ntt/include/nncase/ntt/arch/x86_64/ukernels.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/ntt/include/nncase/ntt/arch/x86_64/ukernels.h b/ntt/include/nncase/ntt/arch/x86_64/ukernels.h index bc7e7c761..41829c123 100644 --- a/ntt/include/nncase/ntt/arch/x86_64/ukernels.h +++ b/ntt/include/nncase/ntt/arch/x86_64/ukernels.h @@ -72,14 +72,11 @@ class u_pack> { public: constexpr void operator()(const float *input, vector *output) noexcept { - auto out_ptr = reinterpret_cast(output); + for (size_t j = 0; j < N; j++) { - const float *input_ptr = nullptr; for (size_t i = 0; i < M; i++) { - input_ptr = input + i * MStrides; - *(out_ptr++) = *input_ptr; + output[j](i) = input[i * MStrides + j]; } - input_ptr++; } if constexpr (M < 8) {