Skip to content

Commit ffd2e35

Browse files
authored
fix typos
1 parent edbd433 commit ffd2e35

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/differentials/thunks.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ julia> t()()
4545
### When to `@thunk`?
4646
When writing `rrule`s (and to a lesser exent `frule`s), it is important to `@thunk`
4747
appropriately.
48-
Propagation rule's that return multiple derivatives may not hae all deriviatives used.
48+
Propagation rules that return multiple derivatives may not have all deriviatives used.
4949
By `@thunk`ing the work required for each derivative, they then compute only what is needed.
5050
51-
#### How to thunks prevent work?
51+
#### How do thunks prevent work?
5252
If we have `res = pullback(...) = @thunk(f(x)), @thunk(g(x))`
5353
then if we did `dx + res[1]` then only `f(x)` would be evaluated, not `g(x)`.
5454
Also if we did `Zero() * res[1]` then the result would be `Zero()` and `f(x)` would not be evaluated.

0 commit comments

Comments
 (0)