Skip to content

Disambiguate the winml OrtModel with the model editing API OrtModel. #24474

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 19, 2025

Conversation

skottmckay
Copy link
Contributor

Description

Use a pimpl-esque approach so that the winml OrtModel type doesn't conflict with the model editing API OrtModel.

Motivation and Context

Fix crash due to linker calling the incorrect destructor when there are two different OrtModel types in the global namespace.

@skottmckay skottmckay merged commit 07b6bb6 into main Apr 19, 2025
87 of 89 checks passed
@skottmckay skottmckay deleted the skottmckay/FixOrtModelConflict branch April 19, 2025 21:29
ashrit-ms pushed a commit that referenced this pull request Apr 24, 2025
…24474)

### Description
<!-- Describe your changes. -->
Use a pimpl-esque approach so that the winml OrtModel type doesn't
conflict with the model editing API OrtModel.


### 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. -->
Fix crash due to linker calling the incorrect destructor when there are
two different OrtModel types in the global namespace.
intbf pushed a commit to intbf/onnxruntime that referenced this pull request Apr 25, 2025
…icrosoft#24474)

### Description
<!-- Describe your changes. -->
Use a pimpl-esque approach so that the winml OrtModel type doesn't
conflict with the model editing API OrtModel.

### 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. -->
Fix crash due to linker calling the incorrect destructor when there are
two different OrtModel types in the global namespace.

Signed-off-by: bfilipek <bartlomiej.filipek@intel.com>
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.

None yet

2 participants