From 458c365e90b0fc03cd1eec2680f79b99b5bb6951 Mon Sep 17 00:00:00 2001 From: leejet Date: Thu, 23 Oct 2025 22:47:59 +0800 Subject: [PATCH] format code --- ggml_extend.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ggml_extend.hpp b/ggml_extend.hpp index c0e81c3..6679794 100644 --- a/ggml_extend.hpp +++ b/ggml_extend.hpp @@ -958,9 +958,9 @@ __STATIC_INLINE__ struct ggml_tensor* ggml_nn_linear(struct ggml_context* ctx, // workaround: avoid ggml cuda error int64_t ne2 = x->ne[2]; int64_t ne3 = x->ne[3]; - x = ggml_reshape_2d(ctx, x, x->ne[0], x->ne[1]*x->ne[2]*x->ne[3]); - x = ggml_mul_mat(ctx, w, x); - x = ggml_reshape_4d(ctx, x, x->ne[0], x->ne[1]/ne2/ne3, ne2, ne3); + x = ggml_reshape_2d(ctx, x, x->ne[0], x->ne[1] * x->ne[2] * x->ne[3]); + x = ggml_mul_mat(ctx, w, x); + x = ggml_reshape_4d(ctx, x, x->ne[0], x->ne[1] / ne2 / ne3, ne2, ne3); } else { x = ggml_mul_mat(ctx, w, x); }