Skip to content

Commit 4c00d97

Browse files
authored
Merge pull request #28491 from dan-zheng/docs
2 parents 448d9df + 292d764 commit 4c00d97

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/DifferentiableProgramming.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Backticks were added manually.
7272
* [Upcasting to non-`@differentiable` functions](#upcasting-to-non-differentiable-functions)
7373
* [Implied generic constraints](#implied-generic-constraints)
7474
* [Non-differentiable parameters](#non-differentiable-parameters)
75-
* [Differentiable operators](#differentiable-operators)
75+
* [Differential operators](#differential-operators)
7676
* [Differential-producing differential operators](#differential-producing-differential-operators)
7777
* [Pullback-producing differential operators](#pullback-producing-differential-operators)
7878
* [Example usage](#example-usage)
@@ -2001,7 +2001,7 @@ _ = f0 as @differentiable (@noDerivative Float, Float) -> Float
20012001
_ = f0 as @differentiable (@noDerivative Float, @noDerivative Float) -> Float
20022002
```
20032003

2004-
### Differentiable operators
2004+
### Differential operators
20052005

20062006
The core differentiation APIs are the differential operators. Differential
20072007
operators are higher-order functions that take `@differentiable` functions as
@@ -2085,7 +2085,7 @@ func valueWithGradient<T, R: FloatingPoint>(
20852085

20862086
func gradient<T, R: FloatingPoint>(
20872087
at x: T, in body: @differentiable (T) -> R
2088-
) -> (value: R, gradient: T.TangentVector) where R.TangentVector: FloatingPoint {
2088+
) -> T.TangentVector where R.TangentVector: FloatingPoint {
20892089
return valueWithGradient(at: x, in: body).gradient
20902090
}
20912091

0 commit comments

Comments
 (0)