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

[Prim][PIR] Sink Forward Prim #58130

Merged
merged 9 commits into from Oct 17, 2023

Conversation

cyber-pioneer
Copy link
Contributor

@cyber-pioneer cyber-pioneer commented Oct 16, 2023

PR types

New features

PR changes

Others

Description

Pcard-66975
Sink Forward Prim

Todo: auto codegen

image

@paddle-bot
Copy link

paddle-bot bot commented Oct 16, 2023

你的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.

@cyber-pioneer cyber-pioneer changed the title decomp sink [Prim][PIR] Sink Forward Prim Oct 17, 2023

VLOG(4) << "Decomp prepare attributes of mean";

IntArray axis = op->attribute("axis")
Copy link
Contributor

Choose a reason for hiding this comment

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

后续代码生成的时候需要考虑到可变attribute

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok

VLOG(4) << "Decomp prepare call mean's decomp interface";

Tensor op_res =
paddle::primitive::details::mean_decomp<primitive::LazyTensor>(
Copy link
Contributor

Choose a reason for hiding this comment

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

这儿后续需要对optional输入进行处理

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok

decomp_interface.Decomp(&fwd_op);
for (size_t i = 0; i < decomp_res.size(); ++i) {
py::list sub_res;
for (size_t j = 0; j < decomp_res[i].size(); ++j) {
Copy link
Contributor

Choose a reason for hiding this comment

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

这儿这样处理的话 那在interface中需要对没有的输出补空tensor进行占位处理

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok

@cyber-pioneer cyber-pioneer merged commit f625c37 into PaddlePaddle:develop Oct 17, 2023
28 checks passed
@cyber-pioneer cyber-pioneer deleted the sink_decomp_debug branch October 18, 2023 06:08
hitywt pushed a commit to hitywt/Paddle that referenced this pull request Oct 24, 2023
* decomp sink

* polish code

* fix flag

* fix code

* fix code

* fix code2

* fix code2

* fix code3
jiahy0825 pushed a commit to jiahy0825/Paddle that referenced this pull request Oct 26, 2023
* decomp sink

* polish code

* fix flag

* fix code

* fix code

* fix code2

* fix code2

* fix code3
danleifeng pushed a commit to danleifeng/Paddle that referenced this pull request Nov 14, 2023
* decomp sink

* polish code

* fix flag

* fix code

* fix code

* fix code2

* fix code2

* fix code3
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.

None yet

2 participants