Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

WebAssembly

Burn supports WebAssembly (WASM) execution using the Flex and WebGpu backends, allowing models to run directly in the browser.

Check out the following examples:

When targeting WebAssembly, certain dependencies require additional configuration. In particular, the getrandom crate requires explicit setting when using WebGpu.