Skip to content

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

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

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 force-pushed the autograd-functional branch from ac92e51 to 7d4a7b0 Compare March 20, 2022 11:53
@cxxly cxxly force-pushed the autograd-functional branch from 7d4a7b0 to db84b5c Compare March 21, 2022 13:24
@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
@cxxly cxxly force-pushed the autograd-functional branch from db84b5c to a81ef4e Compare March 22, 2022 17:00
@cxxly cxxly force-pushed the autograd-functional branch from 1cae19a to 4385655 Compare March 23, 2022 09:20
@cxxly cxxly force-pushed the autograd-functional branch from eac519b to fd9a7ac Compare March 24, 2022 03:57
@cxxly cxxly force-pushed the autograd-functional branch from 797c8f6 to 1f1f2b5 Compare March 25, 2022 08:28
@cxxly cxxly force-pushed the autograd-functional branch from d2abda7 to ed71226 Compare March 26, 2022 02:26
@cxxly cxxly force-pushed the autograd-functional branch from ed71226 to d762e56 Compare March 26, 2022 03:05
@cxxly cxxly force-pushed the autograd-functional branch from d762e56 to ef479cc Compare March 26, 2022 09:08
@cxxly cxxly force-pushed the autograd-functional branch from f4a75c6 to c086f4e Compare March 30, 2022 03:49
@cxxly cxxly force-pushed the autograd-functional branch from c086f4e to 9774bbe Compare March 30, 2022 09:33
@cxxly cxxly force-pushed the autograd-functional branch from 9774bbe to ba3b6bc Compare March 30, 2022 09:38
@cxxly cxxly force-pushed the autograd-functional branch from ba3b6bc to 0edbc69 Compare March 31, 2022 01:19
@cxxly cxxly force-pushed the autograd-functional branch from 0edbc69 to 58c00e0 Compare March 31, 2022 03:27
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