code wiki / (root) / nx_f32_conv_train_gate.nx

nx_f32_conv_train_gate.nx

buildroot/runtime/nx_f32_conv_train_gate.nx

5677 B108 linesdepth 5pulls 8 transitivereach 0 importersview sourcekind gate/prooftopic f32
docsdependenciesstructsconstsfunctions

about

nx_f32_conv_train_gate.nx -- proves the SOVEREIGN conv TRAINING LOOP converges end-to-end: forward (nx_f32_conv2d_forward) -> MSE loss/grad (nx_f32_train_ops) -> backward (nx_f32_conv2d_backward) -> SGD step, iterated. A 2x2 conv (C_in=1 H=2 W=2, C_out=1, 1x1 out) is trained from ZERO weights to fit a target produced by a known "true" weight; the loss must never increase and must converge to ~0 -- the first mechanical evidence that "build 2" (training our own pose net) works, reducing the arc to SCALE + real labeled data. Also unit-checks the ReLU backward and the MSE gradient (needed for the multi-layer pose net). This is a CONVERGENCE proof, NOT a trained pose net. expect_exit: 0

dependencies 6 imports · 0 importers

nx_syscalls.nx nx_f32_cvt.nx nx_f32.nx nx_f32_conv2d.nx nx_f32_conv2d_backward.nx nx_f32_train_ops.nx nx_f32_conv_train_gate.nx

imports: nx_syscalls.nxnx_f32_cvt.nxnx_f32.nxnx_f32_conv2d.nxnx_f32_conv2d_backward.nxnx_f32_train_ops.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main sys_mmap nx_i32_to_f32 nx_f32_conv2d_forward nx_f32_add nx_f32_classify nx_f32_exp_field nx_f32_mant_field nx_f32_sign nx_f32_mant_field ↻ nx_f32_exp_field ↻ nx_f32_mul nx_f32_classify ↻ nx_f32_sign ↻ nx_f32_mant_field ↻ nx_f32_exp_field ↻ nx_q14_to_f32 nx_i32_to_f32 ↻ f32_mse_loss nx_q14_to_f32 ↻ nx_f32_sub nx_f32_add ↻ nx_f32_neg nx_f32_add ↻ nx_f32_mul ↻ nx_f32_gt nx_f32_lt nx_f32_is_nan nx_f32_classify ↻ nx_f32_is_zero nx_f32_classify ↻ f32_mse_grad nx_f32_sub ↻ nx_f32_conv2d_backward nx_f32_add ↻ nx_f32_mul ↻ f32_sgd_step nx_f32_sub ↻ nx_f32_mul ↻ gp

structs

none

consts

none

functions

15func gp(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return sys_write(1, s, n) }
called by 1: main calls 1: sys_write
16func gn(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
26func main(argc: i64, argv: *i64) -> i64