Skip to content

【dygraph】Split backward api from api.h to backward_api.h #71142

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

Merged
merged 8 commits into from
Feb 18, 2025

Conversation

xiaoguoguo626807
Copy link
Contributor

@xiaoguoguo626807 xiaoguoguo626807 commented Feb 14, 2025

PR Category

Execute Infrastructure

PR Types

Improvements

Description

pcard-67164

将 api.h.api.cc 中反向代码 output xxx_grad(input) 移动到paddle/phi/api/backward/backward_api.h / paddle/phi/api/lib/backward_api.cc 中
将原来的 void XXX_grad(input,output) api 所在文件名改为 paddle/phi/api/backward/backward_api_base.h / paddle/phi/api/lib/backward_api_base.cc.

类似的包括 fused_backward_api/sparse_backward_api

将dygraph_function.h /dygraph_function.cc 中反向api 的代码移动到dygraph_grad_function.h /dygraph_grad_function.cc 中

Copy link

paddle-bot bot commented Feb 14, 2025

你的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.

zyfncg
zyfncg previously approved these changes Feb 18, 2025
Copy link
Contributor

@XiaoguangHu01 XiaoguangHu01 left a comment

Choose a reason for hiding this comment

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

LGTM

@xiaoguoguo626807 xiaoguoguo626807 merged commit 649bf3b into PaddlePaddle:develop Feb 18, 2025
32 checks passed
@xiaoguoguo626807 xiaoguoguo626807 deleted the split_file branch February 18, 2025 11:14
Enigmatisms pushed a commit to Enigmatisms/Paddle that referenced this pull request Mar 6, 2025
…e#71142)

* add gard_api inplace version

* split api.h and backward_api.h

* modify build wrong

* modify build bug

* change backward_api_yaml args

* change backward_api_yaml args

* modify impl to base
YqGe585 pushed a commit to YqGe585/Paddle that referenced this pull request May 7, 2025
…e#71142)

* add gard_api inplace version

* split api.h and backward_api.h

* modify build wrong

* modify build bug

* change backward_api_yaml args

* change backward_api_yaml args

* modify impl to base
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.

3 participants