omega-mv
Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.
Brought by drakestapleton
omega-mv / bridge / ggml / kernels / smw.om
| 1 | note smw_@T@: the soft_max input w = x*scale + mask (f32 mask), on @T@ lanes. |
| 2 | fn smw_@T@ x view f32 @T@ m view f32 @T@ d edit f32 @T@ sc ulong to void |
| 3 | sf = bitcast f32 uint sc |
| 4 | for i ulong @T@ |
| 5 | put d i add mul get x i sf get m i |
| 6 | end |
| 7 | end |