summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2023-02-06 15:56:48 -0800
committerGitHub <noreply@github.com>2023-02-06 15:56:48 -0800
commitf12d422dd035aaf51fa3d8f6e31302c037aa180f (patch)
treebf7b83b735c56947fa375cefd653664a3b4211b8 /docs
parent49d68bfa22d2de06285442b325d4c6afd9eb4481 (diff)
Fix documentation (#2630)
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'docs')
-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 05011a53e..48eb84cdf 100644
--- a/docs/user-guide/07-autodiff.md
+++ b/docs/user-guide/07-autodiff.md
@@ -464,7 +464,7 @@ float fwd_derivative(float a, DifferentialPair<float> x);
void back_prop(float a, inout DifferentialPair<float> x, float d_y);
```
-## Calling Non-Differentiable Function from a Differentiable Function
+## Calling Non-Differentiable Functions from a Differentiable Function
Calling non-differentiable function from a differentiable function is allowed. However, derivatives will not be propagated through the call. The user is required to clarify the intention by prefixing the call with the `no_diff` keyword. An unclarified
call to non-differnetiable function will result in a compile-time error.
@@ -517,7 +517,7 @@ An interface method requirement can be marked as `[ForwardDifferentiable]` or `[
## Restrictions of Automatic Differentiation
-The compiler can generate forward derivative and backward propagation implementations for most uses of array and struct types, including arbitrary read and write access at dynamic array indices, and supports uses of generics and interfaces. This covers the set of operations that is sufficient for a lot of functions. However, the user need to be aware of the following restrictions when using automatic differentiation:
+The compiler can generate forward derivative and backward propagation implementations for most uses of array and struct types, including arbitrary read and write access at dynamic array indices, and supports uses of all types of control flows, mutable parameters, generics and interfaces. This covers the set of operations that is sufficient for a lot of functions. However, the user needs to be aware of the following restrictions when using automatic differentiation:
- No access to global variables or shader parameters within a differentiable function.
- All operations to global resources, including texture reads or atomic writes, are treating as a non-differentiable operation.