onnxruntime
3874516d - Add APIs `OrtApi::CreateEnvWithOptions()` and `OrtEpApi::GetEnvConfigEntries()` (#26971)

Commit
3 days ago
Add APIs `OrtApi::CreateEnvWithOptions()` and `OrtEpApi::GetEnvConfigEntries()` (#26971) ### Description - Adds API `CreateEnvWithOptions` that allows the user to pass in a `OrtEnvCreationOptions` struct that aggregates all env creation options (log id, logging level, custom logger, thread pool options, etc.). - The new `OrtEnvCreationOptions` struct also allows the application to provide an `OrtKeyValuePairs` containing general configuration entries. - Adds EP API `GetEnvConfigEntries` that returns the environment's configuration entries as a `OrtKeyValuePairs` instance. - Remove `OrtEpFactory::SetEnvironmentOptions` and update example EP to pull the necessary configuration entry via the new api `GetEnvConfigEntries`. ### 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. -->
Parents
Loading