-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Add support for forward and reverse high-order automatic differentiation mechanism #41919
Conversation
update the format of english documents
…cience-add-rules-ut
fix the document format of enable_prim/disable_prim/prim2orig/prim_enabled
polish test_gradients_and_minimize
add default value for prim_enabled api doc
LGTM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM for set_tests_properties(test_gradients_and_minimize PROPERTIES TIMEOUT 60)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
PR types
New features
PR changes
Others
Describe
本pr配合pr #41201 一起构成一套新的自动微分机制
该自动微分机制目前只在静态图中生效,在一部分算子上,支持前向和反向的高阶自动微分。
本pr中包含的内容包括如下几个部分:
(1)在C++中注册的自动微分基础算子的python wrapper
(2)在自动微分基础算子之上定义的orig2prim,prim2orig,jvp,transpose规则
(3)在4种规则之上形成的orig2prim,prim2orig,linearize,transpose四种变换
(4)提供出的用户接口