[Feature Request] Error code for terminated Session::run #20999
Labels
api
issues related to all other APIs: C, C++, Python, etc.
feature request
request for unsupported feature or enhancement
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.The text was updated successfully, but these errors were encountered: