code wiki / _hdl_build / nx_nn_train_gate.nx
nx_nn_train_gate.nx
buildroot/runtime/_hdl_build/nx_nn_train_gate.nx
about
nx_nn_train_gate.nx -- proves sovereign fixed-point training (nx_nn_train): batch gradient descent on a linear layer,
starting from zero weights, learns a known target mapping -- the MSE loss collapses and the learned weights converge
to the target. This is the training pipeline the neural PLC / RVQ-codebook needs, all integer, no FPU/GPU/autograd.
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_gate_emit_lib.nxnx_nn_train.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
| 8 | func g_abs(v: i64) -> i64 { if v < 0 { return 0 - v } return v } |
| 10 | func main() -> i64 |