-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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]modify vjp interface gen for control_flow #58355
[PIR]modify vjp interface gen for control_flow #58355
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
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
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
build_args_str = '' | ||
grad_idx = -1 | ||
for idx in range(len(bw_input_list)): | ||
build_args_str += bw_input_list[idx] + ", " | ||
bw_input_name = bw_input_list[idx] |
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.
在框架里对于forward和backward两个词的缩写一般是 fwd 和 bwd
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修复
* modify vjp interface * modify vjp interface * modify test * modify test
PR types
others
PR changes
others
Description
pcard-67164
修改op_vjp 生成,使得反向算子使用vjp接口传入的前向算子输入和输出变量。