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

【pir】Modify comment of pr57478 and pr56873 #57520

Merged

Conversation

xiaoguoguo626807
Copy link
Contributor

@xiaoguoguo626807 xiaoguoguo626807 commented Sep 20, 2023

PR types

Others

PR changes

Others

Description

pcard-67164
回复split, expand 修复pr#56873 #57478中的comment:

  1. pd_api 生成参数改为 const pir::value & / const std::vectorpir::value&
  2. 增加 python_c 层stack 的默认参数注释

@paddle-bot
Copy link

paddle-bot bot commented Sep 20, 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.

@xiaoguoguo626807 xiaoguoguo626807 changed the title Modify comment 【pir】Modify comment of pr57478 and pr56873 Sep 20, 2023
std::vector<pir::OpResult> add_n_grad(std::vector<pir::Value> inputs,
pir::Value out_grad) {
std::vector<pir::OpResult> add_n_grad(const std::vector<pir::Value>& inputs,
const pir::Value& out_grad) {
Copy link
Contributor

Choose a reason for hiding this comment

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

单值这里其实是不需要的,之前大家讨论的规范是,类似Value、Result 因为是Pimpl,可以直接传值,但std::vector这些容器不行。

Aurelius84
Aurelius84 previously approved these changes Sep 20, 2023
@xiaoguoguo626807 xiaoguoguo626807 merged commit 6e5c978 into PaddlePaddle:develop Sep 21, 2023
27 checks passed
@xiaoguoguo626807 xiaoguoguo626807 deleted the modify_comment branch September 21, 2023 10:36
Frida-a pushed a commit to Frida-a/Paddle that referenced this pull request Oct 14, 2023
jiahy0825 pushed a commit to jiahy0825/Paddle that referenced this pull request Oct 16, 2023
danleifeng pushed a commit to danleifeng/Paddle that referenced this pull request Nov 14, 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.

2 participants