From e6e4047a77505b18583644f405396bde771b87e0 Mon Sep 17 00:00:00 2001 From: Yulong Wang <7679871+fs-eire@users.noreply.github.com> Date: Fri, 9 Aug 2024 05:55:34 -0700 Subject: [PATCH] [js/web] update the build script for webgpu to enable model dump by default (#19707) ### Description update the build script for webgpu to enable model dump by default Now if using build_jsep.bat to build debug, the model dump is enabled. Using [`optimizedModelFilePath`](https://onnxruntime.ai/docs/api/js/interfaces/InferenceSession.SessionOptions.html#optimizedModelFilePath) in session option can dump the optimized model in browser ### Motivation and Context Helps to debug/rule out problems may related to model optimizer. --- js/build_jsep.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/build_jsep.bat b/js/build_jsep.bat index 9f0f50220ff73..ace96e978d934 100644 --- a/js/build_jsep.bat +++ b/js/build_jsep.bat @@ -17,7 +17,7 @@ set BUILD_DIR=%ROOT%build_jsep :arg1 if ["%~1"]==["d"] ( set CONFIG=Debug - set CONFIG_EXTRA_FLAG=--enable_wasm_debug_info --enable_wasm_profiling + set CONFIG_EXTRA_FLAG=--enable_wasm_debug_info --enable_wasm_profiling --cmake_extra_defines onnxruntime_ENABLE_WEBASSEMBLY_OUTPUT_OPTIMIZED_MODEL=1 goto :arg2 ) if ["%~1"]==["r"] (