code wiki / (root) / nx_f32_bn_fold_gate.nx

nx_f32_bn_fold_gate.nx

buildroot/runtime/nx_f32_bn_fold_gate.nx

3087 B60 linesdepth 5pulls 8 transitivereach 0 importersview sourcekind gate/prooftopic f32
docsdependenciesstructsconstsfunctions

about

nx_f32_bn_fold_gate.nx -- proof of BN-fold: exact folded W'/b', AND functional equivalence foldedconv(in) == BN(conv(in)). Values chosen so var+eps=4 -> sqrt=2 (exact), s=gamma/2=3. expect_exit: 0

dependencies 5 imports · 0 importers

nx_syscalls.nx nx_f32_cvt.nx nx_f32.nx nx_f32_conv2d.nx nx_f32_bn_fold.nx nx_f32_bn_fold_gate.nx

imports: nx_syscalls.nxnx_f32_cvt.nxnx_f32.nxnx_f32_conv2d.nxnx_f32_bn_fold.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_bn_fold nx_f32_sqrt nx_f32_classify nx_f32_exp_field nx_f32_mant_field nx_f32_sign nx_f32_exp_field ↻ nx_f32_mant_field ↻ _f32_isqrt nx_f32_add nx_f32_classify ↻ nx_f32_sign ↻ nx_f32_mant_field ↻ nx_f32_exp_field ↻ nx_f32_div nx_f32_classify ↻ 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_f32_sub nx_f32_add ↻ nx_f32_neg gp sys_write gn sys_mmap ↻ sys_write ↻ nx_f32_conv2d_forward nx_f32_add ↻ nx_f32_mul ↻ nx_f32_sqrt ↻ nx_f32_add ↻

structs

none

consts

none

functions

9func 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
10func gn(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
20func main(argc: i64, argv: *i64) -> i64