Skip to main content

Crate nxpu

Crate nxpu 

Source

Structsยง

Cli ๐Ÿ”’
NxPU โ€” WGSL to NPU transpiler

Functionsยง

apply_dynamic_batch ๐Ÿ”’
Apply --dynamic-batch: for every storage-buffer global variable whose type is an Array (the common WGSL pattern), wrap it in a rank-2+ Tensor type with the first dimension set to Symbolic("batch").
build_registry ๐Ÿ”’
load_constant_tensors ๐Ÿ”’
Read <tensor-name>.bin for every tensor the caller supplied.
main ๐Ÿ”’
parse_calibration_method ๐Ÿ”’
parse_opt_level ๐Ÿ”’
parse_precision ๐Ÿ”’
run ๐Ÿ”’
write_output_file ๐Ÿ”’