Skip to content

Conversation

@cyber-pioneer
Copy link
Contributor

@cyber-pioneer cyber-pioneer commented Nov 28, 2023

PR types

New features

PR changes

Others

Description

Pcard-66975
Sink decomp mechanism into cpp. In future, decomp mechanism will run in cpp by default.

@paddle-bot
Copy link

paddle-bot bot commented Nov 28, 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.

@paddle-bot
Copy link

paddle-bot bot commented Nov 28, 2023

❌ The PR is not created using PR's template. You can refer to this Demo.
Please use PR's template, it helps save our maintainers' time so that more developers get helped.

@cyber-pioneer cyber-pioneer changed the title [Debug] Sink decomp graph trans [Prim][PIR] Sink decomp graph Dec 13, 2023
cxxly
cxxly previously approved these changes Dec 14, 2023
Copy link
Contributor

@cxxly cxxly left a comment

Choose a reason for hiding this comment

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

LGTM with TODO:

  • 下沉机制成熟之后,sink_decomp -> decomp,移除旧的代码

@cyber-pioneer
Copy link
Contributor Author

LGTM with TODO:

  • 下沉机制成熟之后,sink_decomp -> decomp,移除旧的代码

ok

for (auto item : op->operands()) {
auto value = item.source();
// check if initialized in case of optional input.
if (value.impl() && value.type().storage()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
if (value.impl() && value.type().storage()) {
if (IsEmptyValue(value)) {

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

Copy link
Contributor

@Aurelius84 Aurelius84 left a comment

Choose a reason for hiding this comment

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

LGTM

@cyber-pioneer cyber-pioneer merged commit f004078 into PaddlePaddle:develop Dec 15, 2023
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.

4 participants