nx_f32_upsample.nx
buildroot/runtime/nx_f32_upsample.nx
about
nx_f32_upsample.nx -- software-f32 nearest-neighbour Nx upsample (NCHW), VAE-decode brick.
sd-server -> Nishi migration: VAE decoders upscale via "resize-conv" = nearest-neighbour upsample
followed by nx_f32_conv2d (avoids the checkerboard artefacts of transposed conv). out[n,c,oy,ox] =
in[n,c,oy/scale,ox/scale] -- pure index replication of f32 bit-patterns, so it's exact (no arithmetic).
The i64 ref `nx_upsample.nx` is the Q10 version; this is the f32-tier one that pairs with the gated
f32 conv/resblock so real dequantized weights flow through the decode path.
license_tier: ORIGINAL
dependencies 2 imports · 1 importers
imports: nx_syscalls.nxnx_f32_cvt.nx
imported by: nx_f32_vae_decode_tiny.nx
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 12 | const NX_F32US_OK: i64 = 0 |
| 13 | const NX_F32US_ERR: i64 = 1 |
functions
| 16 | func nx_f32_upsample_nn(input: *i64, N: i64, C: i64, H: i64, W: i64, scale: i64, out: *i64) -> i64 |
| 50 | func main() -> i64 |