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

Polish usage of deprecated or private API in dygraph #4035

Merged
merged 1 commit into from
Dec 9, 2019

Conversation

zhiqiu
Copy link
Contributor

@zhiqiu zhiqiu commented Dec 6, 2019

As the title, this PR Polishes the usage of deprecated or private API in dygraph, i.e., APIs start with _.

  • _ivar is removed since PR21359, we split VarBase (which is used in dygraph mode) from Variable (which is used in static mode). to_variable and layers.xx will return an VarBase object, Variable does not hold _ivar any more.
  • _stop_gradient is a private API, use stop_gradient instead.

@zhiqiu zhiqiu requested a review from phlrain December 6, 2019 11:12
@zhiqiu zhiqiu force-pushed the dev/update_dygraph_models branch from deaff62 to f1afa8f Compare December 6, 2019 12:33
@zhiqiu zhiqiu changed the title Polish usage of private API in dygraph Polish usage of deprecated or private API in dygraph Dec 6, 2019
@zhiqiu zhiqiu force-pushed the dev/update_dygraph_models branch from f1afa8f to b0dca4a Compare December 6, 2019 13:06
@zhiqiu zhiqiu force-pushed the dev/update_dygraph_models branch from b0dca4a to c2311fb Compare December 6, 2019 13:17
@claassistantio
Copy link

claassistantio commented Dec 9, 2019

CLA assistant check
All committers have signed the CLA.

@zhiqiu zhiqiu closed this Dec 9, 2019
@zhiqiu zhiqiu reopened this Dec 9, 2019
@zhiqiu zhiqiu merged commit d766869 into PaddlePaddle:develop Dec 9, 2019
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