nx_placement_test.nx
buildroot/runtime/nx_placement_test.nx
about
nx_placement_test.nx -- smoke for nx_placement.nx.
Two test classes:
A) Lazy lifecycle: build a synthetic Q8_0 block in a buffer;
create lazy NxPlacedTensor; verify storage_bytes==0 + is_live==0;
materialize; verify is_live==1, storage_bytes>0, values match;
demote; verify is_live==0; re-materialize; verify values match.
B) Owned: wrap a pre-built NxTensor; verify is_live==1 + storage
reflects it; demote refuses (NX_PT_ERR_BAD_PLACEMENT).
dependencies 6 imports · 0 importers
imports: nx_syscalls.nxnx_tier.nxnx_le.nxnx_tensor.nxnx_gguf.nxnx_placement.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
| 18 | func main() -> i64 |