This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
Repositories
Datasets
Forum
实训
竞赛
大数据
应用
Register
Sign In
OpenI
/
MegEngine
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
31
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
fix(imperative/interpreter): reset m_waitee on exception
GitOrigin-RevId:
ecf5245d9c
tags/v1.3.0
Megvii Engine Team
4 years ago
parent
8fe865d88a
commit
8ed2077bcb
1 changed files
with
2 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
imperative/src/impl/interpreter_impl.cpp
+ 2
- 0
imperative/src/impl/interpreter_impl.cpp
View File
@@ -483,6 +483,8 @@ void ChannelImpl::process_one_task(Command& cmd) {
void ChannelImpl::check_worker_exc_unsafe() {
if (m_worker_exc) {
// for reuse interpreter_for_py after some exception tests
m_waitee = nullptr;
std::exception_ptr exc;
std::swap(exc, m_worker_exc);
std::rethrow_exception(exc);
Write
Preview
Loading…
Cancel
Save