Skip to content

Conversation

@xiaoguoguo626807
Copy link
Contributor

PR types

others

PR changes

others

Description

pcard-67164

优化ir_backward, 将控制流数据结构绑定在state结构中
提取公共函数grad_semantics_for_op

@paddle-bot
Copy link

paddle-bot bot commented Dec 8, 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.

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

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.
Copy link
Contributor

Choose a reason for hiding this comment

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

函数注释可以考虑采用如下规范:

  1. 首句概要概括函数或类的角色或作用,且首字母大写。
  2. 可以是动名词开头,如Recording xxx ;或名词+定语,如 A stateful container class that recording xxx
  3. 文案遵循语法。

Copy link
Contributor Author

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,
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
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.
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
state will include parent block info.
state will include parent block information.

@xiaoguoguo626807 xiaoguoguo626807 merged commit 5970a57 into PaddlePaddle:develop Dec 12, 2023
@xiaoguoguo626807 xiaoguoguo626807 deleted the if_grad5 branch December 12, 2023 02:44
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.

2 participants