Documentation
¶
Rendered for js/wasm
Overview ¶
Command webtest runs in a browser Web Worker (as the playground's engine worker does) and checks the WebGPU wasi-nn backend against the ONNX node tests and MNIST-12: for each case it fetches the model and its test data from the page's origin, runs it through webgpu.Backend, compares with the reference (rtol 1e-3, atol 1e-7, the ONNX backend's tolerances) and posts a JSON report: the adapter, and every case's result.
e2e/webgpu_test.go builds it, serves it and drives it with Playwright.
Click to show internal directories.
Click to hide internal directories.