Skip to content

Commit 54b5323

Browse files
committed
Crosslink FAQ to Changing the Primal
1 parent f6ed7de commit 54b5323

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

docs/src/FAQ.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ There are three reasons the rules also calculate the `f(x)`.
3030
2. For many `rrule`s the output value is used in the definition of the pullback. For example `tan`, `sigmoid` etc.
3131
3. For some `frule`s there exists a single, non-separable operation that will compute both derivative and primal result. For example many of the methods for [differential equation sensitivity analysis](https://docs.juliadiffeq.org/stable/analysis/sensitivity/#sensitivity-1).
3232

33+
For more information and examples see the [design notes on changing the primal](@ref change_primal).
34+
3335
## Where are the derivatives for keyword arguments?
3436
_pullbacks_ do not return a sensitivity for keyword arguments;
3537
similarly _pushfowards_ do not accept a perturbation for keyword arguments.

docs/src/design/changing_the_primal.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Design Notes: Why can you change the primal computation?
1+
# [Design Notes: Why can you change the primal computation?](@id change_primal)
22

33
These design notes are to help you understand ChainRules.jl's [`rrule`](@ref) function.
44
It explains why we have a `rrule` function that returns both the primal result (i.e. the output for the forward pass) and the pullback as a closure.

0 commit comments

Comments
 (0)