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

[BugFix] fix in_dygraph_mode api changes #376

Merged
merged 1 commit into from
Mar 28, 2022

Conversation

ZHUI
Copy link
Collaborator

@ZHUI ZHUI commented Mar 28, 2022

PR types

Bug fixes

PR changes

Others

Description

109608a58306a7edd82a1b03551ff8bd

PaddlePaddle/Paddle#40786
in dygraph api changes

简单来说是将执行机制在python分成static和non_static通过_non_static_mode来判断,这里_non_static_mode等同于从前in_dygraph_mode的功能。而在_non_static_mode下区分是否是_in_legacy_dygraph如果是则运行老动态图,否则运行新动态图

@ZHUI ZHUI requested a review from Yelrose March 28, 2022 09:08
Copy link
Collaborator

@Yelrose Yelrose left a comment

Choose a reason for hiding this comment

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

LGTM

@Yelrose Yelrose merged commit 5cc4d81 into PaddlePaddle:main Mar 28, 2022
@ZHUI ZHUI deleted the fix_math_api branch March 29, 2022 03:37
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