Skip to main content

mem

Function mem 

Source
const fn mem(
    resident_bytes: u64,
    load_peak_bytes: u64,
    inference_fixed_bytes: u64,
    inference_bytes_per_voxel: u64,
    wasm_fixed_bytes: u64,
    wasm_bytes_per_voxel: u64,
) -> NetworkMemory
Expand description

A NetworkMemory, in the order its fields are listed: resident, load peak, inference fixed bytes and bytes per input voxel (native), WASM fixed bytes and bytes per input voxel. The figures come from examples/inference_memory.rs and the browser_memory::net_* cases in tests/wasm_pipeline.rs (see the module docs).