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

Enhance vjp/jvp/Jacobian/Hessian API for supporting dynamic, static graph and batched, unbatched mode #40692

Merged
merged 14 commits into from
Apr 1, 2022

Conversation

cxxly
Copy link
Contributor

@cxxly cxxly commented Mar 17, 2022

PR types

Function optimization

PR changes

APIs

Describe

  • enhance vjp for supporting dynamic and static graph, and add to public API.
  • enhance jvp for supporting both dynamic and static graph, and add to public API.
  • enhance Jacobian class for supporting both dynamic and static graph, and add to public API.
  • enhance Hessian class for supporting both dynamic and static graph, and add to public API.
  • add some fundamental function for reusing.
  • refactor some code for more readable.
  • completes unittest.
  • add white_list for cuda11.x ci windows.

@cxxly cxxly changed the title Modify vjp/jvp for being used both dynamic and static graph Modify vjp/jvp for executing in both dynamic and static graph Mar 17, 2022
@paddle-bot-old
Copy link

你的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.

@cxxly cxxly changed the title Modify vjp/jvp for executing in both dynamic and static graph Enhance vjp/jvp/Jacobian/Hessian API for supporting dynamic, static graph and batched, unbatched mode Mar 22, 2022
python/paddle/autograd/functional.py Outdated Show resolved Hide resolved
python/paddle/autograd/functional.py Outdated Show resolved Hide resolved
python/paddle/autograd/functional.py Show resolved Hide resolved
python/paddle/autograd/functional.py Show resolved Hide resolved
python/paddle/autograd/functional.py Outdated Show resolved Hide resolved
python/paddle/autograd/functional.py Outdated Show resolved Hide resolved
python/paddle/autograd/functional.py Outdated Show resolved Hide resolved
python/paddle/autograd/functional.py Show resolved Hide resolved
python/paddle/autograd/functional.py Show resolved Hide resolved
python/paddle/autograd/functional.py Outdated Show resolved Hide resolved
python/paddle/autograd/functional.py Outdated Show resolved Hide resolved
python/paddle/autograd/functional.py Outdated Show resolved Hide resolved
python/paddle/autograd/functional.py Outdated Show resolved Hide resolved
python/paddle/autograd/__init__.py Outdated Show resolved Hide resolved
python/paddle/autograd/functional.py Outdated Show resolved Hide resolved
python/paddle/autograd/functional.py Outdated Show resolved Hide resolved
python/paddle/autograd/functional.py Outdated Show resolved Hide resolved
python/paddle/autograd/functional.py Outdated Show resolved Hide resolved
python/paddle/autograd/functional.py Show resolved Hide resolved
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

Copy link
Contributor

@zhwesky2010 zhwesky2010 left a comment

Choose a reason for hiding this comment

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

LGTM for add test_autograd_functional_dynamic to white list temporarily

@levi131 levi131 merged commit 9e764d8 into PaddlePaddle:develop Apr 1, 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.

6 participants