Skip to content

Commit 084b5e7

Browse files
Clarify docs referenced PullbackMemory as a Fixed Thing (#469)
* Clarify docs referenced PullbackMemory as a Fixed Thing * Update docs/src/design/changing_the_primal.md Co-authored-by: willtebbutt <wt0881@my.bristol.ac.uk> Co-authored-by: willtebbutt <wt0881@my.bristol.ac.uk>
1 parent 3ccd3c1 commit 084b5e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/design/changing_the_primal.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ pullback_at(pb::PullbackMemory{typeof(σ)}, ȳ) = ȳ * pb.y / (1 + pb.ex)
240240
That now looks much simpler; `pullback_at` only ever has 2 arguments.
241241

242242
One way we could make it nicer to use is by making `PullbackMemory` a callable object.
243-
Conceptually the `PullbackMemory` is a fixed thing it the contents of the tape for a particular operation.
243+
Conceptually, for a particular evaluation of an operation, the `PullbackMemory` is fixed.
244244
It is fully determined by the end of the primal pass.
245245
The during the gradient (reverse) pass the `PullbackMemory` is used to successively compute the `ȳ` argument.
246246
So it makes sense to make `PullbackMemory` a callable object that acts on the sensitivity.

0 commit comments

Comments
 (0)