-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Web] no available backend found [wasm] when importing onnxruntime-web/wasm
#22010
Comments
For wasm EP, you just need to import "onnxruntime-web". More details can be found at https://onnxruntime.ai/docs/get-started/with-javascript/web.html. |
importing 'onnxruntime-web/wasm' will use a smaller sized .mjs file and it should work. let me check the artifacts... |
@jclaessens97 could you help to check whether the following works for you:
|
The first import In version 1.20 it's also the same. |
This issue has been automatically marked as stale due to inactivity and will be closed in 30 days if no further activity occurs. If further support is needed, please provide an update and/or more details. |
Any update? @fs-eire This still is the case for me. |
Describe the issue
When importing
onnxruntime-web
with a general star import likeimport * as ort from 'onnxruntime-web';
, it works like a charm. But since I only use wasm, I would expect to be able to import asimport ort from 'onnxruntime-web/wasm;
if I follow these docs.I serve both
ort-wasm-simd-threaded.jsep.wasm
andort-wasm-simd-threaded.wasm
.If I do so, I get following errors in the console:
I'm launching the inference session like this:
To reproduce
onnxruntime-web
import * as ort from 'onnxruntime-web';
import ort from 'onnxruntime-web/wasm;
Urgency
No response
ONNX Runtime Installation
Released Package
ONNX Runtime Version or Commit ID
1.19.2
Execution Provider
'wasm'/'cpu' (WebAssembly CPU)
The text was updated successfully, but these errors were encountered: