code wiki / (root) / nx_vitpose_preprocess_gate.nx

nx_vitpose_preprocess_gate.nx

buildroot/runtime/nx_vitpose_preprocess_gate.nx

2962 B51 linesdepth 5pulls 7 transitivereach 0 importersview sourcekind gate/prooftopic vitpose
docsdependenciesstructsconstsfunctions

about

nx_vitpose_preprocess_gate.nx -- proof of resize+normalize: ImageNet normalize (hand-computed) + bilinear blend. expect_exit: 0

dependencies 5 imports · 0 importers

nx_syscalls.nx nx_f32.nx nx_f32_cvt.nx nx_f32_div.nx nx_vitpose_preprocess.nx nx_vitpose_preprocess_gate.nx

imports: nx_syscalls.nxnx_f32.nxnx_f32_cvt.nxnx_f32_div.nxnx_vitpose_preprocess.nx

imported by: nobody (leaf or entry point)

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) }
10func close(a: i64, b: i64, tol: i64) -> i64 { if nx_f32_lt(nx_f32_abs(nx_f32_sub(a,b)), tol)==1 { return 1 } return 0 }
11func mk(n: i64, d: i64) -> i64 { return nx_f32_div(nx_i32_to_f32(n), nx_i32_to_f32(d)) }
13func main(argc: i64, argv: *i64) -> i64