-
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
[static op generation] coalesce_tensor #53570
[static op generation] coalesce_tensor #53570
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
❌ The PR is not created using PR's template. You can refer to this Demo. |
inputs : | ||
{input : Input} | ||
outputs : | ||
{output : Output, fused_output : FusedOutput} |
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.
attrs :
{size_of_dtype : user_defined_size_of_dtype}
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
@@ -400,120 +400,9 @@ class CoalesceTensorOp : public framework::OperatorWithKernel { | |||
} | |||
}; | |||
|
|||
class CoalesceTensorOpMaker : public framework::OpProtoAndCheckerMaker { |
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/phi/kernels/coalesce_tensor_kernel.cc
约276行修改为:
PD_REGISTER_KERNEL(coalesce_tensor,
CPU,
ALL_LAYOUT,
phi::CoalesceTensorKernel,
int,
float,
double) {
kernel->InputAt(0).SetBackend(phi::Backend::ALL_BACKEND);
kernel->OutputAt(1).SetDataType(phi::DataType::UNDEFINED);
}
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
@luotao1 分配错人了 |
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
Description
配置
coalesce_tensor
相关链接