Run onnxruntime in wasm runtime #16849
-
After reading the ONNX Runtime documentation, I learned that ONNX Runtime can run in the browser and can interact with JavaScript.Now, I want to run ONNX Runtime within a WebAssembly runtime embedded in C++. How can I interact with the code inside ort-wasm.wasm? Specifically, I want to konw how the JavaScript API calls the code inside WebAssembly. So that I can write code to achieve the implementation I desire.
I don't know which functions to call. Thanks for your time and assistance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I assume you read this page https://onnxruntime.ai/docs/tutorials/web/ but you did not find the information you need. Otherwise, the code you are looking for should be here: https://github.com/microsoft/onnxruntime/tree/main/js/web. |
Beta Was this translation helpful? Give feedback.
I assume you read this page https://onnxruntime.ai/docs/tutorials/web/ but you did not find the information you need. Otherwise, the code you are looking for should be here: https://github.com/microsoft/onnxruntime/tree/main/js/web.