WebNN (Web Neural Network API) — direct access to neural network ops (matmul, conv, etc.) using hardware acceleration when available. Falls back to WebGPU, then WASM, then CPU.
Detecting...
Build a graph: y = softmax(A @ B). Hardware-accelerated via ML accelerator (CPU GPU NPU).
× ×Click to test...
Build a 4-layer MLP graph (Linear → ReLU → Linear → ReLU → Linear → Softmax).
Click to test...
WebNN is currently: - Chrome/Edge 112+: behind flag (chrome://flags/#enable-webnn) - Firefox: behind pref (about:config: dom.webnn.enabled) - Safari: not yet implemented Even without WebNN, this page falls back gracefully: - WebGPU (compute shaders) - WASM (with optional WASM-SIMD) - Pure CPU The substrate primitives work regardless of which backend. The substrate is backend-agnostic.