Skip to content

Commit

Permalink
Fix crash when accessing already destructed static variables (apache#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ptrendx authored and ChaiBapchya committed Aug 15, 2020
1 parent d43503d commit 7a2e29d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/c_api/c_api.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1315,6 +1315,7 @@ int MXNotifyShutdown() {
API_BEGIN();
mxnet::op::custom::CustomOperator::Get()->Stop();
Engine::Get()->NotifyShutdown();
Engine::Get()->WaitForAll();
API_END();
}

Expand Down

0 comments on commit 7a2e29d

Please sign in to comment.