-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Add default constructor to Ort::Status. #25860
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
Conversation
During CIs and local builds it gets inherited from the base due to using directives, however, that does not work for packaging pipleines. Having default ctor is important for storing Status in containers if needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds a default constructor to the Ort::Status class to fix packaging pipeline issues. The default constructor was previously inherited from the base class through using Base::Base, but this inheritance approach doesn't work in packaging pipelines.
- Add explicit default constructor declaration to
Ort::Statusclass - Update existing code to use explicit null pointer constructor instead of default constructor
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| onnxruntime_cxx_api.h | Adds explicit default constructor declaration to Status class |
| onnxruntime_cxx_inline.h | Updates Status construction call to use explicit nullptr constructor |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
### Description <!-- Describe your changes. --> Fix packaging pipelines ### 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. --> During CIs and local builds Ort::Status() gets inherited from the base due to using directives, however, that does not work for packaging pipelines. Having default ctor is important for storing Status in containers if needed.
- **Relax WeightBiasQuantization constraint for larger QDQ node group (#25673)** - **Add cuda graph implementation for NV TRT RTX EP (#25787)** - **python GPU IO Bindings for NVIDIA (#25776)** - **Fixes for DynamicQuantizeMatMul and Attention3D tests (#25814)** - **Fix a long standing bug on file memory mapping on windows. (#25833)** - **Add API for precompiled model compatibility check using just the compat info (#25841)** - **Enable ABSL_FLAGS flag registration for onnxruntime_perf_test for mobile build (#25849)** - **Add default constructor to Ort::Status. (#25860)** - #25871 - #25878 - #25884 - #25886 - #25866
|
The change is added to the release branch |
### Description <!-- Describe your changes. --> Fix packaging pipelines ### 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. --> During CIs and local builds Ort::Status() gets inherited from the base due to using directives, however, that does not work for packaging pipelines. Having default ctor is important for storing Status in containers if needed.
Description
Fix packaging pipelines
Motivation and Context
During CIs and local builds Ort::Status() gets inherited from the base due to using directives,
however, that does not work for packaging pipelines.
Having default ctor is important for storing Status in containers if needed.