From 0adedd712ed3959952db5147cbc271a2a42c2c7f Mon Sep 17 00:00:00 2001 From: Reinforce-II Date: Thu, 23 May 2024 15:23:12 +0800 Subject: [PATCH] move unsed variable --- ggml.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ggml.c b/ggml.c index 1175db6a0fd44..8e58cd08e15e2 100644 --- a/ggml.c +++ b/ggml.c @@ -12353,7 +12353,6 @@ static void ggml_compute_forward_mul_mat_one_chunk( const bool src1_cont = ggml_is_contiguous(src1); ggml_vec_dot_t const vec_dot = type_traits[type].vec_dot; - ggml_to_float_t const to_float = type_traits[type].to_float; enum ggml_type const vec_dot_type = type_traits[type].vec_dot_type; // broadcast factors @@ -12417,6 +12416,8 @@ static void ggml_compute_forward_mul_mat_one_chunk( const int64_t ii03 = ii13 / r3; const int64_t ii02 = ii12 / r2; + ggml_to_float_t const to_float = type_traits[type].to_float; + const char * src0_row = (const char*)src0->data + (0 + ii02 * nb02 + ii03 * nb03); const uint8_t * src1_col = (const uint8_t *)src1->data + ii11 * nb11 + ii12 * nb12 + ii13 * nb13; for (int i = 0; i < blck_0 && iir0 + i < ir0_end; ++i) {