Skip to content

Commit

Permalink
Remove irrelevant setup code from, documentation (#1122)
Browse files Browse the repository at this point in the history
  • Loading branch information
LilithHafner authored and michel2323 committed Nov 7, 2023
1 parent 3a38864 commit 6aa7c45
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/Enzyme.jl
Original file line number Diff line number Diff line change
Expand Up @@ -265,10 +265,6 @@ instead use [`Duplicated`](@ref) or variants like [`DuplicatedNoNeed`](@ref).
Example returning both original return and derivative:
```jldoctest
a = 4.2
b = [2.2, 3.3]; ∂f_∂b = zero(b)
c = 55; d = 9
f(x) = x*x
res, ∂f_∂x = autodiff(Forward, f, Duplicated, Duplicated(3.14, 1.0))
Expand All @@ -280,10 +276,6 @@ res, ∂f_∂x = autodiff(Forward, f, Duplicated, Duplicated(3.14, 1.0))
Example returning just the derivative:
```jldoctest
a = 4.2
b = [2.2, 3.3]; ∂f_∂b = zero(b)
c = 55; d = 9
f(x) = x*x
∂f_∂x = autodiff(Forward, f, DuplicatedNoNeed, Duplicated(3.14, 1.0))
Expand Down

0 comments on commit 6aa7c45

Please sign in to comment.