code wiki / (root) / nx_pose_cnn_gate.nx

nx_pose_cnn_gate.nx

buildroot/runtime/nx_pose_cnn_gate.nx

5552 B106 linesdepth 6pulls 8 transitivereach 0 importersview sourcekind gate/prooftopic pose
docsdependenciesstructsconstsfunctions

about

nx_pose_cnn_gate.nx -- executed proof of the sovereign f32 pose-CNN FORWARD PASS end-to-end into the integer keypoint back-half. A tiny 8x8 single-channel image with impulses runs through a REAL 3x3 f32 conv backbone (identity weights, so the peak is predictable while the full 9-tap f32 multiply-add path is exercised) + a REAL 1x1 f32 pose head, then the ReLU'd f32 heatmap is fed DIRECTLY (order-isomorphism) into nx_pose_keypoints. Proves: forward peak + quarter-pixel subpixel through the conv, ReLU zeroing, the f32-bits occlusion threshold, the ReLU unit behavior, and (C5) that the ReLU is LOAD-BEARING -- integer argmax picks the wrong cell on a raw negative activation and the right cell only after ReLU. expect_exit: 0

dependencies 4 imports · 0 importers

nx_syscalls.nx nx_f32_cvt.nx nx_pose_cnn.nx nx_pose_keypoints.nx nx_pose_cnn_gate.nx

imports: nx_syscalls.nxnx_f32_cvt.nxnx_pose_cnn.nxnx_pose_keypoints.nx

imported by: nobody (leaf or entry point)

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

main nx_i32_to_f32 sys_mmap pose_cnn_backbone3x3 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 ↻ pose_cnn_relu nx_f32_gt nx_f32_lt nx_f32_is_nan nx_f32_classify ↻ nx_f32_is_zero nx_f32_classify ↻ pose_cnn_head1x1 nx_f32_conv2d_forward ↻ pose_cnn_relu ↻ pose_keypoint sys_mmap ↻ pose_argmax gp sys_write gn sys_mmap ↻ sys_write ↻ pose_cnn_relu ↻ pose_argmax ↻ sys_exit

structs

none

consts

none

functions

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