From e291f60c6b083eaa74aed5307a6e9461274c1642 Mon Sep 17 00:00:00 2001 From: Yong He Date: Tue, 14 Mar 2023 09:31:51 -0700 Subject: Support `fwd_diff(bwd_diff(f))`. (#2697) * Support `fwd_diff(bwd_diff(f))`. * Fix. --------- Co-authored-by: Yong He --- docs/user-guide/07-autodiff.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'docs/user-guide') diff --git a/docs/user-guide/07-autodiff.md b/docs/user-guide/07-autodiff.md index aed6ad65e..6f2bdc447 100644 --- a/docs/user-guide/07-autodiff.md +++ b/docs/user-guide/07-autodiff.md @@ -613,7 +613,7 @@ However, the `no_diff` keyword is not required in a call if a non-differentiable ## Higher Order Differentiation -Slang supports generating higher order forward derivative functions. It is allowed to use `__fwd_diff` operator inside a forward differentiable function, or to nest `__fwd_diff` operators. For example, `__fwd_diff(__fwd_diff(sin))` will have the following signature: +Slang supports generating higher order forward and backward derivative propagation functions. It is allowed to use `__fwd_diff` and `__bwd_diff` operators inside a forward or backward differentiable function, or to nest `__fwd_diff` and `__bwd_diff` operators. For example, `__fwd_diff(__fwd_diff(sin))` will have the following signature: ```csharp DifferentialPair> sin_diff2(DifferentialPair> x); @@ -621,9 +621,7 @@ DifferentialPair> sin_diff2(DifferentialPair