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

[Eager] FLAGS_retain_grad_for_all_tensor set false in default #43142

Merged
merged 7 commits into from
Jun 2, 2022

Conversation

veyron95
Copy link
Contributor

@veyron95 veyron95 commented Jun 1, 2022

PR types

Others

PR changes

Others

Describe

本 PR 将新动态图下的 FLAGS_retain_grad_for_all_tensor 修改为默认 false,仅影响新动态图,与老动态图无关。
这个改动可以使得新动态图模型在训练过程降低显存占用。

@paddle-bot-old
Copy link

paddle-bot-old bot commented Jun 1, 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.

@veyron95 veyron95 changed the title [Eager] FLAGS_retain_grad set false [Eager] FLAGS_retain_grad_for_all_tensor set false in default Jun 2, 2022
Copy link
Contributor

@JiabinYang JiabinYang left a comment

Choose a reason for hiding this comment

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

LGTM

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

@phlrain phlrain self-requested a review June 2, 2022 13:35
@veyron95 veyron95 merged commit 4d3b7d7 into PaddlePaddle:develop Jun 2, 2022
fuyou765 pushed a commit to fuyou765/Paddle that referenced this pull request Jun 7, 2022
…Paddle#43142)

* [Eager] FLAGS_retain_grad set false

* Add FLAGS_retain_grad_ for some tests

* Add FLAGS_retain_grad_ to some tests

* modified set_flags

* modified set_flags

* fix windows-ci and windows-openblas-ci

* import paddle.fluid
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.

4 participants