-
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
Add Support for OperatorBase in new executor #36945
Add Support for OperatorBase in new executor #36945
Conversation
Thanks for your contribution! |
if (op_with_kernel == nullptr) | ||
instr_node.OpBase()->Run(*global_scope_->GetScope(), place_); | ||
else | ||
instr_node.KernelFunc()(*instr_node.InnerExecutionContext().get()); |
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.
下个PR,这里的KernelFunc可以抽象为一个单独的类,里面处理OperatorBase和OperatorWithKernel 的分支,对外只暴露Run接口
// ScopeBase. | ||
// Scope manager the variables and VariableScope is just a | ||
// quick | ||
// access machanism. |
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.
下个PR,考虑是把ScopeBase去掉,或者有个单独的子类继承ScopeBase,然后VariableScope持有这个子类对象?
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
Others
PR changes
Others
Describe
Add Support for OperatorBase in new executor.