未验证 提交 df5587dc 编写于 作者: H houj04 提交者: GitHub

[XPU] fix exception in xpu executor (#49250)

上级 9f47aac9
......@@ -274,8 +274,8 @@ void BindThreadedSSAGraphExecutor::RunMultiDeviceOpAsync(
}
} catch (...) {
error_state = 1;
ready_ops->Push(nullptr);
exception_.Catch(std::current_exception());
ready_ops->Push(nullptr);
}
{
std::lock_guard<std::mutex> lock(mutex_);
......@@ -308,8 +308,8 @@ void BindThreadedSSAGraphExecutor::RunOpAsyncMainStream(
}
} catch (...) {
error_state = 1;
ready_ops->Push(nullptr);
exception_.Catch(std::current_exception());
ready_ops->Push(nullptr);
}
{
std::lock_guard<std::mutex> lock(mutex_);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册