From 0400c69be14ccc7ab117e65dbb4ab817dd7c94a7 Mon Sep 17 00:00:00 2001 From: Hector Li Date: Thu, 4 Aug 2022 13:41:45 -0700 Subject: [PATCH] fix typo in doc (#12471) fix typo build_was_static_lib -> build_wasm_static_lib --- docs/build/web.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/build/web.md b/docs/build/web.md index 987fdf9deb..291667b47a 100644 --- a/docs/build/web.md +++ b/docs/build/web.md @@ -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