interplane.Get Omega
Read in your language

ggml-omega

aien-dev/ggml-omega

Brought by drakestapleton

branch main Branches Tags History

ggml-omega / kernels / silu.om

8 lines · 199 bytes Raw Blame History
1note silu_@T@: d = x/(1 + expf(-x)) in f32, as ggml_silu_f32.
2fn silu_@T@ a view f32 @T@ d edit f32 @T@ to void
3for i ulong @T@
4x = get a i
5e = f32 ex64 f64 neg x
6put d i div x add f32 1.0 e
7end
8end