nx_compute_graph_test.nx
buildroot/runtime/nx_compute_graph_test.nx
about
nx_compute_graph_test.nx -- typed DAG end-to-end shape verification.
Constructs a small computation graph that resembles a tiny ML
forward pass: two inputs feed a matmul; the matmul feeds a ReLU;
the ReLU is the output. Validates that:
* structural validation accepts the well-formed graph
* toposort emits a valid linearisation
* cycle detection refuses a graph with a back-edge
* dangling input detection refuses a graph with unwired slot
* bad-edge detection refuses an edge to a non-existent node
* content hashes are stable across builds with identical shape
dependencies 5 imports · 0 importers
imports: nx_syscalls.nxnx_tier.nxnx_sha256.nxnx_compute_node.nxnx_compute_graph.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
| 19 | func main() -> nx_int |