interplane.Get Omega
Read in your language

ggml-omega

aien-dev/ggml-omega

Brought by drakestapleton

branch main Branches Tags History

ggml-omega / kernels / dh16.om

11 lines · 288 bytes Raw Blame History
1note dh16_@T@: as df32 with f16 weights, converted in Omega (h2f).
2fn dh16_@T@ acc ulong w view ushort @T@ x view f32 @T@ fin ulong to ulong
3s = bitcast f64 acc
4for i ulong @T@
5s = add s f64 mul h2f get w i get x i
6end
7if eq fin 1
8ret ulong bitcast uint f32 s
9end
10ret bitcast ulong s
11end