interplane.Get Omega
Read in your language

omega-bridge

Omega-first language interoperability: checked conversion backends and native language bindings

Brought by drakestapleton

branch main Branches Tags History

omega-bridge / pytorch / kernels / eadd.om

7 lines · 285 bytes Raw Blame History
1note eadd: o = a + b element by element (aten.add.Tensor, alpha 1, equal shapes), one f32 rounding.
2note The caller supplies the const line L (the element count) before this text.
3fn eadd a view f32 L b view f32 L o edit f32 L to void
4for i ulong L
5put o i add get a i get b i
6end
7end