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

support cast op backward refuse forward and fix some bugs #46173

Merged
merged 2 commits into from
Sep 19, 2022

Conversation

Charles-hit
Copy link
Contributor

@Charles-hit Charles-hit commented Sep 18, 2022

PR types

Others

PR changes

Others

Describe

本次pr主要完成了以下两个工作:
1.基于yaml自动代码生成支持cast op 反向复用前向实现无限阶并且添加二三阶单测
2.修复高阶单测框架bug,在测试时数据准备阶段应该设置output的stop_gradient为False,否则可能会导致单测框架报错(主要原因是因为静态图下stop_gradient传递性未对齐动态图)。
报错信息如下:
image

@paddle-bot
Copy link

paddle-bot bot commented Sep 18, 2022

你的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 merged commit 7098bfd into PaddlePaddle:develop Sep 19, 2022
Charles-hit added a commit to Charles-hit/Paddle that referenced this pull request Sep 19, 2022
…le#46173)

* support cast op backward refuse forward

* Fix the bug of high order unit test framework
phlrain pushed a commit that referenced this pull request Sep 20, 2022
* support cast op backward refuse forward and fix some bugs (#46173)

* support cast op backward refuse forward

* Fix the bug of high order unit test framework

* support sign op backward refuse forward (#46002)
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