Skip to content
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

[Feature Request] Error code for terminated Session::run #20999

Open
gsigms opened this issue Jun 11, 2024 · 0 comments
Open

[Feature Request] Error code for terminated Session::run #20999

gsigms opened this issue Jun 11, 2024 · 0 comments
Labels
api issues related to all other APIs: C, C++, Python, etc. feature request request for unsupported feature or enhancement

Comments

@gsigms
Copy link

gsigms commented Jun 11, 2024

Describe the feature request

Introduce a dedicated OrtErrorCode value for terminated sessions.

Describe scenario use case

When a session run is terminated using the RunOptions::SetTerminate C++ API, Session::run throws a generic error. To distinguish an error from a interrupted run, one must test the error message. It would be more robust to return a dedicated error code.

@gsigms gsigms added the feature request request for unsupported feature or enhancement label Jun 11, 2024
@sophies927 sophies927 added the api issues related to all other APIs: C, C++, Python, etc. label Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api issues related to all other APIs: C, C++, Python, etc. feature request request for unsupported feature or enhancement
Projects
None yet
Development

No branches or pull requests

2 participants