mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-23 19:32:23 +00:00
fix typo in doc (#12471)
fix typo build_was_static_lib -> build_wasm_static_lib
This commit is contained in:
parent
1f5c203079
commit
0400c69be1
1 changed files with 1 additions and 1 deletions
2
docs/build/web.md
vendored
2
docs/build/web.md
vendored
|
|
@ -110,7 +110,7 @@ Q: unittest fails on Debug build with debug info.
|
|||
|
||||
Q: I have a C++ project for web scenario, which runs a ML model using ONNX Runtime and generates WebAssembly as an output. Does ONNX Runtime Web support a static WebAssembly library, so that my application can link with it and make all pre/post processors to be compiled together into WebAssembly?
|
||||
|
||||
> A: With `--build_wasm`, a build script generates `.wasm` and `.js` files for web scenarios and intermediate libraries are not linked properly with other C/C++ projects. When you build ONNX Runtime Web using `--build_was_static_lib` instead of `--build_wasm`, a build script generates a static library of ONNX Runtime Web named `libonnxruntime_webassembly.a` in output directory. To run a simple inferencing like an [unit test](https://github.com/microsoft/onnxruntime/blob/master/onnxruntime/test/wasm/test_inference.cc), what you need is three header files as follows and `libonnxruntime_webassembly.a`.
|
||||
> A: With `--build_wasm`, a build script generates `.wasm` and `.js` files for web scenarios and intermediate libraries are not linked properly with other C/C++ projects. When you build ONNX Runtime Web using `--build_wasm_static_lib` instead of `--build_wasm`, a build script generates a static library of ONNX Runtime Web named `libonnxruntime_webassembly.a` in output directory. To run a simple inferencing like an [unit test](https://github.com/microsoft/onnxruntime/blob/master/onnxruntime/test/wasm/test_inference.cc), what you need is three header files as follows and `libonnxruntime_webassembly.a`.
|
||||
|
||||
- include/onnxruntime/core/session/onnxruntime_c_api.h
|
||||
- include/onnxruntime/core/session/onnxruntime_cxx_api.h
|
||||
|
|
|
|||
Loading…
Reference in a new issue