Skip to content

Clean up Compile API#24436

Merged
adrianlizarraga merged 3 commits intomainfrom
adrianl/compile-api-cleanup
Apr 16, 2025
Merged

Clean up Compile API#24436
adrianlizarraga merged 3 commits intomainfrom
adrianl/compile-api-cleanup

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.

2 participants