Skip to content

Commit

Permalink
Python API has no AddConfigEntry and `kOrtSessionOptionsConfigAllow…
Browse files Browse the repository at this point in the history
…IntraOpSpinning` (#17712)

### Description
<!-- Describe your changes. -->


https://github.com/microsoft/onnxruntime/blob/bcc6205161969b292c66601ef9b080dd418d21a2/include/onnxruntime/core/session/onnxruntime_session_options_config_keys.h#L94C74-L94C105

### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->


@ivberg
  • Loading branch information
kimdwkimdw authored Sep 27, 2023
1 parent f3fa223 commit 6b12dc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/performance/tune-performance/threading.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ sess_options = rt.SessionOptions()
sess_options.intra_op_num_threads = 0
sess_options.execution_mode = rt.ExecutionMode.ORT_SEQUENTIAL
sess_options.graph_optimization_level = rt.GraphOptimizationLevel.ORT_ENABLE_ALL
sess_options.AddConfigEntry(kOrtSessionOptionsConfigAllowIntraOpSpinning, "1")
sess_options.add_session_config_entry("session.intra_op.allow_spinning", "1")
```


Expand Down

0 comments on commit 6b12dc5

Please sign in to comment.