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 / omega-bridge / pytorch / kernels / tr.om
| 1 | note tr: o[C,R] = x[R,C] transposed (aten.permute with dims [1,0]) into a new row-major array. |
| 2 | note The caller supplies const lines R C RC before this text. |
| 3 | fn tr x view f32 RC o edit f32 RC to void |
| 4 | for i ulong R |
| 5 | for j ulong C |
| 6 | put o add mul j R i get x add mul i C j |
| 7 | end |
| 8 | end |
| 9 | end |