omega-bridge
Omega-first language interoperability: checked conversion backends and native language bindings
Brought by drakestapleton
omega-bridge / pytorch / kernels / eadd.om
| 1 | note eadd: o = a + b element by element (aten.add.Tensor, alpha 1, equal shapes), one f32 rounding. |
| 2 | note The caller supplies the const line L (the element count) before this text. |
| 3 | fn eadd a view f32 L b view f32 L o edit f32 L to void |
| 4 | for i ulong L |
| 5 | put o i add get a i get b i |
| 6 | end |
| 7 | end |