From 6b12dc5f6f4b5fd71aade87c9c7c8ffd3f1a3e6f Mon Sep 17 00:00:00 2001 From: Arthur Kim Date: Wed, 27 Sep 2023 15:33:46 +0900 Subject: [PATCH] Python API has no `AddConfigEntry` and `kOrtSessionOptionsConfigAllowIntraOpSpinning` (#17712) ### Description https://github.com/microsoft/onnxruntime/blob/bcc6205161969b292c66601ef9b080dd418d21a2/include/onnxruntime/core/session/onnxruntime_session_options_config_keys.h#L94C74-L94C105 ### Motivation and Context @ivberg --- docs/performance/tune-performance/threading.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/performance/tune-performance/threading.md b/docs/performance/tune-performance/threading.md index c3ba0691c7..18620eb4ad 100644 --- a/docs/performance/tune-performance/threading.md +++ b/docs/performance/tune-performance/threading.md @@ -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") ```