-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Add functional autograd API:hessian #36108
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
Conversation
|
Thanks for your contribution! |
This reverts commit cbd4d3b.
… fix_dygraph_high_differential
XieYunshen
left a comment
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_hessian PROPERTIES TIMEOUT 20)
JiabinYang
left a comment
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
APIs
Describe
1、Add functional autograd API: hessian.
2、Move some helper interfaces together into utils.py.
The API signature is:
def hessian(func, inputs, create_graph=False, allow_unused=False)This API computes the hessian matrix of
funcwith respect toinputs.This API is ONLY available in imperative mode.
Parameters:
Returns:
TODO:
1、enable test case test_create_graph_true when 3nd order grad op matmul_grad_grad_grad is ok.