interplane.Get Omega
Read in your language

ggml-omega

aien-dev/ggml-omega

Brought by drakestapleton

branch main Branches Tags History

ggml-omega / kernels / sexp.om

11 lines · 304 bytes Raw Blame History
1note sexp_@T@: w[i] = f32 exp(w[i] - max) in place; returns acc (f64 bits) + the sum of the new w[i].
2fn sexp_@T@ acc ulong w edit f32 @T@ mx ulong to ulong
3s = bitcast f64 acc
4mf = bitcast f32 uint mx
5for i ulong @T@
6v = f32 ex64 f64 sub get w i mf
7put w i v
8s = add s f64 v
9end
10ret bitcast ulong s
11end