diff options
| author | Yong He <yonghe@outlook.com> | 2023-03-17 10:53:48 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-17 10:53:48 -0700 |
| commit | 29abe397427f82f6c414d99890a3f50771703003 (patch) | |
| tree | 3bc9ee351d17e7451249971e425b25a8a389e4bb /docs/user-guide | |
| parent | 8a61b9dd0ca729df894dad4c89c6ce3bf39ef0be (diff) | |
Update 07-autodiff.md
Diffstat (limited to 'docs/user-guide')
| -rw-r--r-- | docs/user-guide/07-autodiff.md | 6 |
1 files 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<float> 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; } ``` |
