Back to Burn

WebAssembly

burn-book/src/advanced/web-assembly.md

0.20.1566 B
Original Source

WebAssembly

Burn supports WebAssembly (WASM) execution using the NdArray 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.