From 3af1925a4c45acd386371987c35bb487865ccd96 Mon Sep 17 00:00:00 2001 From: leg190 <75871074+leg190@users.noreply.github.com> Date: Fri, 22 Nov 2024 20:25:06 +0800 Subject: [PATCH] [Fix](mluOpLogspace): Fix logspace bug. (#1153) --- kernels/logspace/logspace_block.mlu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernels/logspace/logspace_block.mlu b/kernels/logspace/logspace_block.mlu index bec677d74..625597f24 100644 --- a/kernels/logspace/logspace_block.mlu +++ b/kernels/logspace/logspace_block.mlu @@ -72,7 +72,7 @@ __mlu_func__ void float2DifferentType(float *result_float, T *result, (int16_t *)result_ge_half_max, num); } if (std::is_same::value) { - __bang_float2int32_tz((int *)result, result_float, num, 0); + __cn_vector_cast_f32_to_s32(num, (int *)result, result_float); } }