summaryrefslogtreecommitdiff
path: root/docs/user-guide/07-autodiff.md
diff options
context:
space:
mode:
authorYuki Nishidate <30839669+yknishidate@users.noreply.github.com>2024-12-29 02:22:00 +0900
committerGitHub <noreply@github.com>2024-12-28 17:22:00 +0000
commitc4429bc33450be32ed82358c3974da58e5ec25ab (patch)
treebe20e7a4192d8a285e4f4136980686ac4a768179 /docs/user-guide/07-autodiff.md
parent478be540a6f93ffcb552e496c41fe1c278ae054e (diff)
Fix tiny typos (#5944)
Diffstat (limited to 'docs/user-guide/07-autodiff.md')
-rw-r--r--docs/user-guide/07-autodiff.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/user-guide/07-autodiff.md b/docs/user-guide/07-autodiff.md
index 2a766e1c0..11c6677c4 100644
--- a/docs/user-guide/07-autodiff.md
+++ b/docs/user-guide/07-autodiff.md
@@ -381,7 +381,7 @@ struct MyType
R original(T0 p0, inout T1, p1, T2 p2);
```
-Sometimes the derivative function needs to be defined in a different module from the original function, or the derivative function cannot be made visible from the original function. In this case, we can use the `[ForwardDerivativeOf(originalFunnc)]` attribute to inform the compiler that `originalFunc` should be treated as a forward-differentiable function, and the current function is the derivative implementation of `originalFunc`. The following code will have the same effect to associate `derivative` and the forward-derivative implementation of `original`:
+Sometimes the derivative function needs to be defined in a different module from the original function, or the derivative function cannot be made visible from the original function. In this case, we can use the `[ForwardDerivativeOf(originalFunc)]` attribute to inform the compiler that `originalFunc` should be treated as a forward-differentiable function, and the current function is the derivative implementation of `originalFunc`. The following code will have the same effect to associate `derivative` and the forward-derivative implementation of `original`:
```csharp
R original(T0 p0, inout T1, p1, T2 p2);
@@ -653,7 +653,7 @@ This may lead to unexpected results. For example:
struct MyType : IDifferentiable
{
no_diff float member;
- float someOtherMemther;
+ float someOtherMember;
}
[ForwardDifferentiable]
float f(float x)