Skip to content
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

[PHI]Rename some PHI Kernel #49470

Merged
merged 5 commits into from
Jan 12, 2023
Merged

Conversation

YuanRisheng
Copy link
Contributor

@YuanRisheng YuanRisheng commented Dec 30, 2022

PR types

Others

PR changes

Others

Describe

规范化以下Kernel有关命名:
flatten_with_xshape,reshape_with_xshape,einsum_raw,prod_raw,squeeze_with_xshape,unsqueeze_with_xshape

异构设备的相关修改:PaddlePaddle/PaddleCustomDevice#355

@paddle-bot
Copy link

paddle-bot bot commented Dec 30, 2022

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

jiahy0825
jiahy0825 previously approved these changes Jan 5, 2023
"reshape_with_xshape", {"X"}, {"shape"}, {"Out", "XShape"});
return KernelSignature("reshape", {"X"}, {"shape"}, {"Out", "XShape"});
}
} else {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

没有xshape的分支是不需要分发到reshape_infer的kernel?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

谢谢,已修改

@@ -31,7 +29,7 @@ KernelSignature EinsumGradOpArgumentMapping(const ArgumentMappingContext& ctx) {
}
} // namespace phi

PD_REGISTER_BASE_KERNEL_NAME(einsum, einsum_raw);
PD_REGISTER_BASE_KERNEL_NAME(einsum, einsum);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里同名应该不用注册了

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@chenwhql
Copy link
Contributor

chenwhql commented Jan 5, 2023

CustomDevice需要改吗?如果需要的话,建议也一起改了

@YuanRisheng
Copy link
Contributor Author

YuanRisheng commented Jan 5, 2023

CustomDevice需要改吗?如果需要的话,建议也一起改了

谢谢提醒,这个在另一个PR,已补充到描述中

Copy link
Contributor

@jiahy0825 jiahy0825 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@XiaoguangHu01 XiaoguangHu01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@YuanRisheng YuanRisheng merged commit 30f5e39 into PaddlePaddle:develop Jan 12, 2023
XiaociZhang added a commit to XiaociZhang/Paddle that referenced this pull request Jan 13, 2023
houj04 pushed a commit that referenced this pull request Jan 13, 2023
* fix xpu unittest issue: zero_dim_tensor

* deal with leftout issue introduced by #49470
yjjiang11 pushed a commit to yjjiang11/Paddle that referenced this pull request Jan 13, 2023
* rename kernel

* delete sig

* modify code according comment

* fix ci bugs
yjjiang11 pushed a commit to yjjiang11/Paddle that referenced this pull request Jan 13, 2023
* fix xpu unittest issue: zero_dim_tensor

* deal with leftout issue introduced by PaddlePaddle#49470
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants