fix: correct ggml_ext_silu_act (#1056)

This commit is contained in:
leejet 2025-12-06 23:55:28 +08:00 committed by GitHub
parent 985aedda32
commit 689e44c9a8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -768,7 +768,7 @@ __STATIC_INLINE__ ggml_tensor* ggml_ext_silu_act(ggml_context* ctx, ggml_tensor*
auto x1 = x_vec[0]; // [ne3, ne2, ne1, ne0/2]
auto x2 = x_vec[1]; // [ne3, ne2, ne1, ne0/2]
x1 = ggml_gelu_inplace(ctx, x1);
x1 = ggml_silu_inplace(ctx, x1);
x = ggml_mul(ctx, x1, x2); // [ne3, ne2, ne1, ne0/2]