From 29abe397427f82f6c414d99890a3f50771703003 Mon Sep 17 00:00:00 2001 From: Yong He Date: Fri, 17 Mar 2023 10:53:48 -0700 Subject: Update 07-autodiff.md --- docs/user-guide/07-autodiff.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/user-guide/07-autodiff.md b/docs/user-guide/07-autodiff.md index e93a08a16..14b92774d 100644 --- a/docs/user-guide/07-autodiff.md +++ b/docs/user-guide/07-autodiff.md @@ -578,7 +578,7 @@ In addition, the `no_diff` modifier can also be used on the return type to indic ```csharp no_diff float myFunc(no_diff float a, float x, out float y); ``` -Will the the following forward derivative and backward propagation function signatures: +Will have the following forward derivative and backward propagation function signatures: ```csharp float fwd_derivative(float a, DifferentialPair x); @@ -610,14 +610,14 @@ For example, the following code excludes `member1` from differentiation: struct MyType : IDifferentiable { no_diff float member1; // excluded from differentiation - flaot2 member2; + float2 member2; } ``` The generated `Differential` in this case will be: ```csharp struct MyType.Differential : IDifferentiable { - flaot2 member2; + float2 member2; } ``` -- cgit v1.2.3