Skip to main content

wasm_tiles_in_flight

Function wasm_tiles_in_flight 

Source
pub fn wasm_tiles_in_flight(
    cfg: &TileConfig,
    cost: &TileCost,
    threads: usize,
) -> usize
Expand description

Tiles a WASM host with threads workers keeps in flight: the threads, capped by tiles_within_wasm_budget. This is what tile_concurrency (onnx feature) returns on WASM; it is callable anywhere, so a host estimating a browser run’s memory can use the same count.