diff --git a/docs/ONNX_Runtime_Perf_Tuning.md b/docs/ONNX_Runtime_Perf_Tuning.md index 32e7be449b..b0ac2e0b2c 100644 --- a/docs/ONNX_Runtime_Perf_Tuning.md +++ b/docs/ONNX_Runtime_Perf_Tuning.md @@ -97,7 +97,7 @@ You can enable ONNX Runtime latency profiling in code: import onnxruntime as rt sess_options = rt.SessionOptions() -enable_profiling.enable_profiling = True +sess_options.enable_profiling = True ``` Or, if you are using the onnxruntime_perf_test.exe tool, you can add -p [profile_file] to enable performance profiling.