Skip to content

[Doc] Fix Python thread spinning snippet: AddConfigEntry to add_session_config_entry#264

Open
yeelam-gordon wants to merge 1 commit intoMicrosoftDocs:docsfrom
yeelam-gordon:fix/61791707-python-wrong-method-name
Open

[Doc] Fix Python thread spinning snippet: AddConfigEntry to add_session_config_entry#264
yeelam-gordon wants to merge 1 commit intoMicrosoftDocs:docsfrom
yeelam-gordon:fix/61791707-python-wrong-method-name

Conversation

@yeelam-gordon
Copy link
Copy Markdown

@yeelam-gordon yeelam-gordon commented Apr 14, 2026

Problem

The Python thread-spinning snippet calls AddConfigEntry() (C++ method name). The correct Python API is add_session_config_entry().

Fix

Changed AddConfigEntry(...) to add_session_config_entry(...) in 2 places.

Files changed

  • docs/new-windows-ml/run-onnx-models.md — Python tab

…ig_entry

The onnxruntime Python API uses snake_case naming convention.
Fixes ADO #61791707

Co-authored-by: Copilot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant