Skip to content

Commit

Permalink
Fix more doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
abhro authored Jul 17, 2024
1 parent 5c9edd3 commit f86dd7e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/rules.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ unary input, unary output scalar function:
julia> dself = NoTangent();
julia> x = rand()
0.4056994708920292
0.8236475079774124
julia> sinx, Δsinx = frule((dself, 1), sin, x)
(0.3946615493032566, 0.918826567694662)
(0.7336293678134624, 0.6795498147167869)
julia> sinx == sin(x)
true
Expand Down Expand Up @@ -51,7 +51,7 @@ that return a single output that is iterable, like a `Tuple`.
So this is actually a [`Tangent`](@ref):
```jldoctest frule
julia> Δsincosx
Tangent{Tuple{Float64, Float64}}(0.918826567694662, -0.3946615493032566)
Tangent{Tuple{Float64, Float64}}(0.6795498147167869, -0.7336293678134624)
```
The optional [`RuleConfig`](@ref) option allows specifying frules only for AD systems that
Expand Down

0 comments on commit f86dd7e

Please sign in to comment.