Skip to content

Commit 06db673

Browse files
author
Miha Zgubic
committed
add link and polish grammar
1 parent 977d271 commit 06db673

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/src/index.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,10 @@ end
183183

184184
that we do not know an `rrule` for, and we want to check whether the gradients provided by the AD system are correct.
185185

186-
To test gradients the AD system you need to provide a `rrule_f` function that acts like calling `rrule` but use AD rather than a defined rule.
186+
To test gradients computed by the AD system you need to provide a `rrule_f` function that acts like calling `rrule` but use AD rather than a defined rule.
187187
This has the exact same semantics as is required to overload `ChainRulesCore.rrule_via_ad`, thus almost all systems doing so should just overload that, and pass in that and the config, and then trigger `test_rrule(MyADConfig, f, xs; rrule_f = ChainRulesCore.rrule_via_ad)`.
188-
For some AD systems (e.g. Zygote) this already exists.
188+
See more info on `rrule_via_ad` and the rule configs in the [ChainRules documentation](https://juliadiff.org/ChainRulesCore.jl/stable/config.html).
189+
For some AD systems (e.g. Zygote) `rrule_via_ad` already exists.
189190
If it does not exist, see [How to write `rrule_via_ad` function](#How-to-write-rrule_via_ad-function) section below.
190191

191192
We use the `test_rrule` function to test the gradients using the config used by the AD system

0 commit comments

Comments
 (0)