mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-06-27 03:11:28 +00:00
Fix error handling for OnSessionInitializationEnd
This commit is contained in:
parent
e89dd92387
commit
d18f0fc47b
1 changed files with 5 additions and 3 deletions
|
|
@ -931,12 +931,14 @@ common::Status InferenceSession::Initialize() {
|
|||
}
|
||||
|
||||
if (status.IsOK()) {
|
||||
auto retval = status;
|
||||
for (auto& xp : execution_providers_) {
|
||||
auto status = xp->OnSessionInitializationEnd();
|
||||
ORT_CHECK_AND_SET_RETVAL(status);
|
||||
auto endStatus = xp->OnSessionInitializationEnd();
|
||||
if (status.IsOK()) {
|
||||
status = endStatus;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return status;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue