Replies: 1 comment
-
It turned out that the issue was with the parameter ort.env.wasm.numThreads https://onnxruntime.ai/docs/tutorials/web/env-flags-and-session-options.html#envwasmnumthreads As I expected, this parameter indicates that the model will run in parallel across multiple threads, but in the end, threads are created that work 100% of the time and it's unclear what they are doing since execution speed does not increase. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
After the WebAssembly files are downloaded, several workers are created for tasks and additional workers perform constant operations. The number of these workers depends on ort.env.wasm.numThreads.
They cannot process the task because I call the predict function once every second, expecting that the rest of the time they will be in standby mode.
Here is the initialization code:
chrome performance:
Trace-20240802T195049.json.zip
Beta Was this translation helpful? Give feedback.
All reactions