microsoft / microsoft/onnxruntime
[Feature Request] [Web] User Module Workers if available in the runtime
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 21.9k
- Forks
- 4.2k
- Avg merge
- 4d 11h
- Merged PRs (30d)
- 184
Description
### Describe the feature request
I'm guessing that Classic Workers are still used to support old browsers, but I'm wondering if it's possible to use Module Workers if it's detected that the runtime supports them?
### Describe scenario use case
This would allow multi-threading to be used in Deno. Currently `ort.env.wasm.numThreads=1` must be used, else this error is thrown:
```
error: Uncaught (in promise) NotSupported: Classic workers are not supported.
```
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing how ONNX Runtime Web creates workers and how ort.env.wasm.numThreads is handled when running in Deno. Investigate runtime detection for Module Workers, then verify that multithreading no longer produces the reported Classic workers error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- deno
- Domain
- web-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100