From c4429bc33450be32ed82358c3974da58e5ec25ab Mon Sep 17 00:00:00 2001 From: Yuki Nishidate <30839669+yknishidate@users.noreply.github.com> Date: Sun, 29 Dec 2024 02:22:00 +0900 Subject: Fix tiny typos (#5944) --- docs/user-guide/07-autodiff.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/user-guide/07-autodiff.md') 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) -- cgit v1.2.3