Skip to content

Conversation

@adrianlizarraga
Copy link
Contributor

@adrianlizarraga adrianlizarraga commented Oct 27, 2025

Description

  • Updates the ORT_API_VERSION value in onnxruntime_c_api.h to 24.
  • Edit documentation for the TensorTypeAndShape_HasShape API function to indicate the correct API version (1.24).
  • Adds static_assert to ensure that API functions for 1.23 are not added or removed.

Motivation and Context

The version of ORT was previously updated to 1.24.0 but we forgot to update ORT_API_VERSION.

@adrianlizarraga adrianlizarraga requested a review from snnn October 27, 2025 22:03
snnn
snnn previously approved these changes Oct 27, 2025
Copy link
Contributor

@snnn snnn left a comment

Choose a reason for hiding this comment

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

The changes in this PR correctly update the API version to 24 and the library version to "1.24.0". The modifications are consistent across the files and follow good engineering practices for versioning and maintaining API stability.

@adrianlizarraga adrianlizarraga merged commit e8b054c into main Oct 28, 2025
92 checks passed
@adrianlizarraga adrianlizarraga deleted the adrianl/c_header_api_version_24 branch October 28, 2025 15:34
naomiOvad pushed a commit to naomiOvad/onnxruntime that referenced this pull request Nov 2, 2025
### Description
- Updates the `ORT_API_VERSION` value in onnxruntime_c_api.h to `24`.
- Edit documentation for the `TensorTypeAndShape_HasShape` API function
to indicate the correct API version (1.24).
- Adds `static_assert` to ensure that API functions for 1.23 are not
added or removed.



### Motivation and Context
The version of ORT was previously updated to 1.24.0 but we forgot to
update `ORT_API_VERSION`.
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