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

[CINN][Add Backend Pass Comment No.5] Add comment for ir_simplify #70453

Merged

Conversation

Albresky
Copy link
Contributor

PR Category

CINN

PR Types

Others

Description

为 ir_simplify Pass 添加了注释

Copy link

paddle-bot bot commented Dec 25, 2024

你的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 paddle-bot bot added the contributor External developers label Dec 25, 2024
@luotao1 luotao1 added the HappyOpenSource 快乐开源活动issue与PR label Dec 25, 2024
Comment on lines 112 to 117
* 2. Type mismatch:
* Input IR:
* Cast<float>(5)
* Output IR:
* Cast<float>(5) (remains unchanged)
*/
Copy link
Contributor

Choose a reason for hiding this comment

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

立即数会有特殊处理

Comment on lines 137 to 140
* Input IR:
* for (int i = 1; i < 2; ++i) { ... }
* Output IR:
* ...
Copy link
Contributor

Choose a reason for hiding this comment

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

例子里面体现一下i的替换

Copy link
Contributor Author

Choose a reason for hiding this comment

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

好的

* Input IR:
* Block { Block { ... } }
* Output IR:
* ...
Copy link
Contributor

Choose a reason for hiding this comment

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

例子1 是否应为:

 1. Single statement block:
    Input IR:
      Block { Block { ... } }
    Output IR:
      Block { ... }

* Input IR:
* Block { ... }
* Output IR:
* ...
Copy link
Contributor

Choose a reason for hiding this comment

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

例子2 是否应为:

 2. Nested blocks:
    Input IR:
      Block { Block { stmt1 }, Block { stmt2 } }
    Output IR:
      Block { stmt1, stmt2 }

Copy link
Contributor Author

Choose a reason for hiding this comment

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

例子2 是否应为:

 2. Nested blocks:
    Input IR:
      Block { Block { stmt1 }, Block { stmt2 } }
    Output IR:
      Block { stmt1, stmt2 }

是的,我改一下

@luotao1 luotao1 merged commit f3b65c5 into PaddlePaddle:develop Jan 2, 2025
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor External developers HappyOpenSource 快乐开源活动issue与PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants