nx_f32_rope_test.nx
buildroot/runtime/nx_f32_rope_test.nx
about
nx_f32_rope_test.nx -- smoke for nx_f32_rope.nx.
Two test classes:
A) position=0 identity: cos(0)=1, sin(0)=0, so RoPE preserves
input exactly bit-for-bit.
B) head_dim=2, position=1, base=10000: theta_0 = 1.0,
so x' = [x0*cos(1) - x1*sin(1), x0*sin(1) + x1*cos(1)].
With x=[1,0]: x' = [cos(1), sin(1)] ~= [0.5403, 0.8415].
dependencies 8 imports · 0 importers
imports: nx_syscalls.nxnx_tier.nxnx_f32.nxnx_f32_div.nxnx_f32_cvt.nxnx_f32_exp.nxnx_f32_sincos.nxnx_f32_rope.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| none |
functions
| 19 | func _ulp_diff_pos(a: i64, b: i64) -> i64 called by 1: main |
| 24 | func main() -> i64 |