Skip to content

Commit

Permalink
[js/web] update the build script for webgpu to enable model dump by d…
Browse files Browse the repository at this point in the history
…efault (#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.
  • Loading branch information
fs-eire authored Aug 9, 2024
1 parent f4ec852 commit e6e4047
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/build_jsep.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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"] (
Expand Down

0 comments on commit e6e4047

Please sign in to comment.