Skip to content

Clean up Compile API #24436

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 3 commits into from
Apr 16, 2025
Merged

Clean up Compile API #24436

merged 3 commits into from
Apr 16, 2025

Conversation

adrianlizarraga
Copy link
Contributor

@adrianlizarraga adrianlizarraga commented Apr 15, 2025

Description

Address additional review comments on #24207:

  • Remove use of #ifdef ORT_MINIMAL_BUILD in public C/C++ API headers for Compile API
  • Use AllocatorPtr internally to ensure memory is properly released if an exception is thrown while serializing the output model to the user's buffer.
  • Improve C API function documentation.
  • Clean up internal ModelCompilationOptions class

Motivation and Context

Useful review comments were left on the original PR after merge. This addresses those comments.

@adrianlizarraga adrianlizarraga marked this pull request as ready for review April 15, 2025 23:53
Copy link
Member

@yuslepukhin yuslepukhin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@adrianlizarraga adrianlizarraga merged commit 39d60b7 into main Apr 16, 2025
84 of 89 checks passed
@adrianlizarraga adrianlizarraga deleted the adrianl/compile-api-cleanup branch April 16, 2025 02:41
ashrit-ms pushed a commit that referenced this pull request Apr 24, 2025
### Description
Address additional review comments on
#24207:
- Remove use of `#ifdef ORT_MINIMAL_BUILD` in public C/C++ API headers
for Compile API
- Use `AllocatorPtr` internally to ensure memory is properly released if
an exception is thrown while serializing the output model to the user's
buffer.
- Improve C API function documentation.
- Clean up internal `ModelCompilationOptions` class



### Motivation and Context
Useful review comments were left on the original PR after merge. This
addresses those comments.
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