Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion docs/javascripts/onnx_demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,12 @@
ort.env.wasm.proxy = true;
ort.env.wasm.numThreads = Math.min(4, navigator.hardwareConcurrency || 2);
ort.env.wasm.simd = true;
// Same release as the ort.wasm.min.js tag in mkdocs.yml. That bundle loads
// the plain ort-wasm-simd-threaded.wasm; ort.min.js would load the JSEP
// build, which needs 5-7 GB in WebKit (Safari) instead of about 1 GB.
if (!ort.env.wasm.wasmPaths) {
ort.env.wasm.wasmPaths =
"https://cdn.jsdelivr.net/npm/onnxruntime-web@1.22.0/dist/";
"https://cdn.jsdelivr.net/npm/onnxruntime-web@1.20.1/dist/";
}
}

Expand Down
7 changes: 6 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,12 @@ extra_javascript:
- https://unpkg.com/[email protected]/dist/tablesort.min.js
- https://unpkg.com/[email protected]/dist/sorts/tablesort.number.min.js
- javascripts/tablesort.js
- https://cdn.jsdelivr.net/npm/[email protected]/dist/ort.min.js
# WASM-only bundle on purpose: from 1.21.0 on, ort.min.js loads the JSEP wasm
# even for the CPU backend, and WebKit (Safari) then needs 5-7 GB for 60 s of
# audio instead of about 1 GB. 1.20.1 has the smallest wasm (11 MB; 1.30.0:
# 14 MB) and matches Python ONNX Runtime box for box. Keep the version in sync
# with wasmPaths in onnx_demo.js.
- https://cdn.jsdelivr.net/npm/[email protected]/dist/ort.wasm.min.js
- javascripts/onnx_spectrogram.js
- javascripts/onnx_demo.js

Expand Down
Loading