-
Notifications
You must be signed in to change notification settings - Fork 5.9k
【pir】optimize backward code #59844
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
【pir】optimize backward code #59844
Conversation
|
你的PR提交成功,感谢你对开源项目的贡献! |
Aurelius84
left a comment
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
| record relationship of forward op/value and backward op/value | ||
| one state must be bining with a program | ||
| one state must be bining with a block, if block has parent block, | ||
| state will include parent block info. |
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.
函数注释可以考虑采用如下规范:
- 首句概要概括函数或类的角色或作用,且首字母大写。
- 可以是动名词开头,如Recording xxx ;或名词+定语,如 A stateful container class that recording xxx
- 文案遵循语法。
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.
感谢,后续提PR修改
| """ | ||
| record relationship of forward op/value and backward op/value | ||
| one state must be bining with a program | ||
| one state must be bining with a block, if block has parent block, |
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.
| one state must be bining with a block, if block has parent block, | |
| One state must be bound with a block. If the block has parent block, |
| record relationship of forward op/value and backward op/value | ||
| one state must be bining with a program | ||
| one state must be bining with a block, if block has parent block, | ||
| state will include parent block info. |
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.
| state will include parent block info. | |
| state will include parent block information. |
PR types
others
PR changes
others
Description
pcard-67164
优化ir_backward, 将控制流数据结构绑定在state结构中
提取公共函数grad_semantics_for_op