Skip to content

Commit

Permalink
add Higher derivative vjp (#9)
Browse files Browse the repository at this point in the history
* add Higher derivative vjp

* add autotest code

* add autograd.functional.vhp and motified functional

* Merge Testcase

* Rm chinese chars

Co-authored-by: Zhenhua <1209435+hengzi@users.noreply.github.com>
Co-authored-by: Huang Zhenhua <huangzhenhua@zhejianglab.com>
  • Loading branch information
3 people authored Jun 21, 2022
1 parent 6fb9880 commit a4309ac
Show file tree
Hide file tree
Showing 4 changed files with 515 additions and 39 deletions.
4 changes: 3 additions & 1 deletion python/oneflow/autograd/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
is_grad_enabled,
no_grad,
)
from oneflow.autograd.functional import jacobian, hessian
from oneflow.autograd.functional import vjp, vhp, jacobian, hessian

__all__ = [
"backward",
Expand All @@ -34,6 +34,8 @@
"inference_mode",
"is_grad_enabled",
"no_grad",
"vjp",
"vhp",
"jacobian",
"hessian",
]
Loading

0 comments on commit a4309ac

Please sign in to comment.