-
Notifications
You must be signed in to change notification settings - Fork 392
Open
Description
I'm trying to run the JavaScript examples, starting from the quick-start_onnxruntime-web-script-tag directory. This directory contains two versions:
- index.html, which runs perfectly and produces no errors.
- index_esm.html, which does not run and throws an error.
This is the error:
failed to inference ONNX model: Error: no available backend found. ERR: [wasm] RuntimeError: Aborted(LinkError: import object field 'J' is not a Function). Build with -sASSERTIONS for more info., [cpu] Error: previous call to 'initializeWebAssembly()' failed., [webnn] Error: previous call to 'initializeWebAssembly()' failed., [xnnpack] Error: previous call to 'initializeWebAssembly()' failed..
Output of index_esm.html:


Output of index.html:

Environment
The error appears in Firefox, Chrome and Safari. I'm running this on a MacBook Pro M2 Max in macOS Sonoma 14.2.1.
Metadata
Metadata
Assignees
Labels
No labels