Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-mv/blob/main/bridge/omega-bridge/pytorch/kernels/relu.om # 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 Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / bridge / omega-bridge / pytorch / kernels / relu.om` 12 lines ยท 306 bytes Raw Blame History 1 note relu: o = x where x is not below 0.0, else 0.0 (aten.relu); NaN is kept, as aten.relu keeps it. 2 note The caller supplies the const line L (the element count) before this text. 3 fn relu x view f32 L o edit f32 L to void 4 for i ulong L 5 v = get x i 6 if lt v 0.0f32 7 put o i 0.0f32 8 else 9 put o i v 10 end 11 end 12 end