mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2026-11-11 11:26:34 +00:00
fix: correct ggml_ext_silu_act (#1056)
This commit is contained in:
1 parent
985aedda32
commit
689e44c9a8
1 file changed
+1
-1
+1
-1
@@ -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]
|
||||
|
||||
|
||||
Reference in new issue
Block a user