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

Use paddle.disable_static() to replace with dygraph.guard(). #27139

Merged
merged 1 commit into from
Sep 9, 2020

Conversation

liym27
Copy link
Contributor

@liym27 liym27 commented Sep 7, 2020

PR types

Others

PR changes

Others

Describe

Modify the error message in _dygraph_only_ :

  • imperative mode -> dynamic mode
  • fluid.dygraph.guard() -> paddle.disable_static()

because Paddle 2.0 will replace imperative with dynamic and replace fluid.dygraph.guard() with paddle.disable_static().

…elop

Change-Id: Ic922bb812ba417af32eb34654ad1502729e5cbe8
@paddle-bot-old
Copy link

paddle-bot-old bot commented Sep 7, 2020

Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

Copy link
Member

@zhhsplendid zhhsplendid left a comment

Choose a reason for hiding this comment

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

LGTM

@liym27 liym27 merged commit 3497fbe into PaddlePaddle:develop Sep 9, 2020
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