-
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
[new executor]Support CINN use InterpreterCore #48911
[new executor]Support CINN use InterpreterCore #48911
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
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.
LGTM
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.
LGTM
framework::Scope* scope1 = new framework::Scope(); | ||
RunAndCheck(place, scope1); |
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.
framework::Scope* scope1 = new framework::Scope(); | |
RunAndCheck(place, scope1); | |
framework::Scope scope1; | |
RunAndCheck(place, &scope1); |
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.
Done, tks!
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.
Approved
framework::Scope& exec_scope = scope.NewScope(); | ||
auto* pe = launch_context->InitializePE(place, &exec_scope); | ||
pe->RunWithoutFetch(launch_context->GetSkipEagerVars()); | ||
if (FLAGS_enable_interpretercore_launch_cinn) { |
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.
从逻辑上,把interpreter core 放在pe的判断外面,是不是更好一些
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.
根据@CtfGo的review意见,目前CINN的一些开发工作通过FLAGS_enable_pe_launch_cinn控制,因此暂时将新执行器模块放在这个flag的控制下,后续清理pe的工作开展的时候会吧FLAGS_enable_pe_launch_cinn全局替换为FLAGS_enable_interpretercore_launch_cinn
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.
LGTM for mutable_data
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.
LGTM
PR types
New features
PR changes
Others
Describe
CINN 后端执行支持 InterpreterCore,具体工作包括: