Skip to content

Commit

Permalink
remove excess whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
oxinabox authored Apr 21, 2021
1 parent 6b71091 commit 6e09bef
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ r.minimizer
## Custom gradient / adjoint

A custom gradient rule for a function should be defined using ChainRulesCore's `rrule`.

For example the following can be used for the function `f` defined above.

```julia
Expand All @@ -126,7 +125,6 @@ test_rrule(f, [1.2, 3.6])

For full details on `rrules` etc see the [ChainRules documentation](https://juliadiff.org/ChainRulesCore.jl/stable/).


## Hack to use other automatic differentiation backends

For specific functions, if you want to use `ForwardDiff` instead of `Zygote`, one way to do this is to define an `rrule` using `ForwardDiff` to compute the gradient or jacobian, e.g:
Expand Down

0 comments on commit 6e09bef

Please sign in to comment.