-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix abort issue in cpu multi-threads #11233
Conversation
|
Merge remote-tracking branch 'ups/develop' into multithreads
auto& sub_scope = scope->NewScope(); | ||
auto place = paddle::platform::CPUPlace(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
paddle::platform::CPUPlace place;
paddle::framework::Executor executor(place);
executor.CreateVariables(*inference_program, scope.get(), 0); | ||
// 1. Define place, executor, scope | ||
auto place = paddle::platform::CPUPlace(); | ||
auto executor = paddle::framework::Executor(place); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as above
fix #11231
The key backtrace is :