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] Make sure test case work under eager mode #1106

Merged
merged 2 commits into from
Jun 7, 2022

Conversation

veyron95
Copy link
Contributor

@veyron95 veyron95 commented Jun 6, 2022

FLAGS_retain_grad_for_all_tensor 仅对新动态图生效,原本默认值为 True,即保留所有 tensor 的梯度信息。后因模型中保留所有 tensor 的梯度将会大量占用显存,于是将其默认值改成 False PR43142,因此相关单测在切换到新动态时,需要手动设置为 True。

ps: 目前 PR-CE-Framework 流水线已经切换到 新动态图模式。

@veyron95 veyron95 changed the title [Eager] Make sure work under eager mode [Eager] Make sure test cast work under eager mode Jun 7, 2022
@veyron95 veyron95 changed the title [Eager] Make sure test cast work under eager mode [Eager] Make sure test case work under eager mode Jun 7, 2022
@DDDivano DDDivano merged commit ea004e2 into PaddlePaddle:develop Jun 7, 2022
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